[英]Visual Studio 2013 Bypass Authentication When Debugging
I have an ASP.Net website that uses authentication. 我有一个使用身份验证的ASP.Net网站。 In VS2012 I simply commented out:
在VS2012中,我只是注释掉了:
<authentication mode="Forms">
<forms loginUrl="~/login.aspx" timeout="2880" />
</authentication>
to debug without having to login. 无需登录即可进行调试。
However, I've now opened the site in VS2013 and I get an access denied error when I hit debug. 但是,我现在在VS2013中打开了该站点,并在单击debug时收到了拒绝访问错误。 What can I do to bypass authentication whilst debugging in VS2013?
在VS2013中调试时如何绕过身份验证?
I've got around the issue by commenting out 我通过注释解决了这个问题
<authorization>
<allow roles="administrator" />
<deny users="xxx1" />
<deny roles="xxx2" />
<deny roles="xxx3" />
<deny roles="xxx4" />
<deny roles="xxx5" />
</authorization>
in web.config. 在web.config中。
Thought I's share if anyone else get's caught out. 以为如果有人被我抓到,我也有责任。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.