Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
557 views

I work on a old legacy ASP.NET web forms application on .NET 4.8, which includes a Web API. The web form application uses Windows authentication, but the API must be accessible by any kind of client. ...
PereVerti's user avatar
0 votes
0 answers
132 views

Weird async issue. I have a reasonably complicated set of mapping logic in a service for a WebAPI project. If I run the code as-is, I get an error like the following: Newtonsoft.Json....
ruffin's user avatar
  • 17.7k
0 votes
1 answer
46 views

I've this situation: server side: [ApiController] [Route("[controller]")] public class TestController : Controller { [HttpPost] public IActionResult Action(byte[] value) { ...
Jujjizzu's user avatar
0 votes
1 answer
299 views

I have built an MVC application which includes CRUD methods for a user to update some data. The controller for the update UI makes an HTTP call to another MVC controller, which is in my microservices ...
Onur's user avatar
  • 13
0 votes
1 answer
61 views

So I have a Customer entity and a Movie entity and I configured the many to many relationship correctly and EF created the third table CustomerMovie with two FK's being CustomerId and MovieId both ...
Yazeed Fayoumi's user avatar
1 vote
0 answers
46 views

I have two applications. One is .Net 6 MVC and the other is .Net 6 web api. When I tried to request the end point from post man I am getting headers with JWT token as expected in my api app. But If I ...
barath thangam's user avatar
-1 votes
1 answer
85 views

I want my ASP.NET Web API to return a JSON response with spaces in property names. Currently when I am testing it using Postman, I am getting response in this format: [ { "appId": 1, ...
Sayan's user avatar
  • 27
-1 votes
1 answer
64 views

I cannot asign user to role in my web.api I seeded my roles in the db in my Program.cs using (var scope = app.Services.CreateScope()) { var roleManager = scope.ServiceProvider.GetRequiredService&...
N0ThinG's user avatar
  • 17
-1 votes
1 answer
105 views

So i 'm using two custom middlewares . One that validates the JWT Token on every request where it needs to be validated , and the one for the /admin routes . The problem is , even tho i specified the ...
Misu Stefan's user avatar
0 votes
1 answer
49 views

I'm confused on how to pass on dependencies that come from the DI Container onto a constructor of a class. I've got the following registrations: public void ConfigureServices(IServiceCollection ...
Shenal's user avatar
  • 3
0 votes
0 answers
22 views

Once I kept repeatedly inputting a character in the search box, it is getting slower and slower until it hangs. I wanted to optimize it and make it smoother. Can you guys help me or give me any advice ...
Mark Diaz's user avatar
1 vote
0 answers
73 views

I have following code which return data from httpclient, but it looks like it's not giving data in proper json format. Below is code and response. HttpClient client = new HttpClient(); client....
Vasi's user avatar
  • 39
1 vote
0 answers
550 views

I'm trying Fastendpoints for organize endpoints in a .net8 web-api project. I have configured validators as follows Issue is when the app starts in local environment it shows the following fail ...
manura's user avatar
  • 93
-1 votes
1 answer
129 views

I have an application which is developed in 4.8 framework and another application .NET 8.0. The one in 4.8 is where I am developing the API's and consuming in the other project. I added this in web....
Developer's user avatar
  • 8,697
0 votes
0 answers
94 views

I have built a REST API server that runs WinDbg.exe with IIS + ASP.NET. IIS version: 10.0.17763.1 OS version : Window Server 2019 ASP.NET : .NET Framework 4.7.2 In the test environment that is not ...
jh seo's user avatar
  • 49
0 votes
1 answer
29 views

While posting the data using WCF service, I'm getting an error intermittently in C#: Underlying connection was closed
Aashish Jain's user avatar
0 votes
1 answer
71 views

Does not contain a static 'main' method suitable for an entry point using CountryAPI.Models; public class Program { public static void Main(string[] args) { var builder = ...
Prottasha D'cruze's user avatar
0 votes
1 answer
104 views

I try to install and uninstall .NET 8 in my application. But I have a problem. Everything is good, aplication install and uninstall but I have problem with uninstall .NET Runtime and ASP.NET Core. ...
Błażej's user avatar
  • 137
1 vote
2 answers
89 views

I would like to create attribute that will tell that parameter should be filled from action arguments, not from query, route, header or body. ASP.NET is already binding it correctly from ...
Tundy's user avatar
  • 314
0 votes
1 answer
117 views

I am wondering what is the difference between CreatedAtAction and RedirectToAction in ASP.NET Web API ? When to return CreatedAtAction, and when to return RedirectToAction? I got the same response in ...
Programmer's user avatar
1 vote
0 answers
31 views

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
1 vote
0 answers
96 views

I'm attempting to record an audio file on the web using angular / typescript. I am able to successfully record the audio and listen to it with the audio player. I am attempting to take that audio and ...
Dennis's user avatar
  • 41
1 vote
1 answer
24 views

Im trying to send a http post request from Action1 to Action2 and instead of sending the payload as string Im sending it as stream for performance. Im getting the error. Unsupported Media Type [...
VJAI's user avatar
  • 32.9k
1 vote
1 answer
75 views

I created an asp.net core api that some of the payload accepts images. These images are stored in wwwroot/image of the application's folder, and the absolute path is stored in the database. When ...
Rikudou En Sof's user avatar
0 votes
1 answer
547 views

I have upgraded my ASP.NET Core app from version 6.0 to 8.0. I have upgraded all the nuget packages. I have a Secrets.json file in Connected Services in VS 2022. I have the "ConnectionStrings....
Mike Lenart's user avatar