Hi
I have some problem with a program in vb6 that call a c# dll. The exact hierarchy is a VB6 .exe calling a vb6 dll calling a c# dll. I follow this walkthrough to create the manifest file
http://msdn.microsoft.com/en-us/library/ms973915.aspx
It was not working because of run time error at the execution so with the binding tool FUSLOGVW.exe i had the following log
the vb6 exe is TestSbSVBClient.exe and the CS lib is testsbscslib --------------------------------------------------------------------------------------------
The operation failed. Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll Running under executable C:\Projects\Versions\TestSbS2\TestSbSVBClient.exe --- A detailed error log follows. === Pre-bind state information === LOG: User = MSOIT\cbeaudette LOG: DisplayName = testsbscslib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, processorArchitecture=MSIL (Fully-specified) LOG: Appbase = file:///C:/Projects/Versions/TestSbS2/ LOG: Initial PrivatePath = NULL LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = NULL Calling assembly : (Unknown). === LOG: Start binding of native image testsbscslib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. WRN: No matching native image found.
-------------------------------------------------------------------------------------------------------
So i download the msi in the walkthroug to see what was different and i figure that the major difference was that the c# dll was build using framework 2.0. so i regenerate my c# dll with framework 2.0 and suddenly it was working. The run time error don't occur anymore
I think that the error is related to mscorwks.dll or the mscorlib but i still don't understand how to fix that. My real application is build with framework 4.0 and I would like to avoid regenerate it with frame work 2.0
Thanks if anyone have an idea