Using Fiddler with IIS7 Express

This has nothing to do with IIS7 Express and everything to do with the fact that you’re using loopback traffic. Ref: https://www.fiddlerbook.com/fiddler/help/hookup.asp#Q-LocalTraffic Click Rules > Customize Rules. Update your Rules file like so: static function OnBeforeRequest(oSession:Fiddler.Session) { if (oSession.HostnameIs(“MYAPP”)) { oSession.host = “localhost:portnumber”; } } Then, just visit http://myapp in your browser. Or use the … Read more

How to use ServerManager to read IIS sites, not IIS express, from class library OR how do elevated processes handle class libraries?

Make sure you are adding the reference to the correct Microsoft.Web.Administration, should be v7.0.0.0 that is located under c:\windows\system32\inetsrv\ It looks like you are adding a reference to IIS Express’s Microsoft.Web.Administraiton which will give you that behavior

ASP.NET MVC5/IIS Express unable to debug – Code Not Running

For me the solution was a much simpler one. In my Solution Explorer in Visual Studio, I right click on the web project, chose properties and then navigated to the “web” tab. From there I changed the Project URL to another port number. For example, if it was http://localhost:1052 – I changed it to http://localhost:4356. … Read more

Slow startup with IIS Express

I found significant improvement after disabling logging. Locate the IIS config for your project or machine, typically found in: %userprofile%\documents\iisexpress\config\applicationhost.config .\.vs\config\applicationhost.config VS2019: $(solutionDir)\.vs\{projectName}\config\applicationhost.config And comment out or delete the following two nodes (found somewhere in the document) <add name=”HttpLoggingModule” image=”%IIS_BIN%\loghttp.dll” /> <add name=”HttpLoggingModule” lockItem=”true” />

ERR_SSL_PROTOCOL_ERROR for localhost from Visual Studio debug

First, check your site web binding detail by the following detail: Open visual studio, select your project. right-click on the project and select properties. under the Web tab and check your project url. make sure there no such setting in your web.conifg file like below: <system.webServer> <httpProtocol> <customHeaders> <add name=”Strict-Transport-Security” value=”max-age=16070400; includeSubDomains” /> </customHeaders> </httpProtocol> … Read more

Running IIS Express with admin privileges

For Visual Studio 2015 and 2012 this solution will work. Go to Solution Explorer in Visual Studio, right click the web project and select “Unload Project” Next on the same project, right click and select ‘Edit Project File‘ Find the <DevelopmentServerPort>0</DevelopmentServerPort><IISUrl>http://localhost:56058/</IISUrl> xml tags and and remove them. Reload the project and run. Images to follow:

Chrome returns “Bad Request – Request Too Long” when navigating to local IIS Express

I get this all the time ONLY in Chrome and I have to clear browsing data to fix it. Wrench > Tools > Clear Browsing Data Check the following: Clear browsing history Clear download history Empty the cache Delete cookies and other site data Then click “Clear Browsing Data” button and refresh your page. UPDATE: … Read more

What is the file location of applicationhost.config in the different versions of IIS?

For the “big” IIS versions since IIS 7, the location is always the same: %windir%\System32\inetsrv\config\applicationHost.config For IIS Express there is one per user, the default location is: %USERPROFILE%\Documents\IISExpress\config\applicationhost.config again it’s the same for all versions. You can run multiple instances of IIS Express per user, you would need to specify the location of the applicationhost.config … Read more