I have hosted WCF library on the IIS7 on my local machine. My web application is accessing this service. When I debug the service method, I got the prompt message for attaching the w3wp process. How it is resolved permanently as i am facing this frequently. Below is the screenshot

Is there any settings required in IIS. Please suggest.
You could try the following:
HKCU\Software\Microsoft\VisualStudio\10.0\Debugger\DisableAttachSecurityWarningfrom0to1.(Source: http://blog.geeky.cc/post/2010/07/19/Disable-Attach-Security-Warning.aspx)