![](/img/trans.png)
[英]Trying to change the text of a label that is inside the default login.aspx page in asp.net
[英]ASP.net default login.aspx page missing images
我在Visual Studio 2010中使用默认的ASP.Net Web应用程序。启动网站并转到登录页面时,它将丢失所有图形。 登录后返回图形。
我尝试在web.config中为路径添加异常,但没有运气。 也许我走错了路? 我正在使用默认样式。
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
...
<location path="~/Account/Login.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
该站点是Visual Studio 2010中默认的新ASP.Net Web应用程序,以及web.config中的默认站点
这是一个格式/语法问题。
在Web.config中允许访问时,应为:
<location path="Styles">
不
<location path="~/Styles">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.