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