I'm trying to test this out on my site but it doesn't quite work because I have to be logged in to go to this page.
我正在尝试在我的网站上测试它,但它不太有效,因为我必须登录才能转到此页面。
Is there a configuration setting that I haven't set or set incorrectly?
是否有未正确设置或设置的配置设置?
EDIT: rm's answer led me to this link from Microsoft.
编辑:rm的回答引导我从微软的这个链接。
2 个解决方案
#1
adding to Arjan's answer, the settings for page permissions are in your web.config file.
添加到Arjan的答案,页面权限的设置在您的web.config文件中。
you should do something like this:
你应该做这样的事情:
<configuration>
<location path="YourPage.aspx">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
</configuration>
#2
I'm guessing that the page containing the PasswordRecovery control is in a accesscontrolled folder.
我猜测包含PasswordRecovery控件的页面位于accesscontrolled文件夹中。
So when trying to reach that page, you're being redirected to the login page again...
因此,当尝试访问该页面时,您将再次被重定向到登录页面...
#1
adding to Arjan's answer, the settings for page permissions are in your web.config file.
添加到Arjan的答案,页面权限的设置在您的web.config文件中。
you should do something like this:
你应该做这样的事情:
<configuration>
<location path="YourPage.aspx">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
</configuration>
#2
I'm guessing that the page containing the PasswordRecovery control is in a accesscontrolled folder.
我猜测包含PasswordRecovery控件的页面位于accesscontrolled文件夹中。
So when trying to reach that page, you're being redirected to the login page again...
因此,当尝试访问该页面时,您将再次被重定向到登录页面...