简体   繁体   中英

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

I have this next problem. I am running a web application with a specific IP address and its port. Thing is I am able to enter into my login page but I am not able to connect as a user. The error log which I am receiving on the console is this: I am running on a Visual Studio 2019 Community on a Windows 2012 Server R2 Standard . The system type is of a x64 bit processor .

1) LIST OF EXCEPTIONS THROWN

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).

Those are the only errors which I am getting. From there after, what happens is that my development URL ends up being like this: https://myurl.com/#

Maybe there are packages that I shouldn't load on this version of Visual Studio but I am kind of blocked with the matter so far. I modified my installation while I was getting a different error before which was this:

2) ERROR THROWN BEFORE I MODIFIED MY ASP.NET CORE PACKAGES ON VISUAL STUDIO

Microsoft.Data.SqlClient: Microsoft.Data.SqlClient is not supported on this platform.

I succeeded bypassing it but again I have all these exceptions that are being thrown on my Nuget console on the first point which I already pointed out.

Thanks

The solution to the problem was to upgrade to the new version of Visual Studio. It seems that the new version upgrades many parts of the .NET CORE framework and therefore reassigns, by adding or subtracting outdated packages to the installation.
https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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