• 0

MVC Website, CSS/JS not loading with Windows Authentication


Question

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

2 answers to this question

Recommended Posts

  • 0

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'.

 

 

This topic is now closed to further replies.
  • Posts

    • "A Microsoft spokesperson said that it had been in contact with the court since February “throughout the process that resulted in the disconnection of its sanctioned official from Microsoft services.” The spokesperson added that “at no point did Microsoft cease or suspend its services to the ICC.” Microsoft declined to comment further in response to questions regarding the exact process that led to Khan's email disconnection, and exactly what it meant by “disconnection.” The ICC declined to comment. However, German business magazine WirtschaftsWoche reported Tuesday that Microsoft's lawyers have now reached the view that it merely provides a technical platform and that its customers decide whether to give their employees access to its services. Microsoft would no longer intervene in scenarios similar to the ICC case, WirtschaftsWoche wrote." Source: https://www.politico.eu/articl...ump-tech-icc-amazon-google/ So while they haven't targeted the ICC, they seem to have targeted a sanctioned individual and cut that individual off from their services. At least I cannot read the statement from their spokesperson in any other way. It can however be understood as they did this on behalf of the ICC, which would line up with Smith's statements that they never cut off services to the ICC. But I don't know if there is any confirmed sources back that up.
    • Oof, that's a pretty glaring issue. They seem to be consistently proving that they don't do the necessary QA before sending things out.
    • They have removed th way to download directly the iso of windows from rufus ? i have tried the version 4.9, the button selection isn't a select list to choose download
  • Recent Achievements

    • Week One Done
      patrickft456 earned a badge
      Week One Done
    • One Month Later
      patrickft456 earned a badge
      One Month Later
    • One Month Later
      Jdoe25 earned a badge
      One Month Later
    • Explorer
      Legend20 went up a rank
      Explorer
    • One Month Later
      jezzzy earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      617
    2. 2
      ATLien_0
      281
    3. 3
      +FloatingFatMan
      174
    4. 4
      Michael Scrip
      153
    5. 5
      Steven P.
      125
  • Tell a friend

    Love Neowin? Tell a friend!