Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Loading .net assembly from VB6 code call

Reply
 
Old 06-12-2008   #1 (permalink)
Mike


 
 

Loading .net assembly from VB6 code call

We have a legacy application that has to be integrated with new .net 2.0 our
library. We marked our .net assemply as COM-visible and registered it. We are
using a custom configuration manager that reads config file using location of
the corresponding .net dll. Our requirement is that VB application should be
in a separate folder from the .net class library. When we try to get our
custom configuration section from .net that is being called from VB6
application we are getting an error:

****************************
An error occurred creating the configuration section handler for
SectionDataCollection: Could not load file or assembly 'CustomConfiguration'
or one of its dependencies. The system cannot find the file specified.
(C:\...\My Documents\Visual Studio
2005\Trunk\v.2.1\Instruments\bin\Debug\CustomConfiguration.dll.config line 9)
****************************
This error is triggered by method GetSection of
System.Configuration.Configuration class. The line number specified in the
error message corresponds to custom configuration section declaration. When
we are trying to load CustomConfiguration.dll assembly right before this call
it doesn't help.
According our configuration limits we would like to keep .net assemblies
outside of GAC.
If we put .net class library in the same directory as VB application
everything works fine.



Thanks in advance.


--
Mike

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Assembly loading error PowerShell
Manual assembly loading necessary? PowerShell
Problem loading an assembly referencing a non-.NET dll PowerShell
Loading assembly dependencies with Powershell PowerShell
Loading 3rd party .NET assembly PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46