I am attempting to setup an API that will bridge managed code into an older legacy system. When I follow the directions in MSKB 817248 on exposing a .NET Assembly for COM Interop (or have VS.Net 2003 do it for me) it successfully registers the assembly in COM, however, i cannot create an instance of the object. It throws the following message
Error: Invalid Pointe
Code: 8000400
Source: (null
(from the createobject method in VBS)
I have also tried adding the TLB as a reference and creating the object that way. Still no luck, though i get intellisense against the object
Any help would be appreciated
Regards
DotNetJunkies User - 27 Sep 2004 14:02 GMT
Not sure why,
try putting these two lines immediately before your class declaration:
[ Transaction(TransactionOption.RequiresNew) ]
[ ObjectPooling(true, 5, 10) ]
---
Christopher Eck [MSFT] - 30 Sep 2004 18:51 GMT
Make sure you aren't passing bad parameters to the CreateInstance call.
That is likely causing your issue.
Christopher Eck [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.
DotNetJunkies User - 07 Oct 2004 23:12 GMT
Was this problem ever resolved? I'm investigating the same error, also when exposing a .NET assembly to COM, but it's not consistently reproduceable.
---