Failed to Load file or assembly please remove registry value [HKLM/software/Microsoft/Fusion! Enablelog] Solution

Source: Internet
Author: User

Warning assembly binding logging is disabled.
To enable the Assembly Binding failure log, set the registry value to [HKLM/software/Microsoft/Fusion! Enablelog] (DWORD) is set to 1.
Note: There will be some performance loss associated with the Assembly Binding failure log.
To disable this function, remove the registry value [HKLM/software/Microsoft/Fusion! Enablelog].

 

 

 

 

 

This problem was initially identified by the absence of Office components on the server.

Vs2005 is installed in my development environment. After vs2005 is installed, you can register many assemblies in GAC (Path: C:/Windows/assembly. In the C:/Windows/Assembly directory, find Microsoft. Office. Tools. Excel version: 8.0.0.0 public key ID: b03f5f7f11d50a3a, which is consistent with my configuration file. (Wondering why the publickeytoken = "b03f5f7f11d50a3a" in the configuration file is in upper case, while the Public Key under the C:/Windows/Assembly directory is identified in lower case ?. Net is not case sensitive ?)

Vs2005 is not installed on the server. The C:/Windows/Assembly assembly is referenced when the DLL is referenced during website development. Microsoft. Office. Tools. Excel does not exist in the C:/Windows/Assembly directory on the server. Therefore, an error is reported when you run the website.

Solution:

Register the DLL to be referenced by the program to GAC on the server.

Specific Method:

1. First copy the required DLL to the server. Copy the C:/program files/common files/Microsoft shared/vsto directory in the development environment to the C:/program files/common files/Microsoft shared/directory on the server.

2. Start on the server-Program-management tools-Microsoft. NET Framework 2.0 configuration-manage Assembly Cache-Add the assembly to the Assembly Cache. Select the DLL.

Run the website. Everything is OK.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.