R
ranin02
Hi,
I have a COM method that is called from VBA. This COM method in turn
calls CoCreateInstance on a class that is a .NET class with a COM
wrapper around it. This all works fine. However, when I kick off
that VBA routine from a .NET class within an assembly, I get a class
not registered error. When CoCreateInstance is called on that COM
visible .Net class a second time, then there is a security violation.
To try to make it clearer:
This works:
VBA -- > COM --> CoCreateInstance on COM wrapped .NET class
This does not work (And results in a Class Not Registered Error then
a
security error if CoCreateInstance is called again):
..NET class --> VBA-->COM-->CoCreateInstance on COM wrapped .NET class
The .NET assemblies are not in the GAC -- they are in the same
directory.
Any thoughts?
Thanks,
Sherri
I have a COM method that is called from VBA. This COM method in turn
calls CoCreateInstance on a class that is a .NET class with a COM
wrapper around it. This all works fine. However, when I kick off
that VBA routine from a .NET class within an assembly, I get a class
not registered error. When CoCreateInstance is called on that COM
visible .Net class a second time, then there is a security violation.
To try to make it clearer:
This works:
VBA -- > COM --> CoCreateInstance on COM wrapped .NET class
This does not work (And results in a Class Not Registered Error then
a
security error if CoCreateInstance is called again):
..NET class --> VBA-->COM-->CoCreateInstance on COM wrapped .NET class
The .NET assemblies are not in the GAC -- they are in the same
directory.
Any thoughts?
Thanks,
Sherri