E
eric.goforth
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.
Thanks,
Eric
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.
Thanks,
Eric