37,946 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-3
votes
0
answers
194
views
How to diagnose memory explosion in asp.net core? [closed]
I have an endpoint that accepts a model as the request body:
public ActionResult<string> UploadFileChunk([FromBody] FileChunk chunk, string guid)
As you can see, I'm sending my FileChunk model ...
Advice
0
votes
5
replies
50
views
Any good open-source OAuth2 nuget package?
I have searched a lot but seems that there are no much open-source packages available for implementing an OAuth2 server. Using OAuth2 services or paid libraries is not an option.
Is it possible to ...
Advice
0
votes
6
replies
147
views
Designing PhilHealth (Philippine Health Insurance) integration before official SOAP APIs are available (.NET)
I am working on integrating PhilHealth (Philippine Health Insurance Corporation) into an existing hospital management system built with ASP.NET Core (.NET), Entity Framework Core, and SQL Server.
At ...
0
votes
1
answer
76
views
Value cannot be null. Parameter name: provider using DI in .NET framework
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:
[...
0
votes
0
answers
37
views
Could not load file or assembly 'Azure.Core, Version=1.47.3.0' even after upgrading to 1.50.0 (Assembly manifest mismatch)
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 ...
2
votes
1
answer
61
views
Validator access to database
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 ...
Advice
0
votes
2
replies
56
views
Deploying ASP.NET API and ASP.NET MVC app on the same IIS default site
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 ...
0
votes
0
answers
55
views
Multiple Change Notification from Microsoft Graph, how to solve this?
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 ...
0
votes
0
answers
83
views
How to return data annotations error message in one string?
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....
0
votes
3
answers
158
views
Resolving a circular/recursive dependency with dependency injection
Say I have this interface:
public interface IExample
{
string GetSupportedExtension();
void DoWork(Stream input);
}
a concrete implementation like:
public class PdfExample : IExample
{
...
0
votes
1
answer
114
views
Why is insert failing in .net Web Api
On inserting ServiceInfo the insert fails. It is failing on Foreign Key JobResult.JobId here are classes.
//------------------------------------------------------------------------------
// <auto-...
0
votes
0
answers
61
views
Autofac: ObjectDisposedException when resolving dependencies from factory delegate in ASP.NET Web API
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&...
0
votes
1
answer
123
views
Cannot see my API call on frontend console?
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 {<...
0
votes
0
answers
50
views
How can I bind the results from a paginated ASP.NET Web API endpoint to a jQuery DataTables table in my ASP.NET MVC view?
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 ...
0
votes
0
answers
73
views
ASP.NET Web API - Model binder validation property name
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 ...