Windows error 0x80131539, -2146233031

Detailed Error Information

COR_E_PLATFORMNOTSUPPORTED[1]

Message"Operation is not supported on this platform."
Comment The method is not supported on this platform

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode19 (0x013)
NameFACILITY_URT[2][3]
DescriptionThe source of the error code is .NET CLR.[2][3]
Error Code5433 (0x1539)

Questions

9votes
2answers

Error setting X509Certificate2 PrivateKey

I am migrating a .NetFramework 4.6.1 library to a .NetCore 2.2. But i am unable to set x509certificate.PrivateKey as shown below. I have read that may be due to the RSAServiceProvider but i am unaware how to set this property. Even instantiating: x509certificate.PrivateKey = new RSACryptoServiceProvider(); throws the PlatformNotSupportedException. // [...] read more
c#
.net-core
3votes
3answers

C# ASP.NET Core 2 HashAlgorithm

I have an ASP.Net MVC project which works fine when using HashAlgorithm, but I am trying to replicate this same project in ASP.Net Core2 and I am getting the following error: > System.PlatformNotSupportedException HResult=0x80131539 Message=Operation is > not supported on this platform. Source=System.Security.Cryptography.Primitives > StackTrace: at System.Security.Cryptography.HashAlgorithm.Create(String > hashName) at [...] read more
c#
asp.net-mvc
asp.net-core
.net-core
2votes
0answers

Show Active TCP connections

I'm trying to show all open TCP connections. But in my Code I'm getting following error: > System.PlatformNotSupportedException HResult=0x80131539 Nachricht = Operation > is not supported on this platform. System.Net.NetworkInformation.NetNativeIPGlobalProperties.GetActiveTcpConnections() And here is my Code, is the problem, that UWP doesn't support TcpConnectionInformation?: try { IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties(); TcpConnectionInformation[] [...] read more
c#
tcp
uwp
1vote
0answers

System.PlatformNotSupportedException: 'Secure binary serialization is not supported on this platform

Please I need help for the below error I am getting. Whenever I query with the value that exists in the servicecontainer, it works fine. When the value does not exists, the below error surfaces: code line that gives error: BusinessPartner bp = currentServiceContainer.BusinessPartners.Where( c=> c.cn==cn).SingleOrDefault(); I am using .Net [...] read more
c#
asp.net-core
asp.net-core-webapi
asp.net-core-2.1
0votes
0answers

Use WinRT API in netstandard2.0 library referenced by .NET 5.0 with IsOSPlatform check

We are in the process of updating our netcoreapp3.1 libraries and programs to net5.0. These libraries are referencing one netstandard2.0 library which uses WinRT if supported via a NuGet reference to Microsoft.Windows.SDK.Contracts. This is checked via RuntimeInformation.IsOSPlatform(OSPlatform.Windows). If I now use this library from net5.0 and execute the part using [...] read more
c#
.net
windows-runtime
interop
.net-5
0votes
1answer

How to detect a png picture file's brightness/lightness in UWP

In my project, a background picture is fetched from cloud. But some picture is too light, and some are dark. So I need to detect the background picture's brightness and hence to decide whether to add a mask. I searched the solution on Google and found most solution is for [...] read more
c#
uwp
0votes
1answer

Calling Process.GetProcesses() inside a .NET Standard library from a UWP app

I have a .NET standard library which is below: using System; using System.Diagnostics; using System.Runtime.InteropServices; namespace process_library { public class ProcessHandler { public ProcessHandler() { } [MTAThread] public Process[] GetProcesses() { return Process.GetProcesses(); } } } I then have a Template10 project with all the .net core stuff updated to [...] read more
c#
uwp
.net-core
.net-standard-2.0

Comments

Leave a comment

(plain text only)

Sources

  1. https://github.com/dotnet/coreclr/blob/v1.1.0/src/inc/corerror.xml
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx
  3. winerror.h from Windows SDK 10.0.14393.0

User contributions licensed under CC BY-SA 3.0