Ex:could not load file or assembly ' System.Web.Helpers, version=2.0.0.0, Culture=neutral,. The system cannot find the file specified.

Source: Internet
Author: User

Today is a small program, using Webfrom form,. netframework4.0

The JSON method under System.Web.Helpers is called in the project.

In the local test is not a problem, the results are set up on the server, dead and alive is not working properly.

Error:

' System.Web.Helpers, version=2.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35 ' or one of its dependencies. The system cannot find the file specified.

Toss for a long time, know how to solve:

1th, in the project reference System.Web.Helpers, the property is set to "Copy Local", after publishing to get System.Web.Helpers.dll, copy to the production server corresponding bin directory, problem resolution.

The 2nd kind, directly copies the System.Web.Helpers.dll file to the bin directory to be possible.

Ex:could not load file or assembly ' System.Web.Helpers, version=2.0.0.0, Culture=neutral,. The system cannot find the file specified.

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.