Stored procedure called once, but executed twice.
I'm using System.Data.SqlClient.SqlCommand.ExecuteNonQuery() to execute a stored procedure in SQL Server 2012. From my application log, this execution has been called only once (it writes log for each calls), but, I realized the store procedure…
Multithreading/Concurrency/Parallel – gurantees about value read by a thread?
I wonder if there is a guarantee in the .NET about a value read by some thread from a field write by another thread. This question is not about syncing the threads via sync primitives. I do not care about race conditions or a thread-safety. Also I do not…
Microsoft.net framework installation is very slow
So on my pc, Microsoft.net framework 3.5 feature is turned off, and when i try enable it, i need to download it, so i tried that, but it never seems to make any progress in installation, and seemingly gets stuck on Downloading Required Files section.
Microsoft.net framework installation won't progress
I'm trying to install microsoft.net framework 3.5 feature on windows 10 the problem is, that when downloading the files, installation won't progress, or progress only a little, as seen in screenshot here: After that, it gets stuck and won't…
.Net5 Blazor application
Hi, I have a project I'm developing using .Net Core 3.1 for a Blazor server-side project. As I only started this recently, I thought why not move the code to .Net5. So I've just copied and pasted most of my application over and renamed the namespaces…
Is it possible to perform a standalone build with a C++/CLI project?
As the question suggests, I'm trying to find out if it's possible to build a C++/CLI project so that the .NET runtime is included, in order to minimise dependencies on .NET being installed in advance. Is this possible with .NET 5 (or is it on the…
Integration Tests using XUnit.NET - Solution root could not be located using application root
I have two projects in the solution. Web API using .NET Core 3.1 Integration Tests using XUnit.NET and .NET Core 3.1, this project has a reference to Web API project A sample integration test class is here. public class…
Cant find method DataGridView.ClearSelection(Int32, Int32, Boolean)
Hello, I am using VS VB.Net with .NET Framework 4.8. I want to clear the selection of all cells in a row of a DataGridView except for one cell. The .NET API Browser shows a method for that "ClearSelection(Int32, Int32, Boolean)". But with…
How to prevent ComImport interface function reordering?
Hi! I have strange problem while writing c# ComImport interface. Same name functions are reordered!? Example.... In C++ IDCompositionVisual function order is: STDMETHOD(SetOffsetX)(THIS_ float offsetX ) PURE STDMETHOD(SetOffsetX)(THIS_ In…
Blocking .NET 5 installation
Hello Microsoft , Looking forward to working with .NET 5.0 but we also need to know how to block the installation on those application servers where its not supported. Is the registry key to block it, “BlockNetFrameWork50” and set the value to “1” ? …
How to fin Class/Entity References and Line Number
Hi folks, I hope you are doing well. I want to write a program in C# that extract the class/entity references and with there line numbers where it is used in solution. I do research from internet I have found some references() but it can't me help.…
.Net Core : back compatibility problem when loading a legacy .Net 4.7.2 DLL using System.Console.Write() (missing method)
I have a .Net 5.0 C# wrapper that dynamically loads a legacy C++/CLI .NET 4.7.2 assembly Loading is successful, but I cannot run the code : an exception is raised about a missing System.Console.Write() implementation This is definitely a .Net 5.0…
.Net Core 3.1.10 Hosting Bundle - Is a restart required to complete installation?
Hi, I'm looking at installing the .Net Core 3.1.10 hosting bundle on to some Win16 backend Service Fabric nodes. The installation initiates a system restart at the end of the installation, however, there is an option viz. /norestart to perform the…
Producing Word document with windows form, doesn't work for all PCs: System.Runtime.InteropServices.COMException (0x800A16CA)
Hello, I developed a windows form app to produce Word reports. At the beginning it worked fine on all the PCs producing well done documents, after I added the following chunk of code it stopped to produce the reports when executed on some PCs. …
Change field text color(red) on Main Entity and Subgrid using Javascript (Unified Interface)
I am currently using Dynamic 365 Unified Interface whereby on the javascript web resource which is using XMLHttpRequest(Retrieve data) to change some text field color on certain tabs and subgrid entity. May I know what will be the correct syntax on…