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 / May 2006

Tip: Looking for answers? Try searching our database.

Problem calling .NET 2.0 dll from VB6 on Win2000Pro machine

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anders Nilsson - 25 Apr 2006 09:45 GMT
I have a problem getting following error message when calling a .NET 2.0
component from my VB6 code on a Win 2000 Pro machine (SP4).

"Run-time error '429'
ActiveX component can't create object"

Doing the same on an XP machine works just fine.
Doing the same calling the same component using .NET 1.1 works fine.

The component is installed using an msi installation created by VS2005.

Any help is welcome!
Signature

Kind Regards,
Anders Nilsson
Kvadrat AB

vomacka@gmail.com - 27 Apr 2006 21:29 GMT
Anders,

Try using the fuslogvw.exe program that came in the .Net 2.0 SDK to
view the errors that happen at assembly load time.  My guess is that
you'll see that your program is using the 1.1 assembly manager to try
to load your 2.0 assembly. It could be other things as well. The fuslog
will show you where it found your assembly and what config files, if
any, it read during the load.
Richards - 23 May 2006 20:02 GMT
I have a similar problem.

I built a DLL file using .NET Studio 2003 on a WIN XP machine. This DLL
referenced by a legacy VB6 application. This combination works fine on my WIN
XP machine. When I try to run it on a WIN 2000 machine, I get nothing -
except the hour glass for a second and the chime.

Any ideas?

Thanks,

Richard
Richards - 23 May 2006 22:31 GMT
More information from the lab:

1) I tried using RegAsm on the DLL created by .NET - I got an error message
saying it's not a real .NET assembly

2) I suspect this works on my XP machine because this is the machine where I
built the DLL. Perhaps .NET studio is doing some sort of registration that is
not duplicated when I install on the WIN 2000 machines.

Any help will be appreciated.

Richard
Richards - 24 May 2006 19:54 GMT
SOLUTION FOUND:

The ActiveX DLL I built with .NET is not a .NET assembly. It is just a
regular ActiveX DLL that happens to have been built using .NET studio. RegAsm
has no effect on it.

My problem was that I was building in DEBUG mode. The VB6/ActiveX bundle as
an installed application on my office computer because it still had access to
.Net components. When installed on a computer without these items, it could
not run.

The solution was to build the DLL with its .NET project properties set to
"Release Minimum Depencencies". This initially caused some new link errors,
but these can be dealt with via other project properties.

Thanks to everyone who posted helpful information elsewhere on this board.

Richard

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.