Questions tagged [asp.net-web-api]
ASP.NET Web API is a framework for building HTTP services for clients like browsers and mobile devices. It is based on the Microsoft .NET Framework and an ideal choice for building RESTful services.
asp.net-web-api
38,064
questions
0
votes
0
answers
17
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 ...
1
vote
0
answers
15
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 ...
0
votes
0
answers
21
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 ...
0
votes
1
answer
22
views
How do we use a value from a strongly typed configuration options class and have other services use it - for example AllowedHosts?
I have a strongly typed POCO class that is bound to Configuration Settings being retrieved from Azure App Configuration Services.
As an example, the strongly typed class is:
public class ...
0
votes
0
answers
21
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 ...
1
vote
0
answers
22
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 ...
0
votes
0
answers
36
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 ...
0
votes
0
answers
8
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 ...
1
vote
0
answers
26
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 ...
0
votes
0
answers
12
views
How to configure/rewrite an inbound URL/endpoint of a Web API hosted on IIS to redirect to a different URL
I hosted a Web API on IIS on one of our test servers which will be listening at https://mytestserver.com/Test/Api/Status but the client will actually send PUT request to https://mytestserver.com/api/...
0
votes
2
answers
50
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 ...
1
vote
1
answer
16
views
ASP.NET Web Api Model Binding From A Stream
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
[...
1
vote
0
answers
16
views
Why is Hyperledger Besu receipt returning in 10 seconds fixed intervals?
We have Hyperledger network hosted on 5 nodes and published some smart contracts on that network. Then we have built an .NET web api which interacts with network through Nethereum library.
The issue ...
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 ...
0
votes
1
answer
42
views
How to make .NET framework 4.8 versioning work with Web API
I am working on a .NET framework 4.8 Web API project and I'm trying to enable versioning on the REST API endpoints. All the endpoints are broken and I am unable to figure out what is wrong. Can anyone ...