Is it possible to run netcore 3.x application under the net5
I have a clean Windows 10 x64 virtual machine with dotnet 5.0.2 SDK installed I created the new project using 'dotnet new console' I edited the .csproj file changing net5 target to netcoreapp3.1 I called 'dotnet build' - its ok I called 'dotnet run' -…
Is it possible to run netcore 3.x application under the net5
I have a clean Windows 10 x64 virtual machine with dotnet 5.0.2 SDK installed I created the new project using 'dotnet new console' I edited the .csproj file changing net5 target to netcoreapp3.1 I called 'dotnet build' - its ok I called 'dotnet run' -…
SetAccessControl() issues this: Attempted to Perform An Unauthorized Operation
I am a guy who designs and codes programs for Windows 10 desktops. I am puzzled by the error message. How do I work around the complaint from Microsoft's software? How can I make my code authorized? public static void…
How does one keep DirectoryInfo's Constructor from always prefixing the app's path in it.
I hope this is the right forum. I am attempting to write a .net Core application, and I cannot seem to get ahold of a particular directory. Every time I try to create a DirectoryInfo object, it appends whatever I pass in as the parameter to the present…
.net core 3.1 app OK in VS, generates typeload error when published to local folder
I have a .net core 3 app which will run just fine from within VS 2019. As soon as I publish to my dev system reference it directly using IIS and hit the methods that start to do significant work, I will get the following error …
Trying to execute multiple stored procedures in multiple calls in parallel from .net core WebApi
Trying to execute multiple stored procedures in multiple calls in parallel from .net core WebApi Hi. I've been trying to find a way to execute stored procedures in SQL Server in parallel from a web API in .net core. The request are being done by an…
C# Task - LazyAsyncResult - NullReferenceException
There is something wrong with the following method: public async Task<ExtendedProductDTO> GetProductByUniqueIDAsync(string id) { var product = await _productRepo.FindFirstOrDefaultAsync(i => i.UniqueID ==…
System.IO.FileNotFoundException Problem
Hello, I am trying to use Roslyn compiler: g_ms = new MemoryStream(); g_result = g_compilation.Emit(g_ms); But I am getting this very suspicious error: FileNotFoundException: Could not load file or assembly…
vulnerability for Automatic Deserialization in .NET Framework Remoting
Hi All, See below knowledge about Automatic Deserialization in .NET Framework Remoting Our services use the BinaryServerFormatterSinkProvider class with the TypeLevelFilter set to Full, And it cannot be changed to WCF for some legacy…
Docking Windows on desktop programmatically from .net core 5
Hi, I have a main wpf window that spawns off a ekstra tool window. I use the windows button and arrows to place them maximized to the left and right respectively on desktop. Like the xaml WindowsState="Maximized", is there a way…
System.InvalidOperationException When Creating XmlSerializer
I am attempting to create an XmlSerializer, and receive the following Exception: System.InvalidOperationException: 'There was an error reflecting type 'PointTracker_Forms.TrackerName[]'.' The line used to create the XmlSerializer is the following: Dim…
Why compression insecure over HTTPS
Team, I have made an API in .net core 3.1 and in the startup.cs, I have added brotli compression. It is working fine but in docs, I found this note saying that compression over HTTPS is insecure Can anyone please explain the reason behind that.…
Azure Functions runtime stack license or any cost associated
For using Azure functions, do we have to externally pay for azure runtime stack like openjdk license or if any cost associated while using java runtime stack?
How to maximize CPU usage
I wrote some program that doind a longtime calculations. When i open a task manager, i see that my exe uses only 2% of CPU. How shoult i write my code in c# to obtain a maximum CPU time to speed up my calculation? I try to start a several copies …
How to solve this .NET error?
Hello, When I want to open an application, then it show me below .NET error. I'm using the last version of .NET Framework: Thank you.
How to read from IBM MQ in .NET 5?
We have a lot of business logic in .NET 4.0 which reads a message from an IBM MQ, does some processing, and writes to the database all in one transaction (coordinated by MSDTC). Is there some way to do this in .NET 5? As far as I know, .NET 5 does not…
Can ClickOnce install .Net Framework 3.5SP1 First before other prerequisites?
I have a C# 4.0 WinForms application, which uses ClickOnce to deploy. I have chosen to 'Download prerequisites from the same location as my application'. I have selected .NET Framework 3.5 SP1 to be installed, if the end-user's system does not have it…
dynamic vbscript execution
Hi, My requirement is to execute the vbscript from C# (not from file). Followed the below article and tried to execute a simple statement WScript.Echo "Missing parameters but it's always giving syntax error as mentioned in the below article. …
WebBrowser Control Support
We saw the forums, Microsoft is going to stop support for IE 11.From my understanding the web browser control uses an IE shell, but if IE is no longer supported what will happen? Are the porting it to use Edge? Developers will need to update to Edge? …
Cant download .Net Framework
Hello, Im trying to download the .Net framework in order to use Insatllmation so i can create an application for my java project i created for a local business. Whenever i try to download the .Net Framework, it says it will make changes to my device i…