[英]ASP.NET Web Form not loading stylesheets after windows authentication
I'm trying to create a simple web form with windows authentication. 我正在尝试使用Windows身份验证创建一个简单的Web表单。 I haven't done anything more than create the project. 除了创建项目外,我只做其他事情。 Like so - 像这样-
When I hit f5 to view in browser, the pages load, though with no style like so.. 当我按f5键在浏览器中查看时,页面加载,尽管没有这样的样式。
As far as I'm concerned, it's meant to look like a nice bootstrap file. 就我而言,它看起来像一个不错的引导文件。
Some things I've tried - 我尝试过的一些事情-
Update my web config 更新我的网络配置
<location path="Content" allowOverride="true">
<system.web>
<authorization>
<allow users="*" />
</authorization>
<globalization culture="pt-BR" uiCulture="pt-BR" />
</system.web>
Made sure that the paths are correct (though I haven't touched anything since making the project). 确保路径正确(尽管自创建项目以来我没有碰过任何东西)。
Any help is greatly appreciated! 任何帮助是极大的赞赏!
EDIT: I've created another project - and the only difference between this one and the one above is that there is no authentication. 编辑:我创建了另一个项目-这个项目与上面的项目之间的唯一区别是没有身份验证。 When I load the about page, the style loads as seen below - 当我加载about页面时,样式加载如下所示-
Should also mention that this is a Visual Studio 2015 project... 还应该提到这是一个Visual Studio 2015项目...
I had the same issue. 我遇到过同样的问题。 CSS was not loading when I enable Windows authentication. 启用Windows身份验证时未加载CSS。
The error code in iis log was 500 0 1346. iis日志中的错误代码为500 0 1346。
This was resolved after adding the application pool identity to the administrators group. 将应用程序池标识添加到管理员组后,此问题已解决。 Basically, the application pool identity must have "impersonate a client after authentication" policy. 基本上,应用程序池标识必须具有“身份验证后模拟客户端”策略。 So adding it to a group with this policy should fix. 因此,使用此策略将其添加到组中应该可以解决。
Article - https://blogs.msdn.microsoft.com/asgoyal/2012/08/25/one-thing-you-must-do-when-getting-http-500-0-1346-error/ 文章-https://blogs.msdn.microsoft.com/asgoyal/2012/08/25/one-thing-you-must-do-when-getting-http-500-0-1346-error/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.