> > Try running FUSLOGVW.EXE (which comes with the .Net SDK, I think). This
> > is the Fusion Log Viewer. It can start the capture of a log of the DLLs
[quoted text clipped - 95 lines]
> file:///E:/test/da/mscorlib.resources/mscorlib.resources.EXE.
> LOG: All probing URLs attempted and failed.
>The error 0x80070002 is a "file not found" error. Is it possible that
>you've built your C++ DLL as debug? It's possible that you're linked
>to the debug version of some runtime files. Just a guess.
It was debug. Now I tested with release and it was the same problem.
>As a next step in debugging, does DEPENDS.EXE show any missing files
>on the target machine?
When I run depends on the dll it gives an error
"Error: At least one required implicit or forwarded dependency was not
found.
Error: The Side-by-Side configuration information in
"e:\test\DUMMYLIBRARY.DLL" contains errors. Dette program kunne ikke starte
p grund af en forkert programkonfiguration. Du kan muligvis lse problemet
ved at installere programmet igen (14001).
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing
export function in a delay-load dependent module."
The second error message is what I get when trying to load the assembly
runtime.
There are a lot of dependencies where three are missing with file not found.
They are
MSVCM90.DLL
MSVCR90.DLL
MSJAVA.DLL
It seems that a c++ application built with vs2008 for .net 2.0 will not run
on a system with just .net 2.0 installed??
The two first files exist on the system where the assembly will load. They
do not exist on the system where it will not load. Further more, the
datetime on the files match with the time when I installed vs2008. BUT... if
I copy the two files from system to system and download the msjava.dll (does
not exist on dev system) the dependency walker still reports error, but
nothing is missing. The loading of the assembly fails as before, but now
there are apparently no dependencis missing...
>Also, what if you cut out .NET from the
>equation completely? Can you write a simple C++ console app that
>attempts to load the C++ DLL?
Is a classlibrary not .net? Is it just an ordinary dll with support for
classes?
I will try that, though I wiill not know what to conclude it it works or if
it does not work.? Thanks for the hints btw. I did not know the dependency
walker util
Joe Withawk - 31 Dec 2007 15:33 GMT
> the dependency walker still reports error, but nothing is missing.
Forgot to tell what the error was. It was
"Error: The Side-by-Side configuration information in "c:\documents and
settings\user\skrivebord\DUMMYLIBRARY.DLL" contains errors. Dette program
kunne ikke starte p grund af en forkert programkonfiguration. Du kan
muligvis lse problemet ved at installere programmet igen (14001).
Warning: At least one module has an unresolved import due to a missing
export function in a delay-load dependent module."
John Duval - 31 Dec 2007 16:01 GMT
> There are a lot of dependencies where three are missing with file not found.
> They are
> MSVCM90.DLL
> MSVCR90.DLL
> MSJAVA.DLL
Looks like depends found that some of the runtime files are missing --
sounds like Willy got your answer for you.
> Is a classlibrary not .net? Is it just an ordinary dll with support for
> classes?
> I will try that, though I wiill not know what to conclude it it works or if
> it does not work.? Thanks for the hints btw. I did not know the dependency
> walker util
Sorry, I (incorrectly) assumed that your C++ library was not .NET.
Sounds like it is, so never mind. Glad you're up and running.