Incorrect assessment result for Develop an ASP.NET Core web app that consumes an API
I attempted the assessment and successfully completed all the tasks. I am very sure that my result is calculated incorrectly. The result says I failed to Interact with an API which does not make any sense as I would not be able to proceed to other…
Is there a way to trigger Outlook-Add-Ins (Web) from external? (Custom event activation)
I am currently working on Office365 add-ins development and their communication via asp.net interfaces which are registered with entra id. I would like to open email templates from an external program. Templates can be created via ms-graph or by the…
How do I attach an SSL certificate to access SOAP services with .NET Framework 4.8?
Hello everyone, We have a requirement to attach the SSL certificate while consuming SOAP services. We are getting an error as "Could not establish secure channel for SSL/TLS with authority 'url.com:portnumber'/". Inner Exception WebException:…
Problema om Swagger em publicaçao de API no Azure
estou tentando publicar uma API no Azure mas esta retornando o erro Falha ao gerar o arquivo de swagger. Erro dotnet swagger tofile --serializeasv2 --output var builder = WebApplication.CreateBuilder(args); // Add services to the…
Adding React.Js components to my existing/new Asp.net MVC core 6.0 , is this possible/compatible?
I am building ASP.NET Core 6.0 with MVC web application, and I am using these technologies... Web API Entity Framework SQL Server Razor views, JavaScript, JQuery & Bootstrap. Apexcharts But i want to improve my MVC web application front-end by…
No webpage was found for the web address
I have deployed web api to Azure. The API has an SQL server which i have configured when deploying. I have checked the connection string is in the app settings and i have migrated my database with data so it should be working, but i keep getting a 404…
![](https://techprofile.blob.core.windows.net/images/YykzxgI8WU-FS8_8mZ06MQ.png?8D9F28)
Azure is decoding characters in the URL before reaching the application
In our backend API, we have an endpoint with a path variable and we need to be able to support certain special characters. To accomplish this, we are encoding the path variable with UTF-8 before hitting the endpoint. This works for most special…
![](https://techprofile.blob.core.windows.net/images/d2tvFBHkuECHIdJFwoOShw.png?8DB3F8)
Send Chunked Response in .NET 6 Web Api
I am building a Web API project where I will be fetching pdf files from Azure blob Storage and send the pdf files as response to API calls. I have tried using following piece of code Response.ContentType = "application/pdf"; await foreach…
How to get Task manager process closing events in c#?
Hi Team I am Implimenting a server(APIGatewat.exe which is console exe) to launch other console exe(act as other servers) in background without user intercation mode i am able to launch the exe(using process start) but when im closing my Main…
Question about clean architecture
I read article about clean architecture (in microsoft docs) and I have question about validation. In the article said that Application layer must not have any dependencies from external libraries and frameworks. But I see examples projects on github…
Generate custom PasswordHash with Microsoft.AspNet.Identity
Hi , I'm using VS2022 and I want to override the Default PasswordHash. I want to include when the user is created in the Hash Password the username for example. I found some code but it is for the Core. And I'm not using the core I have created a …
IIS - Rewrite Module from 200 OK to 201 Accepted
In IIS version 10, I installed Rewrite Module and I am trying with the above XMLs the following action. I want to set "201 or 202 Active" status instead of default 200 OK to all successful requests (only when my api should return 200…
C#: The dreaded “A generic error occurred in GDI+.” Exception
I have googled this a lot but not found any good solutions. Users upload images to the server via an Asp.Net API and the code below saves the files to disk. This works most of the time (1000s) but sometimes I get this GDI exception. This uses .net…
We are not able to access a file in the web api
We have a csv file that is in the project directory. After publishing it is showing already in azure and we can access it through the developer tools. But in the api we are getting file not found error we tried putting the full path hard coded also but…
![](https://techprofile.blob.core.windows.net/images/Tq9DX2gkAQAAAAAAAAAAAA.png?8D90B2)
Microsoft Identity is redirecting WebAPI calls to microsoftonline.com
We are trying to build an application with both razor pages and API endpoints and an Angular app to access the API endpoints. Web Application #1 I've been able to connect to Entra ID from the razor page side of the primary AspNet Core web project, and…
How to nicely solve self-referencing object update error?
In my project I have a bunch of models, that are all derived from the class 'Entity'. Simplified, this means they all have the following properties: public Guid Id { get; set; } public DateTime Created { get; set; } public required User CreatedBy { get;…
Question/Suggestions on using a Windows Service or Hangfire
I plan on either doing a Windows Service, or using Hangfire (right in my web api), for continuously gathering new security event logs similar to that of the Windows Event Viewer. Looking for feedback/suggestions on doing it with an event listener. What…
Fetch data for a specific field in Web API C#
Hello, I have a Json URI which I am using as a data source. I am writing a web api wherein I need to retrieve the data for any of the specific field which user inputs. For e.g, below json is my data source and I need to fetch data only for table_no. So…
Asp.net api Endpoint, IAsyncEnumerable stream being buffered
Hello, I'm using .net 7, http://asp.net core api w/controllers and I"ve tried with minimal api on VS 2022. Using c# to stream using IAsyncEnumerable some simple text line by line. Ive tried a simple obj. Ive tried ints. No matter what I've tried the…
How to fix "Register the constraint type with 'Microsoft.AspNetCore.Routing.RouteOptions.ConstraintMap"?
Hello! I know this question has several posts with multiple answers but in my case I haven't found the solution. I'm building a Web Api with NET 8 My Web Api has swagger I'm using Dependency Injection, Service layer, UnityOfWork and Repository…