I am using Visual Studio .NET 2003 with .NET Framework v1.1 and Service Pack
1. I am using Windows XP with Service Pack 2.
I wrote a simple C# class and exposed it through COM interop. I then wrote a
simple VBScript to create an instance of this class using CreateObject and to
call a method on this instance. The method does something visible so that I
know it is being called.
When I execute cscript.exe from the command line, passing my .vbs file as
the only parameter, everything works fine. When I set the C# project
debugging properties to execute cscript.exe, correctly specifying the .vbs
file as the command line parameter, and then execute the C# project in debug
mode, execution of the script abrubtly stops upon calling CreateObject. I
don't get any errors, it just goes away (poof). I know that it goes away
because I placed a WScript.Echo statement before and after it. I also tried
using On Error Resume Next and checking the error code. Every time, execution
of the script abrubtly stops upon calling CreateObject. There are no errors,
no nothing.
Here is the interesting part. Prior to installing .NET Framework v1.1
Service Pack 1, this worked. After installing Service Pack 1, it does not
work. I tried this on a co-worker's machine that does not have Service Pack 1
installed and it works. So this appears to be a problem only with Service
Pack 1.
Does anyone know anything about this and how to get around this?

Signature
Corey Young
Software Engineer
LANDesk Software
Robert Simpson - 26 Oct 2004 23:13 GMT
I've had similar frustrations debugging .NET classes and programs being
called from a native mode executable. As a matter of fact, I've crashed
VS.NET 2003 so many times doing mixed-mode debugging, I've abandoned the
effort. I've been using VS2005 to debug lately, and it works like a champ.
Robert
> I am using Visual Studio .NET 2003 with .NET Framework v1.1 and Service Pack
> 1. I am using Windows XP with Service Pack 2.
[quoted text clipped - 22 lines]
>
> Does anyone know anything about this and how to get around this?