Creating a generic template in C#
I have researched that C#, as well as its predecessor, C++, enable users to create generic templates. Here are the two source code snippets below: using System; using System.Collections.Generic; using System.Data.OleDb; using System.IO; namespace…
Microsoft.EntityFrameworkCore.Sqlite C# ulong (64 bit integer) could not be translated (LINQ query)
Hi! I'm testing database code migration from .NET Framework to .NET 5.last. I'm using .NET 5, Microsoft.EntityFrameworkCore.Sqlite & LINQ query. (all last varsions) Following pseudo-code fails when using correspondence C#: ulong type…
After upgrading to net5.0.1 version err in Mysql
From dotnet core 3.1 i have updated to dotnet 5.0.1 now I'm getting error... " Detected package version outside of dependency constraint: Pomelo.EntityFrameworkCore.MySql 3.2.4 requires Microsoft.EntityFrameworkCore.Relational (>= 3.1.8…
What is the best way in .Net to handle authentication & authorization protocols for downloading a file via https
Hi all; We need to implement pretty much every common authentication & authorization protocol for both reading files and OData queries from a url via https. We need this for both .Net Framework & .Net Core. Is there a way to do this…
Spatial data operations
Hello, I have to migrate some routines written in VBNET in WPF environment on AZURE (webapi net core). In these routines spatial operations such as union, intersection, etc. take place. here is an example: Private Sub example(ByVal sender…
How to use Dispatcher for thread with WPF Window and a BlockingCollection<GraphicalData>(ConcurrentQueue<GraphicalData>)
Hi. Techs used are: C#, .Net Core 3.1, WPF, BlockingCollection<> and ConcurrentQueue<> I am trying to understand how to use the Dispatcher with a WPF Window. The Window will be updated with a ConcurrentQueue<GraphicalData>…
Getting error .NET Runtime version 4.0.30319.0 - Loading profiler failed during CoCreateInstance.
Hello, I have a .NET Framework 4.6.1 Web API. Recently started getting error ".NET Runtime version 4.0.30319.0 - Loading profiler failed during CoCreateInstance. Profiler CLSID: '{71DA0A04-7777-4EC6-9643-7D28B46A8A41}'. HRESULT: 0x8007007e. …
WebClient for downloading and uploading file
Hi All, We are trying to download and upload a file to a device using HTTPS protocol using the 'WebClient' class from C#. It uses .Net framework 4.5. Once we download to the device or upload a file from the device, we get a JSON response from the…
Secure SSL Stream.read ...throws System.IO.IOException: The decryption operation failed (System.ComponentModel.Win32Exception: The specified data could not be decrypted)
we are using the SSL Stream Read to receive bytes of the files from the remote machine using TCP port .we have authentication done with X509Certificate2 certifcate for the file transfer from one machine to another. In call back of the tcplistener,…
Application consuming High CPU
Hello, Our Application is running multiple processes (.exe) and each process utilizing CPU processor is always high while processing which near to 80 to 100% CPU. There is work around to minimize CPU utilization using System.Threading.Thread.Sleep…
Visual studio 2019: not showing Target framework .net 5 while migrating a class library from .net framework 4.7.2
Hi There, We have class library project on .netframework 4.7.2 , now want to port this class library project .net 5( basically targeting .net core) We opened class library project in 2019 and migrated package.config to package reference , after…
How to start WPF in separate thread and still updating it continuously
Hi. C#, .Net 3.1, WPF I want to have a WPF window that takes data from a BlockingCollection<ColorAddress>(ConcurrentQueue<ColorAddress>) continuously. I have managed to start the window in it's own thread, but while doing this with the…
Impact of Microsoft .NET Framework Security Updates on SQL server host
New year wishes to all. I wanted to know about any potential impact to SQL server services on applying Microsoft .NET Framework Security Updates on SQL server host. Below are the details of my OS and SQL server version.
Only every third object is consumed in BlockingCollection<string>(ConcurrentQueue<string>)
Hi. I'm building a multi-threaded simulator and need to create and consume ID's in an orderly fashion. I am doing this in C# and Core 3.1 and it is a WPF application. Please note that I am just learning about multi-threading AND queues, so it is…
Which .net core 5 runtime is preferred x86 or x64?
Team, Happy NewYear! On my azure environment, I want to host .net core 5 rest api on this machine Previous generation A-Series On this azure machine(part of my service plan) 4 other services are already running where in 1% CPU +…
Logging .net core web api with azure
Team, I need to host a .net core web api as app service in azure. Is it mandatory to enable file system option to view console logs. This option will any way work for 12 hours and not recommended in production then how could we see our logs. I have…
.net core System.Text.RegularExpressions.Regex.Split
in the .net core 3.1 in the .net core 5.0
.NET Framework Security Updates
Server OS: 2012R2 I have servers installed with .NET Framework 4.5 Features and .NET Framework 4.6.1. I have vulnerabilities flagged against .NET Framework 4.5 Features. When I install the parent KB for a Security & Quality Rollup, it only…
.NET Framework Security Updates
OS Version: Windows Server 2012R2 Reference: Security and Quality Rollup KB4579979. The parent KB4579979 contains four child KBs for various versions of .NET Framework, as shown below: KB4578953 .NET Framework 3.5 KB4578956 .NET Framework 4.5.2 …
What are all the authentication protocols used on top of HttpClient
Hi all; In addition to Basic, Digest, NTLM/Negotiate, & MS Trust, what other protocols are there commonly used to access a resource (both file & OData) over https? And in particular, what are all the security protocols used by MS Dynamics…