![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||