error 502.5 and System.IO.FileNotFoundException

こ雲淡風輕ζ 提交于 2019-12-11 17:43:48

问题


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

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

C:\inetpub\wwwroot\algoritmtrading.se>mvcrepetition.dll

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Any tips? Thanks


回答1:


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.

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



来源:https://stackoverflow.com/questions/48344913/error-502-5-and-system-io-filenotfoundexception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!