views:

298

answers:

2

I am building a ASP.NET website, and when I click the START DEBUGGING icon, it will always run Internet Explorer as the account that I ran Visual Studio with.

I would like to run IE as a different user when debugging. Is there a way?

+3  A: 

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.

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:

For IE 7, set this option for your zone:

Tools> Internet Options > Security > custom level (for your zone)> User Authentication> Logon > prompt for user name and password

Gulzar
+1  A: 

@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.

tvanfosson
thanks for making it more clear :)
Gulzar