开发者

Visual Studio: have to open with "Run as.." every time

When I click the VS 2010 icon to open it I g开发者_StackOverflow社区et a popup box error "Exception has been thrown by the target of an invocation"

I then need to right click the icon, click "Run as.." change "Current user" to "The Following user" then enter in my windows credentials and it opens fine.

This is happening suddenly (Windows XP) and I don't know why. It wasn't happening before and I haven't started logging in with a different user or anything.

Any ideas?


It sounds like the VS settings for your logged-in user have become corrupted, causing VS to crash when it loads them. Running as a different user uses that user's settings, so it works fine.

Try renaming My Documents\Visual Studio 20xx\Settings and see if that helps.

Also, try running VS with the /SafeMode option.


It may be caused by a recently added extension.

Try disabling all Extensions, or running in Safe Mode.


If all else fails, you could try starting Visual Studio while you have Process Monitor running -- if it's some sort of security error, you should see an error reading a file or reg key in there. it's helped me with similar problems before. You can find it here: http://technet.microsoft.com/en-us/sysinternals/bb896645

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜