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

All Questions

Tagged with
0 votes
0 answers
14 views

Ghostscript Log Creation

I have an application where I am using ghostscript to convert image to pdf. I am using dll of ghostscript and using it in a .Net web api. And ghostscript software is also installed in the server, ...
martian481's user avatar
0 votes
0 answers
17 views

Overflow or underflow in the arithmetic operation error in ASP.NET Web API OData application

I have written an ASP.NET Web API OData application in which I am returning a single object which is working fine. Now my requirement is to return multiple entities from the GET request. While trying ...
Roger Holland's user avatar
0 votes
1 answer
24 views

Does not contain a static 'main' method suitable for an entry point when running docker build

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
2 answers
37 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
0 votes
1 answer
39 views

WIX - Uninstall .NET 8 from bundle

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
  • 127
1 vote
0 answers
24 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
0 votes
2 answers
58 views

How to create custom parameter attribute FromActionArguments in C# like FromQuery?

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
  • 194
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
1 answer
28 views

What is the difference between returning CreatedAtAction() and RedirectToAction in ASP.NET Web API?

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
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
1 answer
43 views

C# creating API and ASP.NET MVC web app - need help to get warning entering wrong parameters

I'm creating an ASP.NET Web API and MVC web app with SQL Server. It is working well, authorization is successful, but while I'm testing the login screen, if I enter something wrong like a wrong ...
Göksu Ünsal's user avatar
0 votes
0 answers
9 views

OWIN middleware, "An existing connection was forcibly closed by the remote host" error when adding header to streaming response

I have a simple middleware class that gets a "Correlation Id" from the incoming request and then add that "Correlation Id" to the response. It works fine for most request but when ...
JHJ's user avatar
  • 335
1 vote
0 answers
27 views

Send audio recording to a C# ASP.NET Web API

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
  • 21
1 vote
1 answer
33 views

How to view the image that is in the wwwroot of the asp.net core api over the internet

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
40 views

How come an upgraded ASP.net Core 6.0 to 8.0 App isnt automatically able to use the User Secrets Configuration Provider?

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

15 30 50 per page
1
2 3 4 5
1254