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.