Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / March 2007

Tip: Looking for answers? Try searching our database.

CreateInstance() on .Net assembly fails on Vista.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Magnus - 19 Mar 2007 17:46 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.