"An exception is thrown when the type Initial Value Setting item of nhib.pdf. Cfg. Configuration is set ." Solution [memo]

Source: Internet
Author: User
Tags log4net

When we got nhib.pdf today, we suddenly reported an exception caused by the Type Initial Value of "nhib.pdf. Cfg. Configuration ." .

Detailed exception information "System. IO. FileLoadException" exceptions occur in WebApplication1.dll, but are not processed in user code.

Other information: failed to Load file or assembly "log4net, Version = 1.2.10.0, Culture = neutral, PublicKeyToken = 1b44e1d1_115821" or one of its dependencies. The Assembly list definition found does not match the Assembly reference. (Exception from HRESULT: 0x80131040 )"

Note that log4net, Version = 1.2.10.0, is Version = 1.2.10.0

 

The specific exception message is displayed. Version = 1.2.10.0. I didn't pay attention to it at first. I wasted a few hours. Then I checked my log4net Version and decided to set it to 1.2.12.0. Okay, I just vomited blood. A version 1.2.10.0 is released online. The original version is replaced and the result is passed.

Related Article

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.