Microsoft Edge 未通过激活的 Windows 身份验证加载 CSS 文件 [英] Microsoft Edge not loading CSS files with activated Windows Authentication

查看:101
本文介绍了Microsoft Edge 未通过激活的 Windows 身份验证加载 CSS 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个 Intranet 网站并使用带有 Windows 身份验证的 ASP.NET MVC 模板.编译并使用我的凭据登录后,CSS 尚未加载.

我使用的是 Windows 10、Visual Studio 2015.在 Internet Explorer 11 中一切正常.我没有在这个全新的项目中编写一行代码,但 Edge 没有加载 CSS.此外,问题似乎只出现在激活的 Windows 身份验证作为登录方法时.我创建了一些没有登录方法和自定义用户帐户方法的新项目,并且在 Edge 中一切正常.为什么它不能在 Edge 中使用 Windows 身份验证?

所以基本上发生的事情是我看到没有样式的原始网站.我打开开发者工具,看到 bootstrap.css 和 Site.css 文件没有加载.我试图在 Edge 中打开路径,但出现 500.0 内部服务器错误.Internet Explorer 再次完成他的工作.

看这张图看网站和调试器

解决方案

首先感谢大家的帮助!

我终于弄清楚是什么导致了问题:

我们公司可爱的组策略阻止了一些证书.我能够在我们的服务器上加载解决方案并在 IIS 上而不是在 IIS Express 上运行它.那里一切正常.不幸的是,我们只能更改 Internet 选项中的安全选项卡,因此我无法将 localhost 添加到受信任的网站.

再次感谢大家的帮助.

I'm creating an intranet website and using the ASP.NET MVC template with Windows Authentication. After compiling and logging in with my credentials, the CSS hasn't loaded.

I'm using Windows 10, Visual Studio 2015. Everything works fine in Internet Explorer 11. I've not written one line of code in this brand new project but Edge doesn't load the CSS. Moreover, it seems like the problem only appears with activated windows authentication as a login method. I've created some new projects with no login method and with the custom user account method and it all works fine in Edge. Why is it not working with windows authentication in Edge?

So basically what happens is I see the raw site without the styles. I opened the developer tools and saw that the bootstrap.css and the Site.css file weren't loaded. I tried to open the path in Edge and I got a 500.0 Internal Server Error. Again Internet Explorer does his job.

See this picture to see the website and debugger Home page with debugger

Here is the internal server error: Internal Server Error 500.0

Sorry for the German version.

解决方案

First of all thank you guys for your help!

I've finally figured out what was causing the problem:

Our lovely group-policy in my company blocked some certificates. I'm able to load the solution on our server and run it on IIS and not on IIS Express. Everything works fine there. Unfortunately we are restricted to change the security tab in internet options so I can not add localhost to the trusted websites.

Again, thanks to everyone for your help.

这篇关于Microsoft Edge 未通过激活的 Windows 身份验证加载 CSS 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆