Questions Tagged [. Net-Core]

.NET Core is an open-source successor of the .NET Framework. It can be used in a wide variety of applications and verticals, ranging from servers and data centers to apps and devices. .NET Core is supported by Microsoft on Windows, Linux and macOS.

39,444 questions
0 votes
0 answers
13 views

the two types are not in the same hierarchy: EF Core inheritance of two owned entity types cannot persisted entity

when I save the Case entity I get the following error "The instance of entity type 'Contact' cannot be tracked as the entity type 'Case.ThirdParty#ContactWithIdNumber' because the two types are ...
0 votes
0 answers
14 views

How can I turn a normal string into to a verbatim string without effecting `\"`?

I'm trying to read a file and run each line through a process, and I want to use @"" for each of them, but any time I try to edit each line to work in a verbatim string, it always makes \&...
  • 11
0 votes
1 answer
7 views

does startup.cs file require application pool restart or recycle when there is change in startup.cs file

I have one custom middleware which i have to configured like this way if we disable it from backend then that middleware should detach from request pipeline and if i enable then it should i again ...
0 votes
0 answers
8 views

Swashbuckle blocked by middleware authentication

I'm creating a minimal API in dotnet 6. I have the default implementation of Swagger/Swashbuckle and everything was fine until I added a simple, custom authentication middleware (see code below). The ...
  • 286
0 votes
0 answers
3 views

Add Style format of cell of previous cell to newly added cell using Open XML

In .net core using open xml need to apply the style of the old cell to newly added cell. Please any one can suggest.
0 votes
0 answers
12 views

How do I register Firebird in .NET Core 5?

I am currently trying to port a .NET Framework application to .NET Core. We're using Firebird as a database. I updated the dependencies and most issues could be solved, but when compiling and starting ...
0 votes
0 answers
4 views

[Azure Function]Could not load file or assembly 'System.Configuration.ConfigurationManager'

.Net Core 3.1. I used System.Runtime.Caching library, it depends on System.Configuration.ConfigurationManager. But there is a amazing thing happened, I test it in MS unit test project[.NET Core 3.1], ...
0 votes
0 answers
10 views

How to create unique key constriant for Email and UserName in UserIdentity in C#

As per my requirement, I need to have a unique key for Email and UserName in UserIdentity. For which I have defined RequiredUniqueEmail=false like this in my startUp as stated here services....
  • 2,011
0 votes
0 answers
7 views

My asp.net core web api doesn't update on MySQL workbench

I was able to link my asp.net core web API to MySQL database and all but when I make a post request, it does not update on the database and so on.
0 votes
1 answer
61 views

Convert Decimal To String C# [duplicate]

How can i convert decimal to string without rounding and with specific format? It is my value; var price = 4569.996M; I want to this result result = "4.569,99" . I can check to culture for ...
  • 13
0 votes
0 answers
22 views

Special characters that comes from client's request json body are not received correctly .net core webapi

I have a .NET Core webapi and i deployed it to IIS. When my customer post a request with json body content that have special characters like İÇĞÜÖŞğ(turkish) this characters are not passed to ...
  • 361
0 votes
0 answers
12 views

Run Multiple dotnet versions on Teamcity on Prem

I'm using Teamcity on premise for building dotnet project with dotnet core 3.1. Since we have multiple projects, we are using 3 agents for these build. These days we are planning to migrate our ...
0 votes
0 answers
18 views

Controllers Not Mapping on WebApplicationFactory for TestClient .NET 6

So I'm upgrading a bunch of our APIs and migrating them to the new shiny top-level statement style of startup. These projects all also have integration tests that rely upon a WebApplicationFactory to ...
0 votes
0 answers
9 views

Exception thrown by Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorCollectionProvider,

Context: I am updating a 3rd party dependency (NEST by elasticSearch). In the latest version some interfaces have been removed which are now causing my .net core 3.1 app to throw an exception when ...
0 votes
0 answers
32 views

What is best approach to polling a MongoDB database looking for changes

I have two microservices (ServiceA and ServiceB). ServiceA inserts records into a MongoDB database. ServiceB check in MongoDB if there are new records and does some work with theses new records. ...

15 30 50 per page
1
2 3 4 5
…
2630
Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest