ASP .Net CORE 3.1 - 抛出错误异常:'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll

ASP .Net CORE 3.1 - Error Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll

我有下一个问题。 我是 运行 具有特定 IP 地址及其端口的 Web 应用程序。 事情是我能够进入我的登录页面,但我无法以用户身份连接。 我在控制台上收到的错误日志是这样的: 我 运行 在 Visual Studio 2019 CommunityWindows 2012 Server R2 Standard。 系统类型是 x64 bit processor.

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.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 最终变成了这样: https://myurl.com/#

也许有些包我不应该加载到这个版本的 Visual Studio 但到目前为止我有点受阻。我在遇到不同的错误时修改了我的安装,之前是这样的:

2) 在 VISUAL STUDIO

上修改我的 ASP.NET 核心包之前抛出错误
Microsoft.Data.SqlClient: Microsoft.Data.SqlClient is not supported on this platform.

我成功地绕过了它,但在我已经指出的第一点上,我的 Nuget 控制台再次抛出所有这些异常。

谢谢

问题的解决方案是升级到Visual Studio的新版本。 新版本似乎升级了.NET CORE框架的许多部分,因此重新分配,通过添加或减去安装的过时包。
https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes