question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not load file or assembly 'System.Runtime, Version=4.2.0.0 on empty project

See original GitHub issue

Hi,

I read other post about this error but I m not sure that the other have this issue only when the project is deployed to azure.

Here is my cs projet:

<PropertyGroup>
  <OutputType>Exe</OutputType>
  <TargetFramework>netcoreapp2.2</TargetFramework>
  <LangVersion>latest</LangVersion>
  <UseNETCoreGenerator>true</UseNETCoreGenerator>
</PropertyGroup>
<ItemGroup>    
  <PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="6.0.0" />    
  <PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="3.0.3" />
  <PackageReference Include="Autofac.Extensions.DependencyInjection" Version="4.3.1" />
  <PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.6.1" />
  <PackageReference Include="Microsoft.Azure.WebJobs.Logging.ApplicationInsights" Version="3.0.4" />
  <PackageReference Include="Microsoft.Azure.WebJobs" Version="3.0.4" />
  <PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="3.0.1" />
  <PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="2.2.0" />
  <PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="2.2.0" />
  <PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
  <PackageReference Include="Microsoft.Extensions.Hosting" Version="2.2.0" />
  <PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="2.2.0" />
  <PackageReference Include="Microsoft.Extensions.Logging" Version="2.2.0" />
  <PackageReference Include="Microsoft.Extensions.Logging.Configuration" Version="2.2.0" />
  <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="2.2.0" />
  <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="2.2.0" />
  <PackageReference Include="NetEscapades.Extensions.Logging.RollingFile" Version="1.0.1" />
</ItemGroup>

My thinking is maybe, .net core 2.2.1 is not yet available on Azure. What do you think? How to fix this issue?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
ranoufcommented, Mar 12, 2019

I finally found the solution, in run.cmd use :

dotnet AzureWebJobPOC.dll

instead of

AzureWebJobPOC.dll

0reactions
livarcocccommented, Mar 1, 2019

This issue was moved to aspnet/AspNetCore#8078

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not load file or assembly 'System.Runtime, Version= ...
This happens when you open the folder instead of the solution file. Simply ensure that you load the solution file and not the...
Read more >
NET Core: Could not load file or assembly 'System. ...
This seems very similar to Issue 150 and Issue 139 but I could not solve the problem by removing dependencies to my shared...
Read more >
Cannot load file or assembly 'System.Runtime'
The system cannot find the file specified. Here is the log: Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.
Read more >
"Could not load a file or assembly '"System.Runtime ...
when I am using this control in form of my project, in my system (Developer Machine were source code is installed) , after...
Read more >
Could not load file or assembly System.Runtime in NET4x
Try 1: ... I found reference to System.Runtime in csproj and tried to play with the available properties. ... Nothing could bring System.Runtime...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found