4,829 questions with Developer technologies | ASP.NET | ASP.NET Core tags

Sort by: Updated
1 answer

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
asked 2025-07-02T07:19:41.8266667+00:00
asgar ali 0 Reputation points
commented 2025-07-10T10:54:55.8533333+00:00
Raymond Huynh (WICLOUD CORPORATION) 160 Reputation points Microsoft External Staff
2 answers

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
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
511 questions
Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | C#
asked 2025-01-21T15:33:13.06+00:00
Pampua84 6 Reputation points
answered 2025-07-10T07:39:58.7366667+00:00
Raymond Huynh (WICLOUD CORPORATION) 160 Reputation points Microsoft External Staff
1 answer

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
asked 2025-02-07T10:08:15.3666667+00:00
Kuler Master 406 Reputation points
answered 2025-07-10T07:10:40.4233333+00:00
Jack Dang (WICLOUD CORPORATION) 455 Reputation points Microsoft External Staff
5 answers

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
asked 2025-02-12T13:32:29.9233333+00:00
LOGAN PANUCAT 0 Reputation points
answered 2025-07-10T04:35:53.8266667+00:00
Jack Dang (WICLOUD CORPORATION) 455 Reputation points Microsoft External Staff
2 answers

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
asked 2025-02-28T16:55:00.5666667+00:00
Lu, Xinghua 0 Reputation points
commented 2025-07-10T03:49:08.5766667+00:00
Danny Nguyen (WICLOUD CORPORATION) 410 Reputation points Microsoft External Staff
2 answers

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
asked 2025-07-09T17:53:46.2766667+00:00
Sherpa 326 Reputation points
edited an answer 2025-07-10T03:05:46.3333333+00:00
Raymond Huynh (WICLOUD CORPORATION) 160 Reputation points Microsoft External Staff
2 answers

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
asked 2025-07-07T10:13:30.8666667+00:00
rajesh yadav 231 Reputation points
commented 2025-07-10T02:32:09.96+00:00
Jack Dang (WICLOUD CORPORATION) 455 Reputation points Microsoft External Staff
5 answers

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
asked 2025-07-05T09:36:27.0633333+00:00
rajesh yadav 231 Reputation points
answered 2025-07-10T01:29:16.52+00:00
SurferOnWww 4,721 Reputation points
2 answers One of the answers was accepted by the question author.

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
asked 2025-07-08T11:22:28.0133333+00:00
rajesh yadav 231 Reputation points
accepted 2025-07-09T10:18:21.13+00:00
rajesh yadav 231 Reputation points
4 answers

'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
asked 2025-01-24T17:31:46.3366667+00:00
P. G. Choudhury 146 Reputation points
answered 2025-07-09T08:39:57.37+00:00
Raymond Huynh (WICLOUD CORPORATION) 160 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

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
asked 2025-07-05T07:36:42.4233333+00:00
Mrbanad 60 Reputation points
commented 2025-07-09T08:33:43.31+00:00
Mrbanad 60 Reputation points
2 answers

'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
asked 2025-01-24T17:13:44.79+00:00
P. G. Choudhury 146 Reputation points
answered 2025-07-09T08:17:33.32+00:00
Raymond Huynh (WICLOUD CORPORATION) 160 Reputation points Microsoft External Staff
5 answers

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
asked 2025-01-31T08:47:54.43+00:00
Kuler Master 406 Reputation points
answered 2025-07-09T08:04:03.75+00:00
Jack Dang (WICLOUD CORPORATION) 455 Reputation points Microsoft External Staff
2 answers

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
asked 2025-07-03T16:56:57.9066667+00:00
Falanga, Rod, DOH 245 Reputation points
commented 2025-07-08T10:31:52.3833333+00:00
Raymond Huynh (WICLOUD CORPORATION) 160 Reputation points Microsoft External Staff
2 answers

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
asked 2025-02-05T10:36:38.13+00:00
Brian Vind Borgstrøm 0 Reputation points
answered 2025-07-08T08:12:43.55+00:00
Raymond Huynh (WICLOUD CORPORATION) 160 Reputation points Microsoft External Staff
2 answers

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
asked 2025-02-18T07:49:10.6166667+00:00
Dondon510 261 Reputation points
answered 2025-07-08T08:11:20.64+00:00
Jack Dang (WICLOUD CORPORATION) 455 Reputation points Microsoft External Staff
3 answers

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
asked 2025-03-29T22:57:05.87+00:00
Daniel Giles 0 Reputation points
answered 2025-07-08T08:04:40.4033333+00:00
Danny Nguyen (WICLOUD CORPORATION) 410 Reputation points Microsoft External Staff
1 answer

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
asked 2025-02-06T16:01:01.2833333+00:00
jewel 1,206 Reputation points
answered 2025-07-08T08:04:36.9766667+00:00
Raymond Huynh (WICLOUD CORPORATION) 160 Reputation points Microsoft External Staff
5 answers

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
asked 2025-07-02T12:29:07.1066667+00:00
mc 5,531 Reputation points
commented 2025-07-07T07:37:40.51+00:00
Jack Dang (WICLOUD CORPORATION) 455 Reputation points Microsoft External Staff
2 answers One of the answers was accepted by the question author.

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?

Developer technologies | ASP.NET | ASP.NET Core
asked 2025-07-01T13:01:33.4366667+00:00
mc 5,531 Reputation points
accepted 2025-07-07T03:55:23.1633333+00:00
mc 5,531 Reputation points