Category "c++sharp"

Can you use C# Kubernetes inClusterConfig for a remote Cluster?

I am having trouble authenticating my C# service for a remote cluster. Trying to use my svc gets Forbidden, so I am hoping to work around with this. I know that

Registry.GetValue goes to another path (C#) [duplicate]

i have the next problem. When i execute a registry.getvalue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server","InstalledInstances"

How to deal with SQL server error: The database cannot be opened because it is version 904. This server supports version 852 and earlier [closed]

While connecting to SQL Server database by attaching to an MDF file, the following error is returned: The database cannot be opened because it

Avoid CS8618 warning when initializing mutable non nullable property with argument validation

I have a question regarding nullable reference type system available since C# 8. Suppose we have a C# domain model class with a mutable reference type property

Owin: Exception: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Net.HttpListenerRequest'

I got lot of below logs like below, any one knows the root cause about this? Does this related with below code: // Gets the client IP when hosted in IIS, where

Matching elements by their category

Once a category is selected we hit the button and the name of the category "goes into" this variable called "selected". Now, how to put inside of ElementCategor

return in if statement throws conversion error

I will apologize in advance for the long post. Just trying to give you all the information I have. I have an if statement in a method that looks like this: var

Using eShopOnContainers .NET microservices architecture - Use AD B2C instead of IdentityServer4 for microservice authentication

I have downloaded eShopOnContainers that is a .NET Microservices Sample Reference Application for microservices architecture and Docker containers. https://gith

The entity type 'Access' requires a primary key to be defined. If you intended to use a keyless entity type call 'HasNoKey()'

i have this ValueObject : public class Access : ValueObject<Access> { public string ControllName { get; set; } public string ActionName { get;

Outlook doesn't show date on the preview when eml is converted to msg using msgkit

i tried converting the .eml to .msg in c# using msgkit so my .eml file looks like this Date: Thu, 30 Jan 2020 12:09:26 +0530 its a simple .eml file i tried c

Azure Web App Service has Steady CPU Time Increase

I have what is essentially a flashcard web app, hosted on the free version of Azure and coded in ASP.NET (C#). It is used by a small amount of people (40 or so)

How to check if a property is $select-ed?

I am building an OData web API, and I am trying to implement this function to determine whether a given property should be included in a GET response based on t

C# Couldn't process file xxx.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file

I have an issue while I try to build project in VS2012. It cannot build due to the error: Couldn't process file xxx.resx due to its being in the Internet or Res

Should I take ILogger, ILogger<T>, ILoggerFactory or ILoggerProvider for a library?

This may be somewhat related to Pass ILogger or ILoggerFactory to constructors in AspNet Core?, however this is specifically about Library Design, not about how

Can c#/Razor work with DyGraph WITHOUT Javascript?

In this question: Previous DyGraph question There is still the need to go to JavaScript to call DyGraph: <script type="text/javascript"> g = new Dygraph

How to check an empty object?

I have a number of objects. Some of them have string properties and some of them have bool properties. I'm using them in multi-step form. so each step is bound

OmniSharp failure: Can't create task 'GetReferenceNearestTargetFrameworkTask'

I'm using VSCode with C# extension (checked version - it's latest - 1.23.11) and quite happy with it. However, today it suddenly stopped working (no Intellisens

Why won't EF Core update this item on my database?

I'm having trouble updating an item on my database. I've tried several different ways, but nothing seems to work. Here is my latest attempt: public async Task

System.Text.Json.JsonSerializer.Serialize adds \u0022

How can I set JsonSerializer to not add "\u0022" to string for EventData property? Because I get: {"Id":5,"CreateDate":"2021-04-21T05:26:30.9817284Z","EventDat

Draw a Line on Canvas With Mouse Position Unity 3D

I followed a tutorial to draw a line using mouse position, the line will be drawn inside the canvas. But when running it, the line didn't drawn! and it gives me