Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

I have added Microsoft DependencyInjection nuget to a .NET 4.8 project and used this post to help set it up: https://stackoverflow.com/a/73414927/2739613 My code looks like this - Startup.cs: [...
stefan's user avatar
  • 313
0 votes
0 answers
28 views

I recently upgraded Azure.Core in my .NET application from 1.47.3 to 1.50.0.However, even after the upgrade, my API is still throwing this exception: System.IO.FileLoadException: Could not load file ...
muskan p's user avatar
2 votes
1 answer
59 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
Advice
0 votes
2 replies
50 views

I have this scenario: I have an ASP.NET API which is deployed on IIS under the default web site. I have added the API by right click on default web site -> add application. API is working fine and ...
Midlaj's user avatar
  • 23
0 votes
0 answers
48 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
0 answers
79 views

I'm using data annotations from System.ComponentModel.DataAnnotations in my ASP.NET project. I get an error message where you can describe the requirements such as "Name is required" and etc....
DELI's user avatar
  • 11
0 votes
3 answers
153 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
1 answer
112 views

On inserting ServiceInfo the insert fails. It is failing on Foreign Key JobResult.JobId here are classes. //------------------------------------------------------------------------------ // <auto-...
Ron Sine's user avatar
0 votes
0 answers
60 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
1 answer
120 views

fetch('https://localhost:7077/api/test/users') .then(res => res.json()) .then(data => console.log('Users:', data)) .catch(err => console.error('Error:', err)); Error: Promise {<...
Brandon's user avatar
0 votes
0 answers
48 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
0 votes
0 answers
72 views

I have a basic ASP.NET Web API project. When I send a request, the serialization is done using System.Text.Json. However, when I send a non-valid json, for example text instead of number, it returns a ...
pietro's user avatar
  • 221
1 vote
1 answer
109 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
1 vote
1 answer
70 views

Web API + NextTS Backend [Route("GetByPatient")] [HttpGet("{id}")] public async Task<ActionResult<List<Booking>>> GetByPatient(Guid id) { Debug.WriteLine(id);...
Garp's user avatar
  • 267
0 votes
1 answer
100 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
0 votes
0 answers
86 views

I am in the process of updating one of our systems to use System.Text.Json rather than Newtonsoft.Json. I have a Data class that I have amended to use System.Text.Json. This handles calls from MVVM ...
Andrew Northcote's user avatar
1 vote
1 answer
57 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
-3 votes
1 answer
95 views

I have a service that runs on multiple machines behind a router and firewall. I am using SignalR to connect the server behind those devices to a server in the cloud. I would like to have the client ...
Ben's user avatar
  • 1
0 votes
0 answers
116 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
45 views

There is a new requirement from the management to allow some specific list of users to update some app settings in the web.config of an ASP.NET Web API project (running on .NET 4.8 and hosted in IIS ...
dvn's user avatar
  • 55
0 votes
0 answers
30 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
1 vote
1 answer
116 views

I'm building a .NET 8 Web API that connects to MetaTrader 5 using the MT5 Manager API. Everything works perfectly when running locally from Visual Studio. However, after publishing and deploying the ...
Ashna Lukman's user avatar
0 votes
1 answer
95 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
0 votes
0 answers
39 views

I am trying to generate a sitemap.xml file form MAUI hybrid app in C#9 I have created a sitemap1 page which renders a static sitemap but I am getting error. @page "/sitemap1" @inject ...
Ali's user avatar
  • 1,285
-1 votes
2 answers
97 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
0 votes
0 answers
60 views

I have a Web API controller that inherits from ControllerBase for invoices. It contains these endpoint definitions: [HttpGet] [Route("{id:guid}")] public async Task<ActionResult<...
kbd's user avatar
  • 4,539
1 vote
0 answers
52 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
3 answers
91 views

I just deployed my web api to elasticbeanstalk but it doesn't render anything, even swagger ui. This is my environment which shows that the status of it is healthy and okay: Then this is the ...
Steez's user avatar
  • 29
0 votes
1 answer
70 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
49 views

I am running an ASP.NET Web API application for .NET Framework 4.7.2, and when I try to run it in on my Windows 11 dev machine via IIS Express, the app is crashing with the following error: HTTP ...
David Keaveny's user avatar
0 votes
0 answers
41 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
0 votes
1 answer
61 views

I'm trying to publish an old ASP.NET web project on IIS (Internet Information Services). However, when I click on Handler Mappings in IIS Manager, I receive the following error message: SSL Settings ...
ömer Furkan Keltek's user avatar
3 votes
1 answer
219 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
0 answers
33 views

I have an issue with Swagger model preview. I using ASP.NET Web API. It shows me this model: But all model properties - is a private property names. So, on my opinion there must be Id instead of ...
Denis Gavrikov's user avatar
0 votes
1 answer
46 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
1 vote
0 answers
71 views

I have a .NET 4.8 (migrated from .NET 4.5.2) ASP.NET Web API that I have deployed to a dev server and it is working fine. I take the same code and deploy it to a qa server, and I am getting the ...
Rick Hodder's user avatar
  • 2,272
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
28 views

Issue with test netscalar REST API. We do not see issues with local REST API. Attached tcp stream from wireshark. Netscalar ip sends syn to app server then in second line in screenshot app server ...
Madugula Chetana's user avatar
0 votes
0 answers
49 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
0 votes
0 answers
175 views

I have an API that is using MagicOnion and MessagePack in .NET. I am using swagger like this: public static IServiceCollection AddMagicOnionServices(this IServiceCollection services) { services....
Dilshod K's user avatar
  • 3,160
1 vote
0 answers
66 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
141 views

I'm building a .NET Maui app using VS2022. I'm testing it using the Android emulator. The app gets its data from an API that is running on my local machine. The API is called from C# code but also ...
Mark Evans's user avatar
  • 1,393
0 votes
1 answer
73 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
0 votes
0 answers
56 views

I have two APIs, MainApi and IoApi. I try to set JWT token for authentication, when I try to get data from IoApi, first of all get Token and then get authorize data. But in my case, I set the audience ...
om makwana's user avatar
1 vote
0 answers
54 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
65 views

I have an ASP.NET Web API and a react frontend, I hosted the backend on smarter asp and since I hosted, when I try to sign in using the frontend app, it fails to set the cookie in the browser, but I ...
Coffee's user avatar
  • 1
0 votes
0 answers
108 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
1 answer
187 views

I have an email functionality in my .net Web API and it works fine in dev/Testing. But In UAT its not sending emails. On further investigation, found that UAT SMTP server is only allowing emails from ...
GokuSS3's user avatar
  • 313
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
109 views

The ASP.NET Web API template contains a sample method: public IEnumerable<WeatherForecast> Get() { return Enumerable.Range(1, 5).Select(index => new WeatherForecast { Date = ...
Megrez7's user avatar
  • 1,477

1
2 3 4 5
759