37,966 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
28
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
54
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....
-1
votes
0
answers
46
views
Web application is not passing identity to Web API
We have a web application [the site] that normally uses windows authentication to connect to a web service [the api]. The web application is .NET Framework 4.5.1, ASP.NET MVC. Service is .NET ...
-2
votes
0
answers
40
views
Same fetch works on Swagger but doesn't work from web application [duplicate]
Here on Swagger JwtToken appearing:
JavaScript code:
async function Login(email, password)
{
let loginForm = {};
loginForm['email'] = email;
loginForm['password'] = password;
await ...
0
votes
3
answers
125
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
94
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
53
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
103
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
38
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
68
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 ...
1
vote
1
answer
68
views
.NET - TestContainers many instance PostgreSql conflict
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 ...
1
vote
1
answer
65
views
Empty GUID is coming to backend
Web API + NextTS
Backend
[Route("GetByPatient")]
[HttpGet("{id}")]
public async Task<ActionResult<List<Booking>>> GetByPatient(Guid id)
{
Debug.WriteLine(id);...
0
votes
1
answer
83
views
Routing in ASP.NET Web API
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/{...
0
votes
0
answers
72
views
Amend ASP.NET Web API to not use Newtonsoft.Json
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 ...
1
vote
1
answer
50
views
How to Deserialize json document using reflection.emit.modulebuilder in system.text.json [closed]
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'. ...