Newtonsoft.Json : Compilation Error during deployment to IIS SERVER.

I developed a website using Visual Web developer 2013. I have installed Newtonsoft.JSON via the package manager console. The website runs fine when I click debug in Visual Studio. Newtonsoft.Json.dll exists under the Bin folder.

I get the following error when I navigate to the website

The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)

I want to know if I need to prepare the server for deployment.


In Visual Web Developer:

1) In Solution Explorer, select the project.
2) On the Project menu, click Properties.
3) Click Reference Paths.

Then check the path of the the refence to Newtonton.Json and make sure that is it a relative reference to an assembly that you also have during your deployment. Two possible errors are that you either reference an assmebly stored in some other folder, or that you are taking the reference from some other project.

链接地址: http://www.djcxy.com/p/64324.html

上一篇: 如何将方法标记为过时或弃用?

下一篇: Newtonsoft.Json:在部署到IIS SERVER期间编译错误。