Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

Can't access css files and js files when I enable windows authentication

$
0
0

I have developed an ASP.NET MVC 5 with Visual Studio 2012 Premium, C# and .NET Framework 4.5.1.

When I enable Windows authentication on web.config:

<system.web><compilation debug="true" targetFramework="4.5.1" /><httpRuntime targetFramework="4.5.1" /><authentication mode="Windows" /><authorization><deny users="?" /></authorization></system.web>

And modify applicationhost.config file:

<authentication><anonymousAuthentication enabled="true" userName="" /><basicAuthentication enabled="true" /><clientCertificateMappingAuthentication enabled="false" /><digestAuthentication enabled="false" /><iisClientCertificateMappingAuthentication enabled="false"></iisClientCertificateMappingAuthentication><windowsAuthentication enabled="false"><providers><add value="Negotiate" /><add value="NTLM" /></providers></windowsAuthentication></authentication>

With windows authentication disabled I can see CSS and images, but with windows authentication enabled I can't see any CSS and images.

What do I have to do to solve this problem?

When I try to access images from its url, http://myhost:53827/images/logo.jpg, I get the error:Error HTTP 500.0 - Internal Server Error


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>