繁体   English   中英

ASP.Net CORE 3.1 - 抛出错误异常:Microsoft.CSharp.dll 中的“Microsoft.CSharp.RuntimeBinder.RuntimeBinderException”

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

我有这个下一个问题。 我正在运行具有特定 IP 地址及其端口的 web 应用程序。 事情是我能够进入我的登录页面,但我无法以用户身份连接。 我在控制台上收到的错误日志是这样的:我在Windows 2012 Server R2 Standard上的Visual Studio 2019 Community上运行。 系统类型是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\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 最终变成这样: 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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM