"unable to attach to the process" when debugging in VS.2003<p>Hello,</p> <p>I have both Visual Studio 2003 and Visual Studio 2005 installed on my workstation. I have some big projects that are not transitioned from 2003 to 2005 yet and I have to debug thier code now.</p> <p>But after I installed VS.2005 &quot;Attach to a process&quot; feature stopped working in VS.2003. When I try to attach to a process that has .Net 1.1 assemby running it always gives me an error &quot;unable to attach to the process&quot; with no further explanation.</p> <p>Re-registering <font face="Courier New">mscordbi.dll </font>didn't help:</p> <p><font face="Courier New, Courier, Monospace">regsvr32 C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscordbi.dll</font></p> <p>Any iseas how I can fix 2003 so I can continue working in it?</p> <p>Thanks, Vladimir</p>© 2009 Microsoft Corporation. All rights reserved.Wed, 05 Aug 2009 15:27:45 Z59d16b8b-2c46-4e6d-8843-34096546c8behttp://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/59d16b8b-2c46-4e6d-8843-34096546c8be#59d16b8b-2c46-4e6d-8843-34096546c8behttp://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/59d16b8b-2c46-4e6d-8843-34096546c8be#59d16b8b-2c46-4e6d-8843-34096546c8beVladimir Lashchevhttp://social.msdn.microsoft.com/Profile/en-US/?user=Vladimir%20Lashchev"unable to attach to the process" when debugging in VS.2003<p>Hello,</p> <p>I have both Visual Studio 2003 and Visual Studio 2005 installed on my workstation. I have some big projects that are not transitioned from 2003 to 2005 yet and I have to debug thier code now.</p> <p>But after I installed VS.2005 &quot;Attach to a process&quot; feature stopped working in VS.2003. When I try to attach to a process that has .Net 1.1 assemby running it always gives me an error &quot;unable to attach to the process&quot; with no further explanation.</p> <p>Re-registering <font face="Courier New">mscordbi.dll </font>didn't help:</p> <p><font face="Courier New, Courier, Monospace">regsvr32 C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscordbi.dll</font></p> <p>Any iseas how I can fix 2003 so I can continue working in it?</p> <p>Thanks, Vladimir</p>Fri, 14 Apr 2006 00:15:40 Z2006-05-11T01:01:27Zhttp://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/59d16b8b-2c46-4e6d-8843-34096546c8be#1c566c23-fa98-4242-a178-2c6ad68a1d8dhttp://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/59d16b8b-2c46-4e6d-8843-34096546c8be#1c566c23-fa98-4242-a178-2c6ad68a1d8dGregg Miskellyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Gregg%20Miskelly"unable to attach to the process" when debugging in VS.2003Does the process have the 1.1 or 2.0 version of mscorwks.dll (you can check with listdlls from <a title="http://www.sysinternals.com" href="http://www.sysinternals.com">www.sysinternals.com</a>)Sat, 15 Apr 2006 00:16:25 Z2006-04-15T00:16:25Zhttp://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/59d16b8b-2c46-4e6d-8843-34096546c8be#143ef09f-a63e-4ef6-8884-7f92ec64e430http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/59d16b8b-2c46-4e6d-8843-34096546c8be#143ef09f-a63e-4ef6-8884-7f92ec64e430Bill DiPierrehttp://social.msdn.microsoft.com/Profile/en-US/?user=Bill%20DiPierre"unable to attach to the process" when debugging in VS.2003By default apps will run against the later framework if it is installed.  This will cause the error you are seeing in VS 2003.  To force your apps to run against framework v 1.1 add the following to their config files<br> <br>    &lt;startup&gt; <br> <br>       &lt;supportedRuntime version=&quot;v1.1.4322&quot; /&gt; <br> <br>    &lt;/startup&gt; <br> <br> hth<br> Bill<br> <br>Mon, 01 May 2006 21:15:31 Z2006-05-11T01:01:27Zhttp://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/59d16b8b-2c46-4e6d-8843-34096546c8be#a87fbb14-5d64-4ba9-b9d3-d6f0bdc0e330http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/59d16b8b-2c46-4e6d-8843-34096546c8be#a87fbb14-5d64-4ba9-b9d3-d6f0bdc0e330barnabyahttp://social.msdn.microsoft.com/Profile/en-US/?user=barnabya"unable to attach to the process" when debugging in VS.2003<p>I'm using VS2003, but have .Net framework v2.0 installed. These are incompatible - I can't attach to a process to debug CLR code when the app has invoke .Net v2.0. Such was the case writing my BHO for IE. However, the message was frustratingly vague: &quot;Cannot attach to process&quot;<br>I defined a .config file for IE and required .Net v1.1, and now I can debug my BHO code!</p> <p>Thanks for the notes</p>Mon, 08 May 2006 06:00:55 Z2006-05-08T06:00:55Zhttp://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/59d16b8b-2c46-4e6d-8843-34096546c8be#3325ecb2-f6a4-481f-9bd2-437511d9d217http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/59d16b8b-2c46-4e6d-8843-34096546c8be#3325ecb2-f6a4-481f-9bd2-437511d9d217Anders Ghttp://social.msdn.microsoft.com/Profile/en-US/?user=Anders%20G"unable to attach to the process" when debugging in VS.2003<p>I have the same problems but since we only have Class Libraries (no exes) that are called from VB6/COM it is not possible to add a specific config file for the &quot;application&quot;.</p> <p>Are there other solutions to this problem?</p> <p>BR</p> <p>Anders</p>Fri, 26 May 2006 07:51:48 Z2006-05-26T07:51:48Zhttp://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/59d16b8b-2c46-4e6d-8843-34096546c8be#d3dc2f4d-991f-4dd6-a78e-a3ab92d6193ahttp://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/59d16b8b-2c46-4e6d-8843-34096546c8be#d3dc2f4d-991f-4dd6-a78e-a3ab92d6193aNightsfallhttp://social.msdn.microsoft.com/Profile/en-US/?user=Nightsfall"unable to attach to the process" when debugging in VS.2003<p align=left><font face=Arial size=2></font> </p>This is what I did to solve that problem. Basiclly I went to the IIS settings , and I change the project's ASP.net configuration back to 1.1 for the the 1.1 project. When I attached the debug process ,  I had two asp.net_wp.exe for me to choose. If it is asp.net 1.1 then I choose the 1.1 exe, if it is 2.0 then I choose the 2.0 exe. I do not know if this could apply to your case.Wed, 14 Nov 2007 21:18:12 Z2007-11-14T21:18:12Zhttp://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/59d16b8b-2c46-4e6d-8843-34096546c8be#2b50cab9-3ec8-422b-abd1-0f90cc8d8f8dhttp://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/59d16b8b-2c46-4e6d-8843-34096546c8be#2b50cab9-3ec8-422b-abd1-0f90cc8d8f8darun gaikwadhttp://social.msdn.microsoft.com/Profile/en-US/?user=arun%20gaikwad"unable to attach to the process" when debugging in VS.2003<p align=left><font face=Arial size=2></font> </p>This was a gr8 help friend.Thu, 29 Nov 2007 19:52:30 Z2007-11-29T19:52:30Zhttp://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/59d16b8b-2c46-4e6d-8843-34096546c8be#0a575fea-0944-4f0c-9b70-05b9d645bd48http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/59d16b8b-2c46-4e6d-8843-34096546c8be#0a575fea-0944-4f0c-9b70-05b9d645bd48CDH2009http://social.msdn.microsoft.com/Profile/en-US/?user=CDH2009"unable to attach to the process" when debugging in VS.2003 I had the same &quot;unable to attach to the process&quot; issue in a remote debugging setup, with my Visual Studio.Net trying to debug an 1.1 ASP.Net application on a remote W2003 x86; I thought it had to do with a security issue, but just switching the remote IIS from the ASP.Net 2.0 runtime to 1.1 did the trickFri, 01 Aug 2008 11:51:55 Z2008-08-01T11:51:55Zhttp://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/59d16b8b-2c46-4e6d-8843-34096546c8be#e2318643-a777-48ff-85c9-367f7e9be6c6http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/59d16b8b-2c46-4e6d-8843-34096546c8be#e2318643-a777-48ff-85c9-367f7e9be6c6Kish Bhttp://social.msdn.microsoft.com/Profile/en-US/?user=Kish%20B"unable to attach to the process" when debugging in VS.2003Thanq. This did the trick.Wed, 05 Aug 2009 15:27:45 Z2009-08-05T15:27:45Z