Re: Own assembly fails to load when vs2008 is not installed on target machine



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 that your program is trying to load, and display all kinds of details about the version of those libraries and where it is looking for them. This should give you a good clue about what exactly it is looking for and not finding in those machines.

I tried the utility and see the errors, but they make little sence to me. They seem to deal with for example system.windows.forms.resources not being there. I appended two of the errors below. Do I understand it correctly as resources not being in the libraries such as system.windows.forms, but they exist in the dlls of the framework on the development machine? Why? I originally had .net 2.0 installed and then installed 3.0 to see if that changed anything.

Again... In the test (second post zip) I just make an unmanaged classlib in c++ and try to load it. When vs2008 is installed, it works. When it is not installed, it fails.

*** Assembly Binder Log Entry (31-12-2007 @ 14:38:37) ***

The operation failed.
Bind result: hr = 0x80070002. Den angivne fil blev ikke fundet.

Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable E:\test\dummylibtest.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User = DS1\User
LOG: DisplayName = System.Windows.Forms.resources, Version=2.0.0.0, Culture=da-DK, PublicKeyToken=b77a5c561934e089
(Fully-specified)
LOG: Appbase = file:///E:/test/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: System.Windows.Forms.resources, Version=2.0.0.0, Culture=da-DK, PublicKeyToken=b77a5c561934e089
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///E:/test/da-DK/System.Windows.Forms.resources.DLL.
LOG: Attempting download of new URL file:///E:/test/da-DK/System.Windows.Forms.resources/System.Windows.Forms.resources.DLL.
LOG: Attempting download of new URL file:///E:/test/da-DK/System.Windows.Forms.resources.EXE.
LOG: Attempting download of new URL file:///E:/test/da-DK/System.Windows.Forms.resources/System.Windows.Forms.resources.EXE.
LOG: All probing URLs attempted and failed.

---

*** Assembly Binder Log Entry (31-12-2007 @ 14:49:52) ***

The operation failed.
Bind result: hr = 0x80070002. Den angivne fil blev ikke fundet.

Assembly manager loaded from: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable E:\test\dummylibtest.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User = DS1\User
LOG: DisplayName = mscorlib.resources, Version=2.0.0.0, Culture=da, PublicKeyToken=b77a5c561934e089
(Fully-specified)
LOG: Appbase = file:///E:/test/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: mscorlib.resources, Version=2.0.0.0, Culture=da, PublicKeyToken=b77a5c561934e089
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///E:/test/da/mscorlib.resources.DLL.
LOG: Attempting download of new URL file:///E:/test/da/mscorlib.resources/mscorlib.resources.DLL.
LOG: Attempting download of new URL file:///E:/test/da/mscorlib.resources.EXE.
LOG: Attempting download of new URL file:///E:/test/da/mscorlib.resources/mscorlib.resources.EXE.
LOG: All probing URLs attempted and failed.



.



Relevant Pages

  • Re: Own assembly fails to load when vs2008 is not installed on target machine
    ... It can start the capture of a log of the DLLs ... c++ and try to load it. ... No application configuration file found. ... Attempting download of new URL ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Laden von dlls
    ... Habe deinen Rat befolgt und vielleicht kann dieses hier noch weiterhelfen ... This bind starts in default load context. ... No application configuration file found. ... Attempting download of new URL ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • Re: Earlier debugging / more detailed dependency error info.
    ... >> fails to load the page because of failed dependencies. ... >> below and modify your configuration file appropriately. ... Attempting download of new URL ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Error Message: Binding Failure was detected
    ... BindingFailure was detected ... 'PhoenixAuthentication.XmlSerializers' failed to load in the ... LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET ... Attempting download of new URL ...
    (microsoft.public.dotnet.languages.vb)
  • Re: GAC entries dont show up in References/.NET
    ... cannot be called by another dll. ... Download the files from here http://www.geocities.com/abubakar021/help.zip. ... ClassLibrary1, ... Application configuration file does not exist. ...
    (microsoft.public.dotnet.languages.csharp)