我有一个奇怪的问题。 Director角色的成员无法访问ViewPMPDProfile页面,除非我允许该角色使用两个位置标签,一次使用.aspx扩展名,一次不使用该扩展名。这是我的web.config的内容,位于子文件夹中。
<?xml version="1.0"?>
<configuration>
<location path="ViewPMPDProfile">
<system.web>
<authorization>
<allow roles="Director,ProjectManager,ProjectDirector,Admin"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="ViewPMPDProfile.aspx">
<system.web>
<authorization>
<allow roles="Director, ProjectManager, ProjectDirector, Admin"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<location path="ProjectApplication">
<system.web>
<authorization>
<allow roles="Admin,Company"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<!--<location path="ProjectApplication.aspx">
<system.web>
<authorization>
<allow roles="Admin,Company"/>
<deny users="*"/>
</authorization>
</system.web>
</location>-->
<location path="ViewPM_PDResume">
<system.web>
<authorization>
<allow roles="ProjectManager,ProjectDirector,Admin,Company"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
<!--<location path="ViewPM_PDResume.aspx">
<system.web>
<authorization>
<allow roles="ProjectManager,ProjectDirector,Admin,Company"/>
<deny users="*"/>
</authorization>
</system.web>
</location>-->
<location path="">
<system.web>
<authorization>
<allow roles="ProjectManager,ProjectDirector,Admin"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
</configuration>
请注意,我的友好网址已设置为永久。