Category "c++sharp"

The instance of the entity type cannot be tracked because another instance with the keyvalue is being tracked

I am basically trying to implement CRUD using EntityFrameWork core and .Net core 3.1. I have an issue with my update operation where I am not able update the co

ILogger logs to app insights locally but not on azure

The following code work on my machine locally. That means all log statements are in app insights after some minutes... When I deploy the application with Publis

Create WebApplication extension method in external library

I'm trying to create an extension method to register some routes in an external library using C# .NET 6. I can'f find a way to do it because i cannot reference

Can I disable the logging of a specific GameObject without modifying its script in Unity?

For example, I have a GameObject A with the following script public class A: MonoBehaviour { private void Update() { Debug.Log("Log something");

Is there a way to automatically dewarp/uncurl/flatten warped/distorted scanned document images in C#?

I'm trying to automatically dewarp scanned document images using C#. The Situation: I have images of a 6 page empty form (every page is different). I also have

how to send a tcp acknowledgement within a specific time interval

I am required to send a tcp acknowledgement to a message from a server within 2000ms, else the socket connection will be closed by the server. How do I ensure t

Invalid option '7.3' for /langversion; must be ISO-1, ISO-2, Default or an integer in range 1 to 6

I'm using Visual Studio 17 (version 15.8.5), my project targets .NET Framework 4.8 and I've tried setting the C# version to use (via Build tab in the Properties

Avoid unnecessary include statements in SQL database query for ASP.NET Core

There are some times where I have a user and would like to check whether they are in the organization that owns the item they are trying to access. Let's say th

.Net Framework Debug window is not working

I have a problem of debugging. I have the window created with the buttons, labels and everything, but when i try to debug it, the UI/GUI doesn't show up. I am o

Is there a way to dynamically filter the JSON?

I am searching a way to filter the JObject according to the request from URL. Second code block works as expected and removes the "Id" column from response: My

why Task delay not working in Window_KeyUp and Window_KeyDown methods?

I have three buttons. The timer should have started when I pressed any of the 3 optional buttons. For example. When I press the blueHeadTopBtn button, the timer

NULL exception error using Select method in MS Graph .NET SDK

I'm trying to use the Microsoft Graph .NET SDK Library to query the Microsoft Graph API. I've had no trouble making some basic requests, but now I'm trying to m

NSwag Studio C# generated client code does not have any return types assigned

I am trying to generate some client code from a swagger.json file and the methods created by NSwag do not have any return types as you can see below: Can anyone

TCP Client becomes unreadable after server restart

Code: while(true) { Int32 port = Convert.ToInt32(Port); TcpClient client = new TcpClient(server, port);

Connecting an ObservableCollection to Listview for a Windows Application UI (Visual Studio C#)

I'm working on a project where an application displays data by pulling it from a file and displaying a new data value every second. (edit: consolidated code at

Get Parent property of network adapter device from c#

I need to get the Parent property of network adapter device from c# program Please find the image here Tried below code but the property "Parent" is not availab

empty response - Docker Container ASP.NET CORE 6

I got stuck on this for quite some time and i don't know why it doesn't work. I looked into posts similair to mine but i can't fix it, (tried checking the firew

How to speed up building .net solution in docker

My current setup: App.sln src\ ----BaseProject\ -------------Dockerfile -------------BaseProject.csproj ----ProjectA\ -------------Dockerfile -------------Proje

How to use impersonation in Blazor Server Side to access a folder on a File Server

In .NET Framework, using this would let me impersonate a user in Active Directory to gain access to a locked down folder on the file server: [DllImport("advapi3

How to achieve Indeterminate state for checkbox in Xamarin form In Android

I want to achieve CheckBox where it works for three state. In UWP I am able to achieve with custom Renderer with "IsThreeState" and by setting IsChecked propert