Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
47 views

My question is how do I need to validate fields. I have this class (request dto): public class CompleteGoogleRegistrationRequest { public string IdToken { get; set; } = string.Empty; public ...
Dmytro Zhadan's user avatar
0 votes
0 answers
44 views

I am trying to receive change notifications from Microsoft Graph whenever an event is updated (created, deleted, or updated). I have successfully managed to create subscriptions. The URL that receives ...
Vishnu Bhandarge's user avatar
0 votes
3 answers
141 views

Say I have this interface: public interface IExample { string GetSupportedExtension(); void DoWork(Stream input); } a concrete implementation like: public class PdfExample : IExample { ...
Kiblinix's user avatar
0 votes
0 answers
57 views

I have an ASP.NET Web API project using Autofac for dependency injection. I register a factory for creating ICommandExecutor based on an enum: builder.Register<Func<CommandType, ICommandExecutor&...
Pulkit Sharma's user avatar
0 votes
0 answers
42 views

I'm attempting to pass paginated results from a Web API to an MVC application and displaying in the View using DataTable. While I've successfully retrieved the data from the server and transmitted it ...
Srca Maint's user avatar
1 vote
1 answer
93 views

I'm writing integration tests in my .NET Web API. I'm using XUnit for this. I am using factory and collection. And everything works as expected. I run factory there I have used PostgreSql database ...
pietro's user avatar
  • 221
0 votes
1 answer
90 views

I'm trying to add a new Web API in a legacy web with VB.NET and .NET Framework 4.8. It has multiple Web API running correctly. For example - CalendarController.vb: <RoutePrefix("api/{...
Pyrus's user avatar
  • 107
1 vote
1 answer
53 views

We have a local Web API used for internal clients to retrieve data. We use application/json to transport the data across the Web API. The retrieved JSON data has a simple structured class 'Response'. ...
Andrew Northcote's user avatar
0 votes
0 answers
107 views

I am attempting to get Transaction Search in AWS CloudWatch up and running for our API (ASP.NET WebAPI). I'm using the .NET AWS SDK and have XRay configured as follows: public class WebApiApplication :...
Tom's user avatar
  • 149
0 votes
0 answers
25 views

I have developed an ASP.NET Web API application to run on .NET 4.8. It generates JWT tokens using OAuth. From my ASP.NET MVC application, I invoke above API endpoints to get access token. Now, I have ...
Venkatrami Reddy's user avatar
0 votes
1 answer
86 views

I want use AMQP connection string. I want to create a single shared connection (and channel per app lifetime to avoid resource exhaustion.
J4K0b's user avatar
  • 33
-1 votes
2 answers
86 views

I've been trying to send a 'forgot password' email for my website. I am using a template html file with replaced text to send new randomized credentials to a user. I have so far been unable to send ...
Asad Koths's user avatar
1 vote
0 answers
48 views

I used signalr with backend polling as a background service in my .NET web api project. However, when I try to connect to my hub from the client, it throws System.IO.IOExpcetion. I checked if web ...
Yusuf Mert Çelikarslan's user avatar
0 votes
1 answer
59 views

I have created a ASP.NET Core Web API app with Docker enabled just using the auto generated boilerplate code. Running on Docker on my Windows dev machine works just fine. But when I deploy the app to ...
Jonas Samuelsson's user avatar
0 votes
0 answers
38 views

I am working with OAuth in my ASP.NET API for a web app + mobile app, anyway lets use Google as an example here the user authenticates using the Google provider then Google calls my API and I issue a ...
Coffee's user avatar
  • 1
3 votes
1 answer
202 views

I have my ASP.NET Core 9 Web API app using custom ExceptionHandlerMiddleware Middleware to handle all exceptions as shown below: public sealed class ExceptionHandlerMiddleware(IWebHostEnvironment env, ...
fingers10's user avatar
  • 8,449
0 votes
1 answer
39 views

I'm working on an ASP.NET Core application running inside a Docker container. I have an API endpoint that processes a file asynchronously. The method picks a pending file, triggers an async validation ...
nishant bhadke's user avatar
0 votes
1 answer
37 views

I'm calling a rest endpoint that accepts a multi-part form data request. One of the fields is a file and I'm using a 42k test png image. I'm using the HttpClient to make the request like so: using var ...
Simon Halsey's user avatar
  • 5,494
0 votes
0 answers
47 views

I have an iOS App that connects to an ASP.NET WebAPI on the server side for CRUD operations. I now need to add authentication against a Active Directory Foundation Service (AD FS 2019) to protect the ...
Jeremy's user avatar
  • 326
1 vote
0 answers
65 views

My api depends on some programs that are expensive to start up for each call. I am trying to inject a cache that contains the cached objects wrapping the programs so they can be reused without killing ...
Jeppe's user avatar
  • 1,575
0 votes
1 answer
68 views

Example of values in ErrorMessages.resx Or example in text name: "OrderIsClosed" neutral value: "Can't edit closed order." uk-UA: "Не можна редагувати закрите замовлення.&...
Aron's user avatar
  • 1
1 vote
0 answers
53 views

I have a hosted ASP.NET Web API on smarter asp, and I am accessing said API using a React application locally (localhost). The issue that I am facing is that the cookies are set in the response ...
Bunny's user avatar
  • 31
0 votes
0 answers
104 views

I'm having an issue when posting a file to my web server. I get this exception: Exception raised during upload handling. IOException: Error reading MIME multipart body part. StackTrace: at System.Net....
ch4's user avatar
  • 1
0 votes
2 answers
2k views

Trying to implement Scalar in a .net9 aspcore app. Doing the basics by using OpenApi. When i run it I see the UI but i dont see any of my methods. In the output window i see Request finished HTTP/2 ...
Curtis Conner's user avatar
1 vote
1 answer
85 views

I have a .NET Core API project and using a GitHub workflow to build and deploy. I am using a GitHub Action to bump the version in .csproj upon each commit to the dev branch. To this point, it works ...
realmikep's user avatar
  • 699

1
2 3 4 5
759