错误502.5和System.IO.FileNotFoundException [英] error 502.5 and System.IO.FileNotFoundException

查看:1298
本文介绍了错误502.5和System.IO.FileNotFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试导航到我使用IIS设置的域名(它是核心应用程序)时,我收到错误:
HTTP错误502.5 - 流程失败

When I try to navigate to my domainname that I set up with IIS (it's a core app) I get the error: HTTP Error 502.5 - Process Failure

然后我尝试通过cmd运行它以获得更精彩的错误消息:

I then try to run it via the cmd to get an more ellaborate error message:

C:\inetpub \ www.root \algoritmtrading.se> mvcrepetition.dll

未处理的异常:System.IO.FileNotFoundException:无法加载文件或程序集' System.Runtime,Version = 4.1.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'或其依赖项之一。系统找不到指定的文件。

有什么提示吗?
谢谢

Any tips? Thanks

推荐答案

最后设法让它与一些本地帮助一起工作。
解决方案是首先转到cmd并在实际项目所在的文件夹中写入dotnet run,而不是转到解决方案所在的文件夹。
在我进入文件夹'MVCkod \ MVCrepetition20170721之前'
被告知转到'MVCkod \ MVCrepetition20170721 \ src \ MVCrepetition'
这给出了错误消息Framework 1.1.2 was未找到。

Finally managed to get it to work with some local help. The solution was to first go to cmd and write "dotnet run" in the folder where the actual project was located instead of going to the folder where the solution was located. Before I was in folder 'MVCkod\MVCrepetition20170721' Was told to go to 'MVCkod\MVCrepetition20170721\src\MVCrepetition' That gave the error message Framework 1.1.2 was not found.

然后我从网上下载了这个框架,只运行下载的文件。我再一次在文件夹'MVCkod \ MVCCrepetition20170721 \src \ MVCrepetition'中写了dotnet run,这给了我另一条错误信息,如下图所示。该错误消息是可以理解的,我已经解决了(现在我在导航到我的域时收到错误消息500但这是另一个问题。
文件夹图片

Then I downloaded this versin of framework from online and just run the downloaded file. I once again wrote "dotnet run" in folder 'MVCkod\MVCrepetition20170721\src\MVCrepetition' which gave me another error message which is shown in the picture below. That error message was understandable and I've worked it out (now I'm getting the error message 500 when navigating to my domain but that's another problem. folders picture

这篇关于错误502.5和System.IO.FileNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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