0
Environment:
Visual Studio 2013 
ASP.NET MVC 5 
Windows 8.1 (both dev and deployment server)

My app displays and executes as expected within Visual Studio environment using localhost.

However, when I deploy to my IIS server, I find two problems (maybe related so including both here).

Installed as an app on the default site and accessed via http://myMachineName/myApp
1. Page doesn't render correctly. Everything is on the page, but the CSS is not being applied.
2. The code behind does NOT execute.


Installed as a new site and accessed via its port number: http://myMachineName:81
1. Page doesn't render correctly. Everything is on the page, but the CSS is not being applied.
2. The code behind does execute correctly.

2 Answers2

0

Adding the following to each page fixed the UI and functionality issues on IE:

<meta http-equiv="x-ua-compatible" content="ie=edge"> 
0

have had the same problem. turned out that it was a setting related to static content in IIS.

here is the link to the answer: CSS, Images, JS not loading in IIS

Community
  • 1
  • 1