Search code examples
c#iismicrosoft-edgewindows-authenticationinternal-server-error

Microsoft Edge not loading CSS files with activated Windows Authentication


I'm creating an intranet website and using the ASP.NET MVC template with Windows Authentication. After compiling and logging in with my credentials, the CSS hasn't loaded.

I'm using Windows 10, Visual Studio 2015. Everything works fine in Internet Explorer 11. I've not written one line of code in this brand new project but Edge doesn't load the CSS. Moreover, it seems like the problem only appears with activated windows authentication as a login method. I've created some new projects with no login method and with the custom user account method and it all works fine in Edge. Why is it not working with windows authentication in Edge?

So basically what happens is I see the raw site without the styles. I opened the developer tools and saw that the bootstrap.css and the Site.css file weren't loaded. I tried to open the path in Edge and I got a 500.0 Internal Server Error. Again Internet Explorer does his job.

See this picture to see the website and debugger Home page with debugger

Here is the internal server error: Internal Server Error 500.0

Sorry for the German version.

enter image description here

enter image description here


Solution

  • First of all thank you guys for your help!

    I've finally figured out what was causing the problem:

    Our lovely group-policy in my company blocked some certificates. I'm able to load the solution on our server and run it on IIS and not on IIS Express. Everything works fine there. Unfortunately we are restricted to change the security tab in internet options so I can not add localhost to the trusted websites.

    Again, thanks to everyone for your help.