.net-core-2.0

.net-core-2.0 azure app service 502.5 error

自作多情 提交于 2019-11-28 08:12:13
Getting a 502.5 error after CI deployment to azure app service. When running dotnet {myproject}.dll on the debug console this is the error I get: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=4.0.2.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors) at Microsoft.AspNetCore.Hosting

.NET Core 2.0 missing from my Visual Studio

丶灬走出姿态 提交于 2019-11-27 07:35:10
问题 So I've installed the official .NET Core 2.0 SDK and when I'm in Visual Studio i get heaps of errors and the target framework is not listed :( It's like .NET Core 2.0 isn't installed. and here's the .csproj file: <Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <TargetFramework>netcoreapp2.0</TargetFramework> </PropertyGroup> <ItemGroup> <Folder Include="wwwroot\" /> </ItemGroup> <ItemGroup> <PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" /> </ItemGroup> </Project>

.net-core-2.0 azure app service 502.5 error

那年仲夏 提交于 2019-11-27 05:47:00
问题 Getting a 502.5 error after CI deployment to azure app service. When running dotnet {myproject}.dll on the debug console this is the error I get: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=4.0.2.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at Microsoft.AspNetCore.Hosting