4,829 questions with Developer technologies | ASP.NET | ASP.NET Core tags
composite key http
@Html.ActionLink("Edit", "Edit", new { item.monthr,item.tennant }) getting an error . monthr and tennant are the keys.
Developer technologies | ASP.NET | ASP.NET Core
Visual Studio failed to publish to Azure Container Registry
Hi, I have an ASP.NET Core application that I am trying to migrate to Azure. I am using Azure Container Registry to publish my app's images and run it on Container App. Until a few days ago, I was able to successfully push the image to the container…
Azure Container Registry
Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | C#
Set default culture
Hello guys, I am using Microsoft.Extensions.Localization (8.0.11) but for some reason the following code does not work as expected. As you see, I expect the German to be default language but it's always English. Am I missing something? var…
Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
How to fix ASP.NET Core WEB API ? localhost error
I am trying to run an API test first but then whenever i tried to run it it gives me this error localhost cannot be found even on the localhost:5125 still wont run
Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | ASP.NET | ASP.NET API
Visual Studio 2022 Enterprise cannot create an ASP.NET using .NET8
I use Visual Studio 2022 Enterprise. Try to create an ASP.NET Web application using .NET8 framework. However, .NET8 is not listed in "Targeted framework drop list". How to create an ASP.NET Web Applicaiton using .NET8 framework? How to…
Developer technologies | ASP.NET | ASP.NET Core
After updating my Asp.Net Core MVC application from .NET 6 to 8, I have to include Encrypt=false in the SQL connection string
EncryptError.pngWhile running my Asp.Net Core MVC application on .NET 6, the SQL server connection string didn't have any value regarding the "Encrypt". After updating to .NET 8, I have to include Encrypt=false in the connection string saved in…
Developer technologies | ASP.NET | ASP.NET Core
how to name a method starting async but not returning awaitable type
this is a line from msdn which i could not understand as there was no examle pls give one example https://learn.microsoft.com/en-us/dotnet/csharp/asynchronous-programming/task-asynchronous-programming-model#BKMK_ReturnTypesandParameters Methods that…
Developer technologies | ASP.NET | ASP.NET Core
how to handle if async process returns before await.
ifGetStringAsync (and therefore getStringTask) completes before GetUrlContentLengthAsync awaits it, control remains in GetUrlContentLengthAsync. The expense of suspending and then returning to GetUrlContentLengthAsync would be wasted if the called…
Developer technologies | ASP.NET | ASP.NET Core

how to call a function which should do my job but should not return back.
hi in my web pages i save reports to my databases using savechanges, i want to call a [funciton/etc] after savechanges so that i can save the report's data in a small flat table also in database. but i do not want to wait so that next report can be…
Developer technologies | ASP.NET | ASP.NET Core
'Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType
I am trying to implement global exception handling in a .NetCore 9 webAPI project. I created a ExceptionMiddlewareExtensions class like so: ExceptionMiddlewareExtensions.cs - public static class ExceptionMiddlewareExtensions { public static void…
Developer technologies | ASP.NET | ASP.NET Core
Blazor WebAssembly not applying culture to DateTime formatting after changing culture
Hi, I recently migrated my Blazor project from Blazor Server to Blazor WebAssembly. In the Blazor Server version, when I changed the culture (e.g., CultureInfo.CurrentUICulture = new CultureInfo("fa-IR")), both the localized texts from .resx…
Developer technologies | ASP.NET | ASP.NET Core
'Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType
I am trying to implement global exception handling using custom middleware in a .NetCore webAPI project. My .NetCore version in 9. I am getting the above exception message when trying to implement it. Let me post the relevant code blocks so you can…
Developer technologies | ASP.NET | ASP.NET Core
Multiple App.Razor components
Hello, Is it possible to have an additional App.razor file that I can use for e.g. Admin area only? Currently, if I create a new folder named Admin and create a new layout there, it inherits from the existing App.razor and linked css files. Basically, I…
Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
Developer technologies | ASP.NET | Other
How do I control which database to use when a Blazor Server app starts?
I'm working on a rewrite of an old WebForms application. I want to be able to control, through a GitHub Action running in a self-hosted runner, which database (test or production) the application should run against. I thought I could do this with the…
Developer technologies | ASP.NET | ASP.NET Core
NuGet package issue (DLL cannot be found)
Hello, I have an Azure Functions project in Visual Studio 2022 (with the latest patch installed). I initially developed this project using .NET 6.0 about a year ago, and everything was working fine. Recently, I updated the project to .NET 8.0 and…
Developer technologies | ASP.NET | ASP.NET Core
Will the list of tasks being cleared after await Tasks.WhenAll(tasks)?
Hi, Will the list of tasks being cleared after await Tasks.WhenAll(tasks)? int i=0; List<Task> tasks = new List<Task>(); do { tasks.Add(Do_Test1(i)); tasks tasks tasks tasks await Task.WhenAll(tasks); //…
Developer technologies | ASP.NET | ASP.NET Core
Sending emails from dotnet8 web application
Hi, I have a dotnet8 web application which I am using to send emails from ******@mydomain.com (which is a google workspace account) via a smtp request using the following configuration: Domain = smtp.gmail.com Port = 465 A generated App Password…
Developer technologies | ASP.NET | ASP.NET Core
How to generate RDLC report using loop?
I asked a question about this earlier here. But not getting the correct solution, I again asked for the help of experienced people. I have shown a sample of my data below. I want to print this data on separate pages according to empid. I guess it can be…
Developer technologies | ASP.NET | ASP.NET Core
IIS or kestrel which is better?
which is better ? use iis or kestrel ? I am using IIS now and I have configured https. if it is better to use kestrel I will change it.
Developer technologies | ASP.NET | ASP.NET Core
should I use asp.net core compression ?
I know why EnableforHttps is disabled by default so should I use it ? and another question IIS cannot use http3.0 right?