[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.interop

CreateInstance() on .Net assembly fails on Vista.

Magnus

3/19/2007 4:47:00 PM

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

2 Answers

TDC

3/20/2007 11:54:00 AM

0

Are you creating it on the same windows account that you registered
it?

On Mar 19, 12:46 pm, "Magnus" <mag...@gmail.com> wrote:
> 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


Magnus

3/20/2007 12:39:00 PM

0

On 20 Mar, 12:54, "TDC" <NOtcarvinS...@lycos.com> wrote:
> 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