7,710 questions
0
votes
0
answers
17
views
.NET hangfire services - Application not getting started
I am new to .NET webservices.
I am trying to implement Hangfire service in the following way
In startup.cs
Add the below snippets in ConfigureServices() method
services.AddHangfire(config =>
...
-1
votes
1
answer
40
views
Not able to get the bsondocument of mongodb and convert into a class structure in cshapr
I have a line of code that gets data from MongoDB
IAsyncCursor<BsonDocument> result = await _repository.GetBsonAggregateAsync(pipeline);
var resultdata = await result.ToListAsync();
The result ...
0
votes
0
answers
214
views
Cors issue with ASP.NET Web API on .NET 4.8 "It does not have HTTP ok status"
My scenario is
A website (located at https://xxx.crm4.dynamics.com) needs to call a Web API (on .NET 4.8) that is hosted on a server inside a network. The call to the Web API is made by Javascript ...
0
votes
0
answers
21
views
ASP.NET Web API 2 - The request was aborted: Could not create SSL/TLS secure channel
Every other answer to "The request was aborted: Could not create SSL/TLS secure channel" essentially says "make sure TLS 1.2 is on". This has not worked, and I have the Wireshark ...
0
votes
4
answers
176
views
What's the Content-Type if my ASP.NET Web API returns a GUID?
I've got a simple method that validates credentials and returns a GUID.
I've got the return type as ActionResult<Guid> but when I call it from the auto-generated Swagger page, it returns a 406. ...
0
votes
0
answers
38
views
The Web API responds to the browser before the await Task.Delay finished executing
I'm working on an OWIN ASP.NET Web API 2 application which uses Autofac.
I ran into some issues because some code after await is never executed when the client app (browser) is cancelling the request.
...
0
votes
0
answers
106
views
Http PUT method is not working in OData Web API service
I have exposed a SQL Server table using Web API and OData service in C#. In my service, the Get() method is working fine, but the PUT method is not working and I get this error
System....
0
votes
1
answer
217
views
In ASP.NET on .NET 4.8, does the StreamContent get buffered by ASP.NET or IIS?
I'm used to working with .NET 6+ self hosted Web API, but now I'm working on an ASP.NET Web API running on .NET 4.8 and hosted in IIS.
I'm creating an endpoint to download files and they can be very ...
0
votes
1
answer
565
views
How to properly use HttpClient in .NET 4.6.1 + ASP.NET Web API 2
I am creating this article using machine translation. Please forgive any grammatical errors.
I am maintaining an ASP.NET Web API 2 that runs on .NET 4.6.1.
(Don't mention the end of support! I have ...
0
votes
0
answers
39
views
Entity Framework migrations: custom initializer not applying migrations as expected
I'm working on an ASP.NET Web API 2 project, using .NET Framework 4.8 and Entity Framework 6, and I'm facing an issue with custom migrations.
I need to deal with two situations, one where there is a ...
-1
votes
1
answer
692
views
How to enable https on AKS hosted ASP.NET Core 6 Web API?
I am working on enabling https on AKS hosted ASP.NET Core 6 Web API. I found various samples online and I have couple questions around it. I am sharing part of relevant code here. Hope someone can ...
1
vote
1
answer
484
views
Downloading files larger than 2gb via web api
I have an API that I'm connecting to when downloading a file from our website (Angular). The user clicks the link and the website shows the download progress then the browser shows the Downloads ...
1
vote
1
answer
67
views
Run different apis project under one main project
I have total 5 API project in one solution and one main project, please see below image.
Now what I want is when I run that main project then it should start this all APIs project also.
So if I start ...
0
votes
1
answer
51
views
Using WebSockets with ASP.NET Web API2
I use my webapi in my intranet with works fine and deactivated any cors policy because i dont need them.
Now i want also to have a websocket into my iis app but when running it only localhost works as ...
3
votes
1
answer
578
views
Hot to write a FileUpload method in a WebAPI using NSwag?
I'm currently working on a ASP.NET WebAPI 2 (.NET 4.7.1) using NSwag 13.19.0. I managed to integrate a file upload into my WebAPI, like described here by @squadwuschel: NSwag Wep Api 2 multipart/form-...