具体问题就是未登录认证,登录界面引用的css样式和js文件均报302错误;
找了很久的问题终于定位在配置文件上;
具体的解决方法就是在configuration节点下,system.web节点后面添加location节点,Content是我的项目资源路径,大家根据实际更改为自己的资源路径即可。
<configuration>
<system.web>
.
.
</system.web>
<location path="Content">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
</configuration>
博客指出登录界面未登录认证时,引用的css和js文件报302错误,经查找问题定位在配置文件上。解决方法是在configuration节点下、system.web节点后添加location节点,需将Content替换为实际项目资源路径。
1880

被折叠的 条评论
为什么被折叠?



