question

Scott7071 avatar image
1 Vote"
Scott7071 asked SSanjeeviSS commented

System.Runtime Error when attempting to run application dll

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

I get a 404 when attempting to view my deployed app service, and the above error when trying to get more details by running the dll in the kudu console. For context I am trying to deploy a VueJS/NetCore App from a DevOps pipeline.

Thanks!

dotnet-runtimeazure-webapps-content-deployment
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Scott7071, can you please go into KUDU and use the file explorer to ensure that the file being referenced in the error is indeed on the web app?

In rare scenario's the file might not be deployed and thus causing the error.

Have you tried to redeploying your site files as well to see if a redeployment resolves the issue?

Do you receive a 404 when running your site locally?

We look forward to your reply.

0 Votes 0 ·

am also facing this issue in azure app service when deployed from azure devops pipeline, any solution or update here?

0 Votes 0 ·

1 Answer

ajachocki avatar image
0 Votes"
ajachocki answered SSanjeeviSS commented

FileNotFound exception tells you that there is no required dll. I mean, your dll requires another one to run, but cannot find it. You have to check out what dll it looks for.
It may also be explicitily trying to load some other file, that is not present. Then just simple debug should work.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

This System.Runtime dll should be added by the dotnet framework used, i don't think we can add it manually by ourselves, as per my knowledge.

0 Votes 0 ·