V
viperx1967
We are having an issue with an application we are developing. We have a
Legacy COM DLL in C++ that we have converted to Visual Studio 2008. This COM
DLL has methods that are calling Managed C# assemblies as pass thru to
support legacy applications in an effort to move our code to the new Code
base. Our COM Object can be instantiated on Windows XP in any COM supported
environment using Visual C++, Visual Basic, ASP.NET or ASP and works without
any issues or throwing any exceptions. When we use the object on a Vista
Machine the method fails only when it is used in a Classic ASP page. We are
initializing the Managed code in the Unmanaged code using
gcroot<MYOBJ::FOOBAR^> myObj; on the constructor, when we create an instance
of the object is when it seems to fail. We have attempted creating our
instance by using myObj = gcnew MYOBJ::FOOBAR(); in the constructor but this
caused the object to fail on CreateObject, this was moved into the calling
method. Now the object is created but now fails on the method call. We have
attempted to instanciate it using myOBJ = gcnew MYOBJ:FOOBAR(); and gcnew
MYOBJ::FOOBAR; both work in Windows XP but do not work on Vista. All
assemblies are in the same directory together and have permissions set to
access all the files.
Legacy COM DLL in C++ that we have converted to Visual Studio 2008. This COM
DLL has methods that are calling Managed C# assemblies as pass thru to
support legacy applications in an effort to move our code to the new Code
base. Our COM Object can be instantiated on Windows XP in any COM supported
environment using Visual C++, Visual Basic, ASP.NET or ASP and works without
any issues or throwing any exceptions. When we use the object on a Vista
Machine the method fails only when it is used in a Classic ASP page. We are
initializing the Managed code in the Unmanaged code using
gcroot<MYOBJ::FOOBAR^> myObj; on the constructor, when we create an instance
of the object is when it seems to fail. We have attempted creating our
instance by using myObj = gcnew MYOBJ::FOOBAR(); in the constructor but this
caused the object to fail on CreateObject, this was moved into the calling
method. Now the object is created but now fails on the method call. We have
attempted to instanciate it using myOBJ = gcnew MYOBJ:FOOBAR(); and gcnew
MYOBJ::FOOBAR; both work in Windows XP but do not work on Vista. All
assemblies are in the same directory together and have permissions set to
access all the files.