I have a .net assembly that is COM visible which works fine to call
CreateInstance() on in XP.
In Vista however CreateInstance() fails with class not registered for
some reason.
I register it with RegAsm /codebase and if i look in the registry it
is there.
Still CreateInstance() fails and i have no clue to why.
To make things even stranger the darn thing did work the first time i
registered it.
Then i made some modifications to the .net class and after that no
matter what i do i cannot create an instance of it.
I have tried reverting the changes, changing guids, changing assembly
version, creating a new assembly identical to the first working one
etc, still CreateInstance() keeps failing.
Anyon how a clue to where the problem might be?
/Magnus
TDC - 20 Mar 2007 12:54 GMT
Are you creating it on the same windows account that you registered
it?
> I have a .net assembly that is COM visible which works fine to call
> CreateInstance() on in XP.
[quoted text clipped - 15 lines]
>
> /Magnus
Magnus - 20 Mar 2007 13:38 GMT
> Are you creating it on the same windows account that you registered
> it?
Yes, i am.
I did find the problem to, the problem was a faulty registration of a
32-bit proxy/stub.
( I did try to create an instance in a 64-bit process so it was not
entirly obvious to me yesterday. )
/Magnus