#How to convert ASP.NET for Microsoft Graph API to an open public API?
Hello, I have followed the instructions for creating an application that can pull data using the Microsoft Graph API: …
How to Increase timeout
I scaffolded a asp.net core application from Postgresql db, I get the below error , please suggest. TimeoutException: Timeout during reading attempt I fails here SupaCrud.Controllers.QuestionsController.Index() in QuestionsController.cs + return…
InvalidOperationException: No policy found: System.Object[] in .NET 6 project on Visual Studio 2022 Version 17.10.3
`I recently installed the latest version of Visual Studio 2022 Version 17.10.3 and started working on a .NET 6 project. When I run my project, I encounter the following exception: InvalidOperationException: No policy found: System.Object[].…
#How to convert ASP.NET for Microsoft Graph API to an open public API?
I have followed the instructions for creating a ASP.NET project for getting Graph API data in this Tutorial:…
.Net 6/8 WebApi take long time to start
I compile this simple project and run it in Linux bash is normal. But when I create service file to run this program, it take almost 2 minute to start. The same as in Podman. var builder = WebApplication.CreateBuilder(args); var app =…
How to debug ASP.NET Core's source code using Rider?
So, I'm trying to debug ASP.NET Core's source code (specifically Mvc slnf as it's what I mostly use in my day to day) using Rider but every time the debugger hits a break-point it tries to start for 1-2 seconds and then process stops/crashes. I've also…
How to detect a device
Hi, I'm currently working on .net core web API project . There is a moment that I can't figure out. I had to detect the device which user used when signed in. I used "user-agent" first but this only says if its smartphone, Desktop etc. And only…
How to fix this error: The package reference 'Microsoft.NETCore.Targets' should not specify a version.
I am reaching out to seek assistance with a challenge I've encountered during the migration of our projects to the .NET 8.0 isolated worker model and Azure Functions v4. Despite following the provided documentation closely, the build process is not…
Access network folder and files from .NET Core application in IIS
Greetings, I have an application deployed in IIS with .NET Core 7 and SQL Server, I want to access a network path, write and read files within a folder in the path (\path\folder) What steps should I follow to achieve this?
asp.net core web application not showing in visual studio 2019
asp.net core web application not showing in visual studio 2019 Hi, i have installed visual studio 2019, with asp.net and .NET core features. Problem/Issue: while creating new project,"asp.net core web application" not showing, its showing…
Different situations occur when action information is not given when the form is posted.
Hi, If you allow, I would like to ask a question. Even though I did not provide action information in the form post operation in the View of the "Index Action" in the "Login Controller", the Index Action is running in the post…
Display Image in asp.net core postgresql
The below code works in Index Page <td> @{ var base642 = Convert.ToBase64String(item.Imagesol); var Image2 = String.Format("data:image/gif;base64,{0}", base642); } …
Integrate Swagger with Azure Function using .Net 8.0
Hi, I'm currently trying to integrate Azure Functions with Swagger. I've successfully done this for .NET 6.0, and now I am trying to do it using .NET 8.0. However, I am unable to find a proper solution, and all the references I find on the internet have…
Web app with Entra authentication got 403 error
Webapp1 is a asp.net 8.0 app with Entra as authentication provider. The registered app is app1. Webapp1 used to work but I got the 403 app after a deployment. The error page showed "Access to webapp1.azurewebsites.net was denied. You don't have the…
Application sends Email when on local pc but stops working when deployed on Azure
I created a simple web page with a form on it that sends an email to the owner. When I enter the data and click Send button, you can see on one of the pictures that in the console there is an Error. When I investigated further within Azure Portal in…
A connection was successfully established with the server, but then an error occurred during the login process Error from .Net core WebAPI
Hi, I've an application that uses WebAPI in .Net core 6 and uses Kestrel server. When calling HttpPost request, the code tries to inject data in DB but fails with error: The certificate chain was issued by an authority that is not trusted. Inner…
Cancellation Token signal not being received by the application code
looks like there is a limitation as it can be read here https://github.com/dotnet/aspnetcore/issues/20229#issuecomment-623289191 https://video2.skills-academy.com/en-us/answers/questions/391343/cancellationtoken-in-controller-endpoint-hosted-in but is there…
How to repopulate dropdown boxes when a razor page reloads in Asp .NET Core 6
I am working on a Razor page in Asp .NET Core 6. Through identity scaffolding it created a Register.cshtml page. I modified the page with input for email and user name and three dropdowns for State, Title and Salutation. I am populating the dropdowns…
How to send additional model data to a razor page in Asp.Net Core 6
I am working on Asp.Net Core 6 MVC. I am new to Razor pages. On the Register.cshtml page, as part of the identity, it has the following line which is used to gather user-entered values and save them in the database on the Register.cshtml.cs @page @model…
Download Files in Razor View using [partial view bootstrap modal]
Hello reader, Download Files in Razor View using bootstrap modal <td> <a href="@Url.Page("entryframe", "DownloadFileFromDatabase", new { fileName = " + rowID + " })">DFD</a>")…