ASP.NET Core 1.0 on IIS error 502.5 – Error Code 0x80004005

I was able to fix it by running “C:\Program Files\dotnet\dotnet.exe” “C:\fullpath\PROJECT.dll” on the command prompt, which gave me a much more meaningful error: “The specified framework ‘Microsoft.NETCore.App’, version ‘1.0.1’ was not found. – Check application dependencies and target a framework version installed at: C:\Program Files\dotnet\shared\Microsoft.NETCore.App – The following versions are installed: 1.0.0 – Alternatively, install … Read more

Getting “Can’t find the drive. The drive called ‘IIS’ does not exist.”

The drive is provided by the WebAdministration module, so you need to install/import that module first. How you install the module depends on your actual system and whether you use GUI or PowerShell. On a Windows Server 2008 R2 for instance you’d install the module with the following PowerShell commands: Import-Module ServerManager Add-WindowsFeature Web-Scripting-Tools After … Read more

Allow loading of JSON files in Visual Studio Express 2013 for Web

After some more googling, and experimenting I found out, that you have to define IIS settings in the Web.config. After adding the following configuration: <system.webServer> <staticContent> <mimeMap fileExtension=”.json” mimeType=”application/json” /> </staticContent> </system.webServer> it works like a charm. Full setup file example: <?xml version=”1.0″?> <configuration> <system.web> <compilation debug=”true” targetFramework=”4.0″/> </system.web> <system.webServer> <staticContent> <mimeMap fileExtension=”.json” mimeType=”application/json” /> … 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

ASP.NET Core deployment to IIS error: Development environment should not be enabled in deployed applications

First, check the value of ASPNETCORE_ENVIRONMENT variable. You will have to set this environment variable to “Production” (or other environment than Development) Otherwise, you can update web.config like this- <configuration> <!– Configure your application settings in appsettings.json. Learn more at http://go.microsoft.com/fwlink/?LinkId=786380 –> <system.webServer> <handlers> <add name=”aspNetCore” path=”*” verb=”*” modules=”AspNetCoreModule” resourceType=”Unspecified” /> </handlers> <aspNetCore processPath=”.\Application.exe” arguments=”” … Read more

Recreate the default website in IIS

Other answers are basically right, thanks to them I was able to restore my default web site, they’re just missing some more or less important details. This was the complete process to restore the Default Web Site in my case (IIS 7 on Windows 7 64bit): open IIS Manager right click Sites node under your … Read more