突然失败的应用程序 [英] Sudden failing of app

查看:90
本文介绍了突然失败的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,



我一直在这个应用程序上工作,在过去的几个月里,一切都还好,直到今天早上,我打开VS构建解决方案,它没关系然后当我试图运行应用程序时我得到了这个错误让我感到恐惧,请帮助否则我付出的所有努力都将耗尽。



'''应用程序中的服务器错误。



Dear Friends,

I am working constantly on this app, for the past few months, everything was ok until this morning, I opend VS build the Solution, it went ok then as I tried to run the app I get this error to my horror, please help otherwise all the effort I put in it will go down the drain.

"Server Error in '/' Application.

Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

推荐答案

检查您的参考文献 - 或者其中一个文件突然丢失,或者已经升级,不再匹配VS期望的数字签名。



首先,查看项目中的每个引用,并检查物理文件是否仍然存在。

如果是,则删除每个引用,关闭对话框,然后逐个添加它。



有可能解决你的问题 - 但是你需要找出改变了什么文件...
Check your references - either one of the files is suddenly missing, or it has been "upgraded" and no longer matches the digital signature that VS expects.

First, look at each reference in your project, and check that the physical file is still there.
If they are, then remove each reference, close the dialog, and then add it back, one by one.

Chances are that will fix your problem - but then you need to find out what changed the file...


Hello,

Include your Newtonsoft.Json.dll file to your bin folder of your project so it will be there when you publish your project. Else, make sure you are copying the physical file Newtonsoft.Json.dll to the bin folder of published location.


这是一个版本问题。

检查NewtonSoft DLL的版本并确保引用正确的dll版本。



web.config文件包含对此dll的引用。
This is a version problem.
Check the version of the NewtonSoft dll and ensure you are referencing the right dll version.

The web.config file contains a reference to this dll.


这篇关于突然失败的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆