이 페이지의 모든 사용자를 거부하고 싶지만이 오류가 발생합니다.
<location> path attribute must be a relative virtual path. It cannot contain any of '?' ':' '\' '*' '"' '<' '>' or '|'
내 web.config 파일 코드는 다음과 같습니다.
</configuration>
<location path="http://10.19.13.68/Dashboardviewer/Imv.aspx">
<system.web>
<authorization>
<deny users="*"/>
</authorization>
</system.web>
</location>
</configuration>
아래 코드를 사용하면 도움이 될 수 있습니다 ( http://weblogs.asp.net/gurusarkar/archive/2008/09/29/setting-authorization-rules-for-a-particular-page-or-folder-in- web-config.aspx ) :
<configuration> <system.web>
<authentication mode="Forms"/>
<authorization> <deny users="?"/> //this will restrict anonymous user access
</authorization> </system.web>
<location path="register.aspx"> **//path here is path to your register.aspx page e.g. it could be ~/publicpages/register.aspx**
<system.web>
<authorization>
<allow users="*"/> // this will allow access to everyone to register.aspx
</authorization>
</system.web> </location> </configuration>
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다