• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

  • 0
Sign in to follow this  

MVC Website, CSS/JS not loading with Windows Authentication

Question

FloatingFatMan    18,417

Firstly, I'm fairly new to web development so please bear with me!

 

I've started working on an intranet project which requires Windows Authentication, and I've come across a really really irritating snag.

 

When I create a vanilla MVC project in VS2015 with NO authentication, the CSS and JS loads just fine in IE and Chrome.  However, when I create one with Windows Authentication, no CSS or JS or anything image links etc, will load. The status code I get is the ever to useful:  500 Internal Server Error, when this resolves out to ERR_CONNECTION_REFUSED.

 

My site properties are:  Anonymous Authentication: Disabled.  Windows Authentication: Enabled, SSL Enabled: True.

 

If I turn Anon Auth back on, the CSS/JS etc will load again, but I then don't get authenticated.  I've searched and searched online, and found 100's of pages with essentially the same problem, but none of the offered solutions actually work for me.  Hell, this is just a vanilla MVC site created by the VS2015 new project, with absolutely NOTHING added to it, so I'd expect it to bloody well work!

 

Clearly, it's something to do with how Chrome is handling the permissions because IE works just fine, but I need this site to work in Chrome as well so... Can anyone offer any insight as to what's going on?  I've been a desktop app developer for nearly 30 years and all this new fangled webby stuff is irritating as all hell! :p

 

  • Like 1

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
+Zag L.    695

I'm not 100% positive here but I thought Chrome (and Firefox) needed configuration settings in the browser in order to utilize windows authentication.  Take a look at this article and scroll down to 'What Worked'.

 

 

Share this post


Link to post
Share on other sites
  • 0
FloatingFatMan    18,417

Alas, I've tried that (and it's not so easy to do in IIS 8), but it still doesn't work. :(

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.