Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

-2 votes
0 answers
22 views

How can I hide the password in the payload displayed in the network tab? [closed]

In my Blazor WebAssembly project, after clicking the login button, the entered password is displayed in the payload in the network tab. I want to hide the password in the payload shown in the network ...
Ranjitha T S's user avatar
0 votes
2 answers
38 views

How to Dynamically Set Optional Properties in Multiple Request Models in ASP.NET Core Web Api

At my workplace, I’ve been tasked with refactoring some code in an ASP.NET Core Web API application. In the application, I have multiple request models where some models include properties like UserId,...
Mehdi Raji's user avatar
-3 votes
0 answers
25 views

Authentication and Authorization issue [closed]

How can I configure authentication and authorization for an ASP.NET Web API (running on "legacy" .NET framework)c#? Just a simple and an efficient way to do it, I keep find configurations ...
Denny Quizanga's user avatar
1 vote
0 answers
25 views

Does `ReadAsMultipartAsync` use preloaded buffer data?

If I use Request.Content.LoadIntoBufferAsync() to limit the buffer size, does Request.Content.ReadAsMultipartAsync() read the content from this preloaded buffer, or does it read the content fresh? ...
YMK's user avatar
  • 41
1 vote
0 answers
23 views

Couchbase Bootstrap Exception: UnsupportedAddressFamilyException with CCCP

I'm encountering an issue while attempting to connect to Couchbase using the .NET client. Here are the specifics of the problem:Exception has been thrown by the target of an invocation. i am trying to ...
Bandaru Aneesh 's user avatar
0 votes
0 answers
25 views

SSL CONNECTION ERROR- Dotmim sync httpresponse

I have Implemented the dotmim.sync nuget package to sync the data from clent to server and server to client db my client site uses a self signed certificate and the data is stored in sqlite db My ...
user3632220's user avatar
1 vote
0 answers
26 views

Not Parsing Hindi When Converting HTML to Image in ASP.NET Core Web API

I am generating a card and downloading using api. One can enter a card number and card is generated and downloaded. But the card contains some hindi texts which is not rendering correctly in the ...
Anand Kumar's user avatar
0 votes
2 answers
58 views

How can i hadndle json data for registraton in my asp.net web api

Microsoft.AspNetCore.Http.BadHttpRequestException: Failed to read parameter "RegisterRequest registration" from the request body as JSON. ---> System.Text.Json.JsonException: JSON ...
N0ThinG's user avatar
0 votes
0 answers
24 views

'Skip navigation doesn't have an inverse navigation configured' error when migrating

I am working on a C# Web API project and when attempting to Add-Migration, I keep getting this error: Unable to create a 'DbContext' of type ''. The exception 'The skip navigation 'Class.Staffs' doesn'...
quantumintern's user avatar
0 votes
0 answers
27 views

How to implement a conditional one-to-one relationship with Identity/Entity Framework/ASP.NET Core

I am having trouble determining how to implement the following scenario in an ASP.NET Core Web API using Identity and Entity Framework: If an AppUser is given the Performer role when it is created, ...
user25355771's user avatar
-1 votes
1 answer
55 views

How does a Task understand that it has already been executed if the thread is released?

For example, if I asynchronously contact the database with a request. How should a Task understand that it has already been completed and change its status? Do I understand correctly that when I ...
Madiyar's user avatar
0 votes
0 answers
39 views

Content type issue in ASP.NET Web API / .NET 4.7 for PDF file export

When running an ASP.NET Web API on .NET 4.7 that exports a PDF file, the application behaves correctly locally, returning the file with a Content-Type of application/pdf. However, upon deployment to a ...
Mena Samer's user avatar
0 votes
0 answers
40 views

How to Patch Multiple Objects in a Table Simultaneously Using ASP.NET Core Web API

I am working on an ASP.NET Core Web API project and need to update multiple columns for multiple rows within a single HTTP PATCH request. I am familiar with using JsonPatchDocument to update a single ...
EL GHAZAL Said's user avatar
0 votes
1 answer
29 views

How to make redirect after logout using OpenIddict?

I have logout endpoint that invalidates user token and should perform redirect to login page after logging user out [HttpGet("logout")] [HttpPost("logout")] [ApiVersion(&...
Oleksiy's user avatar
  • 21
0 votes
1 answer
83 views

Complex queries in Entity Framework Core

I have these two entities in EF Core: public class Chat { public int Id { get; set; } public string SessionId { set; get; } = string.Empty; // Could be sessionId or anything that indicate the ...
Mohammad Zohar's user avatar

15 30 50 per page
1
2 3 4 5
529