简体   繁体   English

调试时Visual Studio 2013绕过身份验证

[英]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.

相关问题 浏览器关闭时停止调试Visual Studio 2013 - Stop debugging Visual Studio 2013 when browser closes 当我选择身份验证选项时,Visual Studio 2013不创建数据库 - Visual Studio 2013 not creating database when I select the authentication option Visual Studio 2013更改现有项目的身份验证 - Visual Studio 2013 Change Authentication on Existing Project ASP.NET Visual Studio 2013调试速度极慢 - ASP.NET Visual Studio 2013 extremely slow debugging 使用Firefox或Chrome不能完全结束Visual Studio 2013调试 - Visual Studio 2013 debugging doesn't end cleanly with Firefox or Chrome 在Visual Studio 2013 Web表单中调试时会话丢失 - Session gets lost while debugging in visual studio 2013 web forms Visual Studio 2013调试错误Asp.net应用程序 - Visual Studio 2013 debugging error Asp.net application 当我使用Firefox或Chrome调试Asp.Net项目时,Visual Studio 2013不会结束调试 - Visual Studio 2013 Wont End Debugging When I Use Firefox Or Chrome To Debug My Asp.Net Project 如何在Visual Studio 2013中绕过Crystal Reports的登录屏幕? - How do I bypass the login screen for Crystal Reports in Visual Studio 2013? 在 Visual Studio 中调试时无法识别属性“targetframework” - Unrecognized attribute ‘targetframework’ when debugging in Visual Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM