问题
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