[omniORB] Managed code in Visual Studio .NET

Javier Osa josa@tracasa.es
Mon Jun 10 17:40:03 2002


	I wish to migrate code from VC6 to VC7 in Visual Studio .NET. My proyect is
a client DLL (tccedulacli.dll) that gets a reference of ORB server Object
from nameservice and calls one of his methods.

	I have used a Managed C++ Class Library project because I want to use it
from NET components.

	This DLL runs fine in VC6 but when it runs under VC7 results in exceptions
being thrown at run-time ...

".....
		An unhandled exception of type 'System.TypeLoadException' occurred in
tccedulacli.dll
		Additional information: Could not load type omniObjectManager from
assembly TCCedulaCli, Version=1.0.891.28114, Culture=neutral,
PublicKeyToken=null.
....."

	This exception occurs when the constructor of an '_var' type variable of my
own classes defined in IDL file is called, but doesn`t occurr if the '_var'
type variable is Object_var.
	Has someone succeeded with ORB clients from Managed code in VS.NET?

	Thanks

		Xavier Osa