Bug with VS .NET 2003 Final Beta Interop... 
Author Message
 Bug with VS .NET 2003 Final Beta Interop...

I'm making a call on an COM object thourgh VB.NET/Interop and getting
a run-time error.  The code is from an example posted to the
microsoft.public.dotnet.framework.remoting group several months ago:

http://www.*-*-*.com/

With VS 2003 Final Beta the code compiles fine.  When run it bombs at
the following line with the error message "An unhandled exception of
type 'System.InvalidCastException' occured in OPCClient.exe.  Addition
information:  QueryInterface for interface OPCAutomation.IOPCGroups
failed."

        ' special interop 'cast' operation:
        ' http://www.*-*-*.com/ %40cpmsftngxa07
        groups = CType(Marshal.CreateWrapperOfType(server.OPCGroups, _
            GetType(OPCGroupsClass)), OPCGroupsClass)

It seems that the cast is broken with VS 2003 Final Beta.  The code
compiles and runs fine with VS .NET 2002.

Anyone know what's going on?  I've been seeing some disturbing posts
regarding changes to VS .NET Interop, is this related?

Thanks,
Bill



Fri, 22 Jul 2005 23:43:59 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. VS.NET 2003 Final Beta Newsgroup?

2. Visual Studio .Net 2003 Final Beta, simple socket code breaks between 2002 and 2003

3. Problem with VB.NET under .NET 2003 Final beta

4. ProcessTabKey - Bug in 2003 Final Beta (Rc3)

5. VSS and .NET 2003 Final Beta

6. VB .Net 2003 Standard or VS .Net 2003 Pro for Smart Devices

7. vs.net 2003 in beta

8. vs.net 2003 beta

9. VS.NET 2003 project back to VS.NET 2002

10. Bug in VS.NET 2003 debugger

11. Bug in VS.NET 2003

12. Upgrading to VS.Net 2003 from VS.Net 2002

 

 
Powered by phpBB® Forum Software