开发者

What is registry setting to suppress "remote access warning" while debugging a WCF project [duplicate]

This question already has answers here: 开发者_如何学C Turn off Visual Studio Attach security warning when debugging IIS (11 answers) Closed last year.

I have a Visual Studio 2010 solution that contains a WCF service project. When I am debugging the solution, the first time that I access the WCF project, I get the pop up message:

"Security Warning: Attaching to a process owned by an untrusted user can be dangerous. If the following information looks suspicious or you are unsure, do not attach to this process."

If I click OK, I can debug without problem. All subsequent access to the WCF service in that dubbing session run without the warning.

If I click on the help link on the pop up, it takes me to this page:

Security Warning: Attaching to a process owned by an untrusted user can be dangerous. If the following information looks suspicious or you are unsure, do not attach to this process.

On that page there is a sentence that says:

If you are debugging a legitimate scenario that causes this warning to appear, and want to suppress it, there is a registry setting that allows you to do this.

However, it does not tell you what that setting is or provide any obvious links to pages that might impart that information. I looked through a lot of related pages on the site and searched with Google, but did not come upon the specifics of a registry setting.

Please, someone point me in the right direction?


  • Visual Studio 2008 - HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Debugger\DisableAttachSecurityWarning
  • Visual Studio 2005 - HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\Debugger\DisableAttachSecurityWarning

See also this blog entry.


For those looking for this fix for VS2015 and 2017, check this post: Where does Visual Studio 2017 RC store its config?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜