C# ASP.Net CORE 3.1-引发错误异常:';Microsoft.CSharp.RuntimeBinder.RuntimeBinderException';在Microsoft.CSharp.dll中

C# ASP.Net CORE 3.1-引发错误异常:';Microsoft.CSharp.RuntimeBinder.RuntimeBinderException';在Microsoft.CSharp.dll中,c#,asp.net,visual-studio,asp.net-core,windows-server-2012-r2,C#,Asp.net,Visual Studio,Asp.net Core,Windows Server 2012 R2,我有下一个问题。 我正在运行一个具有特定IP地址及其端口的web应用程序。 问题是我可以进入我的登录页面,但我不能作为一个用户连接。 我在控制台上收到的错误日志如下: 我正在Windows 2012 Server R2标准上运行Visual Studio 2019社区。 系统类型为x64位处理器 1)引发的异常列表 Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSha

我有下一个问题。 我正在运行一个具有特定IP地址及其端口的web应用程序。 问题是我可以进入我的登录页面,但我不能作为一个用户连接。 我在控制台上收到的错误日志如下: 我正在
Windows 2012 Server R2标准上运行
Visual Studio 2019社区
。 系统类型为
x64位处理器

1)引发的异常列表

Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll
Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll
'Asistencia.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.11\System.Net.WebSockets.dll'. 
Exception thrown: 'System.ObjectDisposedException' in System.Net.Sockets.dll
Exception thrown: 'System.ObjectDisposedException' in System.Private.CoreLib.dll
Exception thrown: 'System.Net.Sockets.SocketException' in Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.Private.CoreLib.dll
Exception thrown: 'System.Net.Sockets.SocketException' in Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.Private.CoreLib.dll
Exception thrown: 'System.Net.Sockets.SocketException' in Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.Private.CoreLib.dll
Exception thrown: 'System.Net.Sockets.SocketException' in Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.Private.CoreLib.dll
Exception thrown: 'System.ObjectDisposedException' in System.Net.Sockets.dll
Exception thrown: 'System.ObjectDisposedException' in System.Private.CoreLib.dll
Exception thrown: 'System.Net.Sockets.SocketException' in Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll
Exception thrown: 'System.Net.Sockets.SocketException' in Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.Private.CoreLib.dll
Exception thrown: 'System.ObjectDisposedException' in System.Net.Sockets.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.Private.CoreLib.dll
Exception thrown: 'System.ObjectDisposedException' in System.Private.CoreLib.dll
Exception thrown: 'System.Net.Sockets.SocketException' in Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.Private.CoreLib.dll
Exception thrown: 'System.Net.Sockets.SocketException' in Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.Private.CoreLib.dll
Exception thrown: 'Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException' in Microsoft.AspNetCore.Server.Kestrel.Core.dll
Exception thrown: 'Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException' in System.Private.CoreLib.dll
Exception thrown: 'System.Net.Sockets.SocketException' in Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll
Exception thrown: 'System.Net.Sockets.SocketException' in System.Private.CoreLib.dll
The thread 0xc1c has exited with code 0 (0x0).
The thread 0x2d38 has exited with code 0 (0x0).
The thread 0x162c has exited with code 0 (0x0).
The thread 0x1c44 has exited with code 0 (0x0).
The thread 0x26c8 has exited with code 0 (0x0).
The thread 0x2858 has exited with code 0 (0x0).
The thread 0x1808 has exited with code 0 (0x0).
The thread 0x3314 has exited with code 0 (0x0).
The thread 0x19dc has exited with code 0 (0x0).
这些是我唯一的错误。 从那以后,我的开发URL会变成这样:

也许有一些包我不应该在这个版本的VisualStudio上加载,但到目前为止,我有点被这个问题所阻碍。我修改了我的安装,但之前我遇到了一个不同的错误:

2)在VISUAL STUDIO上修改ASP.NET核心包之前引发的错误

Microsoft.Data.SqlClient: Microsoft.Data.SqlClient is not supported on this platform.
我成功地绕过了它,但在我已经指出的第一点上,我又一次在我的Nuget控制台上抛出了所有这些异常


谢谢

问题的解决方案是升级到Visual Studio的新版本。 新版本似乎升级了.NET CORE framework的许多部分,因此通过在安装中添加或删除过时的软件包来进行重新分配。

对于第二个错误,请检查应用程序中安装了哪个版本的Microsoft.EntityFrameworkCore.SqlServer
version。您可以共享.csproj文件内容吗?对于第一个错误,您似乎是在Windows server 2012 R2中发布应用程序,请参阅,检查先决条件(安装了.Net Core SDK,Windows server配置了Web服务器(IIS)服务器角色)并安装.Net Core托管包。