I am building a ASP.NET website, and when I click the START DEBUGGING icon, it runs Internet Explorer as the account that I ran Visual Studio with.
我正在构建一个ASP.NET网站,当我单击START DEBUGGING图标时,它会运行Internet Explorer作为我运行Visual Studio的帐户。
I would like to run IE as a different user when debugging.
我想在调试时以不同的用户身份运行IE。
2 个解决方案
#1
4
You can use the runas command to run IE as a different user for running your app. Later attach to the asp.net worker process when you want to debug.
您可以使用runas命令以另外的用户身份运行IE以运行您的应用程序。稍后在要调试时附加到asp.net工作进程。
If you want to just change the credentials for Integrated Authentication, try the setting in the update below.
如果您只想更改集成身份验证的凭据,请尝试以下更新中的设置。
Update: If you want IE to prompt for a user name and password, try this setting:
更新:如果您希望IE提示输入用户名和密码,请尝试以下设置:
For IE 7, set this option for your zone:
对于IE 7,为您的区域设置此选项:
Tools> Internet Options > Security > custom level (for your zone)> User Authentication> Logon > prompt for user name and password
工具> Internet选项>安全性>自定义级别(针对您的区域)>用户身份验证>登录>提示输入用户名和密码
#2
2
@Gulzar is on to something, except that as long as you start the debugger (it will fire up the browser, that's ok, just don't close it), then start up IE (or Firefox) using runas as another user and point it to the localhost URL shown in the debugger-started browser, you should be able to interact with the application using the other ID. And the debugger should work as expected.
@Gulzar正在做一些事情,只要你启动调试器(它会启动浏览器,没关系,只是不要关闭它),然后使用runas作为另一个用户和点启动IE(或Firefox)它在调试器启动的浏览器中显示的localhost URL中,您应该能够使用其他ID与应用程序进行交互。调试器应该按预期工作。
#1
4
You can use the runas command to run IE as a different user for running your app. Later attach to the asp.net worker process when you want to debug.
您可以使用runas命令以另外的用户身份运行IE以运行您的应用程序。稍后在要调试时附加到asp.net工作进程。
If you want to just change the credentials for Integrated Authentication, try the setting in the update below.
如果您只想更改集成身份验证的凭据,请尝试以下更新中的设置。
Update: If you want IE to prompt for a user name and password, try this setting:
更新:如果您希望IE提示输入用户名和密码,请尝试以下设置:
For IE 7, set this option for your zone:
对于IE 7,为您的区域设置此选项:
Tools> Internet Options > Security > custom level (for your zone)> User Authentication> Logon > prompt for user name and password
工具> Internet选项>安全性>自定义级别(针对您的区域)>用户身份验证>登录>提示输入用户名和密码
#2
2
@Gulzar is on to something, except that as long as you start the debugger (it will fire up the browser, that's ok, just don't close it), then start up IE (or Firefox) using runas as another user and point it to the localhost URL shown in the debugger-started browser, you should be able to interact with the application using the other ID. And the debugger should work as expected.
@Gulzar正在做一些事情,只要你启动调试器(它会启动浏览器,没关系,只是不要关闭它),然后使用runas作为另一个用户和点启动IE(或Firefox)它在调试器启动的浏览器中显示的localhost URL中,您应该能够使用其他ID与应用程序进行交互。调试器应该按预期工作。