Visual Studio 2013 gives “Cannot add duplicate collection entry of type ‘mimeMap’”

The issue was that when I switched to Visual Studio 2013, the web server used for debugging changed. Visual Studio 2013 uses IIS Express by default. Although Visual Studio 2010 SP1 supports IIS Express, my installation was still using the default Visual Studio Development server. Like IIS 7, Visual Studio Development Server did not define … Read more

Display all sites and bindings in PowerShell

Try this: Import-Module Webadministration Get-ChildItem -Path IIS:\Sites It should return something that looks like this: Name ID State Physical Path Bindings —- — —– ————- ——– ChristophersWeb 22 Started C:\temp http *:8080:ChristophersWebsite.ChDom.com From here you can refine results, but be careful. A pipe to the select statement will not give you what you need. Based … Read more

applicationhost.config file path in IIS 7, 7.5, 8, 8.5 and IIS 10?

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

IIS: How to serve a file without extension?

Assuming (path) is a physical directory on your machine, create a new web.config file in that directory with the following content: <?xml version=”1.0″ encoding=”UTF-8″?> <configuration> <system.webServer> <staticContent> <mimeMap fileExtension=”.” mimeType=”text/xml” /> </staticContent> </system.webServer> </configuration> You are telling IIS that for this directory only, any file without an otherwise defined extension (in MIME types) should be … Read more

What does ‘IISReset’ do?

IISReset stops and restarts the entire web server (including non-ASP.NET apps) Recycling an app pool will only affect applications running in that app pool. Editing the web.config in a web application only affects that web application (recycles just that app). Editing the machine.config on the machine will recycle all app pools running. IIS will monitor … Read more

HTTP Error 500.19 when publish .net core project into iis with 0x80070005

I was missing the AspNetCoreModule from IIS->Modules. After I installed that I no longer had the 500.19 error. To find out more this blog was great: https://weblog.west-wind.com/posts/2016/Jun/06/Publishing-and-Running-ASPNET-Core-Applications-with-IIS Here is the page from Microsoft to find the download: https://learn.microsoft.com/en-us/aspnet/core/publishing/iis?tabs=aspnetcore2x

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