solarissf solarissf - 2 months ago 8
ASP.NET (C#) Question

publish web app using iis locally - SCREEN BLANK

I followed this guide using Visual Studio to publish my web app using IIS LOCALLY... skipping the database section for now.

http://www.asp.net/mvc/overview/deployment/visual-studio-web-deployment/deploying-to-iis

Visual studio published successfully, then it automatically opened up a webpage

http://localhost/ExtApplication4/

The problem is the webpage opens up blank on same computer. I am also attached the dev tools but I don't know what to look for to see WHY nothing is being displayed. Can someone point me in the right direction?

enter image description here

Answer

Register different file extenstions (mime type) in web.config:

For Example:

<configuration> 
   <system.webServer> 
      <staticContent> 
         <mimeMap fileExtension=".appcache" mimeType="text/javascript" /> 
      </staticContent> 
   </system.webServer> 
</configuration>