Hi,
I have a COM method that is called from VBA. This COM method in turn
calls CoCreateInstanc e 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 CoCreateInstanc e 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 --CoCreateInstanc e on COM wrapped .NET class
This does not work (And results in a Class Not Registered Error then
a
security error if CoCreateInstanc e is called again):
..NET class --VBA-->COM-->CoCreateInstan ce 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 CoCreateInstanc e 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 CoCreateInstanc e 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 --CoCreateInstanc e on COM wrapped .NET class
This does not work (And results in a Class Not Registered Error then
a
security error if CoCreateInstanc e is called again):
..NET class --VBA-->COM-->CoCreateInstan ce on COM wrapped .NET class
The .NET assemblies are not in the GAC -- they are in the same
directory.
Any thoughts?
Thanks,
Sherri
Comment