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…
![](https://techprofile.blob.core.windows.net/images/h3PDVoQIAkuazaK-SVokYA.png?8DBCE5)
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…
Error calling a Web API with self-signed ClientCertificate using HttpClient in .NET Core (IIS and Winforms using C#)
We are currently migrating our code from .NET 4.7.2 to NET 7 (.Net Core). Everything has been moved forward except one project that has to consume another company’s WebApi rest web service. When we were forced to interact with this company they were…
![](https://techprofile.blob.core.windows.net/images/OtQeOiWmWUqx1PYr0RSTzA.png?8DBA7C)
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?
Property Navigation
hello I am a beginner in Entity framework core I did database first and from my models I generated the controllers and as I had migrations of the keys in certain tables, the scaffold added me propertyNavigation that I have a little trouble adapting with…
![](https://techprofile.blob.core.windows.net/images/c4mRkDtLdU6n6fSv2i9uBg.png?8D843C)
Adding swagger
Even though I have added AddSwaggerGen in ConfigureService, Why I am still getting the error message: Be sure that the Startup.cs for your application is calling AddSwaggerGen from within ConfigureServices in order to generate swagger public void…
![](https://techprofile.blob.core.windows.net/images/ce1b88b3c1374364a81d5ff744b1a791.jpg)
JsonPatchDocument problems with Minimal API in .NET6 / 7 parameter Json problems
truggling to get MapPatch to work with minimal API and JsonPatchDocument. The result when passing in a valid json PATCH object is always 'Failed to read parameter "JsonPatchDocument patchDocument" from the request body as JSON' and 'The JSON…
How to setup an Web API in IIS that should run on specific windows account
Hi, I want to host an Web API developed in .NET Core in IIS 10 (Microsoft Hyper-V Server) and want to know how to setup the Web API that should run on a specific windows account. Please assist me on setting up the wep api run on a specific windows…
![](https://techprofile.blob.core.windows.net/images/CL9sTc5zkUClnOVlnXO8DA.png?8DC921)