简体   繁体   English

Windows身份验证后ASP.NET Web窗体未加载样式表

[英]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.

相关问题 在ASP.NET(Web窗体)中单击按钮后显示“ Loading / Loader / Progress Bar” - Show “Loading/Loader/Progress Bar” after button click in ASP.NET (Web Form) 为ASP.NET Web API 2应用程序启用Windows和基本身份验证 - Enabling Windows and Basic Authentication for ASP.NET Web API 2 Application ASP.Net Web服务中的Windows Live ID身份验证 - Windows Live ID Authentication in ASP.Net Web Service ASP.NET远程Web应用程序中的Windows身份验证SSO - Windows Authentication SSO in ASP.NET Remote Web Application asp.net mvc4中的web.config中的Windows身份验证 - Windows Authentication in web.config in asp.net mvc4 Angular 6应用程序中的Windows身份验证和ASP.Net Web API - Windows Authentication In Angular 6 Application and ASP.Net Web API ASP.NET Web界面的C#Windows身份验证 - c# windows authentication for a asp.net web interface Web Api / ASP.NET Windows身份验证如何工作? - How Web Api/ASP.NET windows authentication works? 在 asp.net core web 项目中允许 windows 和基本身份验证 - Allow windows and basic authentication in asp.net core web project HOW TO:在特定页面上的asp.net窗体Windows身份验证 - HOW TO: asp.net form windows authentication on the specific page
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM