Build Visual Studio project through the command line

Create a .bat file called: Manual_MSBuild_ReleaseVersion.bat Put this in the .bat file. REM you’ll have to find the “latest” version of where msbuild.exe resides on your machine.. here are some popular versions/locations REM set msBuildDir=%WINDIR%\Microsoft.NET\Framework\v2.0.50727 REM set msBuildDir=%WINDIR%\Microsoft.NET\Framework\v3.5 REM set msBuildDir=%WINDIR%\Microsoft.NET\Framework\v4.0.30319 REM set msBuildDir=C:\Program Files (x86)\MSBuild\12.0\Bin set msBuildDir=C:\Program Files (x86)\MSBuild\14.0\Bin call “%msBuildDir%\msbuild.exe” MySolution.sln /p:Configuration=Release /l:FileLogger,Microsoft.Build.Engine;logfile=Manual_MSBuild_ReleaseVersion_LOG.log … Read more

Rename virtual directory on Windows Server 2008 (IIS7 )

I found a way to do this using the built in appcmd.exe tool. If you wanted to change your virtual directory “Images” inside your application “OldApplicationName” type this into the command line. %systemroot%\system32\inetsrv\appcmd set vdir “Default Web Site/OldApplicationName/Images” -path:/Images2 More details, including how to rename applications here: http://www.foliotek.com/devblog/rename-applications-and-virtual-directories-in-iis7/

Windows service app.config location

You can verify the exact location of the installed Windows Service by following the steps below: Bring up the list of Windows Services by clicking the “Services” icon under the “Administrative Tools” icon. You can also get this list by typing “View local services” in the Search Menu under the Start Menu. Select your Windows … Read more

ASP.Net which user account running Web Service on IIS 7?

Server 2008 Start Task Manager Find w3wp.exe process (description IIS Worker Process) Check User Name column to find who you’re IIS process is running as. In the IIS GUI you can configure your application pool to run as a specific user: Application Pool default Advanced Settings Identity Here’s the info from Microsoft on setting up … Read more

Specifying the running directory for Scheduled Tasks using schtasks.exe

Just wanted to add details that are valid for Windows Server 2008 and 2012. As many people can understand screen shots better here is a screen shot: To sum it up. When you create the action for your scheduled task you have the option to set the “Start in (optional)” field (rounded in red on … Read more

IIS7: A process serving application pool ‘YYYYY’ suffered a fatal communication error with the Windows Process Activation Service

I was debugging the problem for the better part of the day and when I was close to burning the building I discovered the Process Monitor tool from Sysinternals. Set it to monitor w3wp.exe and check last events before it exits after you fire a request in the browser. Hope that helps further readers.

ASP.NET 4.5 MVC 4 not working on Windows Server 2008 IIS 7

Try using this: <system.webServer> <modules runAllManagedModulesForAllRequests=”true” /> … </system.webServer> EDIT: The solution above will work for .NET 3.5 or below. If you are using .NET 4.0 or above, you might want to try installing IIS7 QFE Also, this article is worth reading to understand the difference between those two.

Getting MSDN PeerChannel “SecureChat” running on Windows Server 2008 R2

Try enabling these services on the server: Peer Name Resolution Server (Install through Server Management) Peer Discovery Server (Install through Server Management) Simple Service Discovery Protocol Service (SSDP Service) Then simply ensure that the Firewall Rules are modified; by default they block IPv4 / IPv6 Teredo Tunneling driver. IPv6 needs to be supported as it … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)