How to configure Web Deploy publishing feature on IIS so developer can publish?

It appears that one must still download the Web Deploy extension. Also, Version 3.5 is now available. To download on a server, default IE security rules will require you add something like http://*.microsoft.com as a trusted site else you can’t download the installer. The whole package is rather large in its purpose and covers many … Read more

Prevent IIS from serving static files through ASP.NET pipeline

I’m taking a guess here and suspect that you have the following setting configured in your web.config file: <modules runAllManagedModulesForAllRequests=”true”> This means that every request, including those for static content is hitting the pipeline. Change this setting to: <modules runAllManagedModulesForAllRequests=”false”> This is assuming your application is running under ASP.NET 4.0 and MVC3. For this to … Read more

IIS AAR – URL Rewrite for reverse proxy – how to send HTTP_HOST

This post has the answer – Modifying headers with IIS7 Application Request Routing Need to enable preserveHostHeader – can’t see how you do that in the UI but this works Run this from command line to update Machine/webroot/apphost config %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/proxy -preserveHostHeader:true /commit:apphost

Semaphore exception – Adding the specified count to the semaphore would cause it to exceed its maximum count

In my case, the problem was that I stopped the application while debugging. The application was making a lot of async callings. So I reset my IIS server: iisreset via Command Prompt or PowerShell, and it worked. EDIT: Look at the @aaroncatlin comment for IIS Express

WCF service returning 404 on method requests

The first thing I do whenever I hit a 404 with a newly-developed WCF Web Service is checking the handler mapping required to interpret this type of call, because it’s often the cause of the issue. There are several ways to work around the problem, many of which require a manual execution of the ServiceModelReg.exe … Read more

Get Angular2 routing working on IIS 7.5

(For angular 2, angular 4) Create a web.config file as in mentioned article. <configuration> <system.webServer> <rewrite> <rules> <rule name=”AngularJS Routes” stopProcessing=”true”> <match url=”.*” /> <conditions logicalGrouping=”MatchAll”> <add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true” /> <add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true” /> </conditions> <action type=”Rewrite” url=”https://stackoverflow.com/” /> </rule> </rules> </rewrite> </system.webServer> </configuration> Place it in the root directory (same as index.html) … Read more

What does the “time” field in the log indicate, exactly?

On this page: http://blogs.msdn.com/b/mike/archive/2008/11/13/time-vs-time-taken-fields-in-iis-logging.aspx it says: The Time field is quite straightforward: it specifies when the log entry was created. Note that this is not always the same as when the log entry actually gets written to the log, as buffering can occur for some request/response scenarios. Therefore, you are correct in thinking that the … Read more

ASP.NET Web API returns 404 for PUT only on some servers

For those of you who do not have WebDAV enabled but are still running into this issue using MVC 4’s Web API’s… Steve Michelotti documented a solution that worked for me here. At the end of the day, I enabled all verbs (verb=”*”) to the ExtensionlessUrlHandler-Integrated-4.0 handler in my web config. <system.webServer> <validation validateIntegratedModeConfiguration=”false” /> … Read more