Could a simpler method for reading the Request/ response body be implemented in .NET
Reading the request and response bodies of http requests for logging purposes is quite problematic, as is any memory stream. Whenever these memory streams are flushed, reset, or whatever happens to make them lose their content, could you make a copy of…
How to create and what are the requirements to qimplement shopping cart application using ASP.NET Web API as backend and Vue.js(JS,CSS,HTML) as frontend using SQLite database?
I need to know should we need to use postman or swagger to validate Api (PUT, GET, POST, DELETE etc.) or can we implement it by ASP.NET Web API using Microsoft visual studio? if we use Microsoft visual studio for the web Api and VS code for the…
Unable to open Power BI.api NUPKG file from Visual Studio
Hello Support team, We are trying to open microsoft.powerbi.api.4.16.0 NUPKG file from Visual Studio. It's throwing error - "The file is not displayed in the text editor because it's binary or uses unsupported text encoding". Screenshot…
Can't find ado.net entity data model missing visual studio 2019.
i have installed Entityframework 6 also but ado.net entity data model not visible
How to fix ASP.NET Core with angular API 500 Internal Server Error when uploading file in Development Environment in azure app Service
I am trying to upload a file to the wwwroot folder, but it shows an API status code 500 internal server error in the development environment. It works on my local machine but not in my development environment.
How to display autocomplete result id on first line and name on second line and designation to third line instead of using slash ?
I work on asp.net MVC web API . I face issue when call web API using jQuery ajax request my issue is autocomplete result display separated by slash Id - Name - Designation but expected result I need to get is : Id : 121 Name : michel nicol Designation :…
No suitable constructor was found for entity type 'FilterDescriptor'
I have Visual Studio 2022 with a .NET 7 API project in it. I have been building out a set of models and having EntityFramwork build the database in Microsoft Sql Server. That has been going great. Today I added a .NET 7 Web App (MVC) to the solution and…
How to secure API KEY in .net MAUI?
I am new to .Net MAUI but fairly experienced with ASP.NET CORE and Blazor. I'm developing a MAUI application that will allow a user to integrate with third-party services using API keys. My issue is, I'd like to store API Key securely and nobody can…
How to return error response?
When i aims to call first action method with the accept header is "text/xml".
Create a WepAPI without Newtonsoft Json on .NET 4.7.2
Hi, When we create a WEPAPI2 template project using VS2015, Newtonsoft json reference is automatically added. Is there any way to remove it and use oth. json provider say system.text one.
I cannot understand this code inside constructor
public class Message { public List<MailboxAddress> To { get; set; } public string Subject { get; set; } public string Content { get; set; } public Message(IEnumerable<string> to, string subject, string content) …
issue on calling api from android emulator
i have blazor hybrid maui app i have separate project for api and calling api from hybrid maui app its working fine on window machine but when i run it on android emulator its not working i run api on http and then try to call its not wokring here is…
How to send back a bearer token after Login in a HTTP Request
Good day all: It seems trivial and there a lot of examples out there but I haven't found a clear piece of code for such a simple issue. I have an external WEB API which sends a bearer token after the user authenticate public async…
Odata V4 2017 in Aspnet Core 7 Querying Data
Am getting this error when am querying data from Navision 2017 Odata V4 webservices to Aspnet core 7.Is it a compatiblity issue because it works on odata v4 for business central?When writing a JSON response, a user model must be specified and the entity…
Need to integrate zstandard compression algorithm to compress/decompress API request/response
I need to integrate zstandard compression algorithm to compress/decompress API request/response. I've started doing this by CustomCompressionProvider class which implements ICompressionProvider interface. While implementing CreateStream method, I'm…
C#,.net code and steps to get data from rest API
Hi, Hope you are dong well ! I need help on below question. I need to C#,.net code and steps to get data from any rest api? we can get data from post man tool, but i want to do this with the code, which I can execute and get the data from…
ASP.NET Web API : How Can I Return Object of System.Type
I have an assembly which is created using ASP.Net Framework Class Library Project. This assembly has lot of Types. Each Types has its own Methods, Fields and Properties. Now I have written an ASP.Net Web API in which I am loading this assembly using…
Will Applying a Patch to ASP.NET MVC Also Update Associated Components (Web Pages, Web API, SignalR)?
The question is asking whether, when applying a patch to ASP.NET MVC, the other associated components (ASP.NET Web Pages, Web API, and SignalR) will also be updated as part of the patching process. In other words, will the patch affect not only ASP.NET…
Swagger UI "Try it out" option does not work with Azure Kubernetes Nginx Ingress
Swagger UI "Try It Out" option for DotNet Core 6 API app does not work with nginx ingress in azure kubernetes service (aks) , the path for service does not get added in the URL . I have tried multiple options like adding swagger endpoint in…
Issue regarding ToolkitScriptManager
Hi, Can you help to the following?