all groups > visual studio .net debugging > september 2006 >
You're in the

visual studio .net debugging

group:

"unable to attach to the process" - VS 2003 VB.NET dll and VB6


"unable to attach to the process" - VS 2003 VB.NET dll and VB6 eric.goforth NO[at]SPAM gmail.com
9/20/2006 11:20:42 AM
visual studio .net debugging:
Hello,

I'm calling a VB.NET 2003 dll that's registered in COM+. I've added a
reference to it in a VB6 DLL that I'm calling from a Classic ASP page.
Previously I was able to attach to my .NET dll and debug it. I haven't
been able to do this in a while and I'm thinking that it must be
because I've installed VS 2005 on my machine subsequently.

So in my C:\Program Files\Microsoft Visual Studio\VB98 directory I
added a file called vb6.exe.config that contains the following:

<configuration>

<startup>
<supportedRuntime version="v1.1.4322"/>
</startup>

</configuration>


I also added an app.config file to my .NET dll's project that looks
like:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v1.1.4322" />
</startup>
</configuration>

So I'm running my VB6 dll in the IDE and I put a break point on the
line after the CreateObject line in VB6 dll code.

Dim objDotNet As MyDotNetDLL.clsMyDotNetClass
Set objDotNet = CreateObject("MyDotNetDLL.clsMyDotNetClass")
'Put a break point here...

I have my VB.NET dll project open in the IDE and I try to attach to the
process using Tools / Debug Processes.

I pick dllhost that has "Microsoft Active Server pages" beside it with
the Type Script, .NET, T-SQL, Win32. I then pick "Common Language
Runtime" as the program type that I want to debug and I still get the
"Unable to attach to process" message.

Thnaks,
Eric
Re: "unable to attach to the process" - VS 2003 VB.NET ... Madman
10/24/2006 6:51:22 AM
You can set the ASP framework version to 1.1 via IIS configuration tool

Click the root directory of your page, properties->ASP.NET->ASP.NET version, and select 1.1.xxx

Worked like a charm for me.
---
AddThis Social Bookmark Button