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

Sort by: Updated
1 answer

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 211 Reputation points
answered 2025-07-05T11:58:40.87+00:00
AgaveJoe 30,126 Reputation points
5 answers One of the answers was accepted by the question author.

If a method declared with the async modifier returns a cached result or completes synchronously,

i could not understand so could i get an exmaple of cached result and syncronous completion of async method. following is the lines from https://learn.microsoft.com/en-us/dotnet/csharp/asynchronous-programming/async-scenarios "If a method…

Developer technologies | ASP.NET | ASP.NET Core
asked 2025-07-03T11:16:07.6466667+00:00
rajesh yadav 211 Reputation points
accepted 2025-07-05T09:32:49.8833333+00:00
rajesh yadav 211 Reputation points
0 answers

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 30 Reputation points
3 answers One of the answers was accepted by the question author.

why ViewData is encoded for unicode text in asp.net web?

ViewData["Title"] ="xxxxxxxxxxx"; it is 首页 why?

Developer technologies | ASP.NET | ASP.NET Core
asked 2025-06-30T04:47:49.93+00:00
mc 5,491 Reputation points
accepted 2025-07-05T03:52:13.0366667+00:00
mc 5,491 Reputation points
2 answers One of the answers was accepted by the question author.

How to To Change Auto Navigation in a Modal?

I have a modal that previews my image products (originally i have a productgridcontainer that automatically circles through these image products for my customers to see the avilable products which i want it to be that way but i want the modal to be…

Developer technologies | ASP.NET | ASP.NET Core
asked 2025-03-30T01:15:04.6666667+00:00
KwebenaAcquah-9104 346 Reputation points
accepted 2025-07-04T09:08:28.52+00:00
KwebenaAcquah-9104 346 Reputation points
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
edited an answer 2025-07-04T08:23:47.12+00:00
Raymond Huynh (WICLOUD CORPORATION) 80 Reputation points Microsoft External Staff
asked 2025-03-14T14:56:57.0966667+00:00
Hakan Arlı 0 Reputation points
commented 2025-07-03T10:53:49.9466667+00:00
Danny Nguyen (WICLOUD CORPORATION) 335 Reputation points Microsoft External Staff
1 answer

Resovle Dependency Injection in Custom AuthorizationHandler

I speding days try to implement Permission based authorization like this post: Permission-Based Authorization in ASP.NET Core: A Step-by-Step Guide - DEV Community with custom AuthorizationHandler and AuthorizationPolicyProvider. My issue is: after the…

Developer technologies | ASP.NET | ASP.NET Core
asked 2025-04-01T13:37:09.5233333+00:00
Lam Trường 0 Reputation points
commented 2025-07-03T10:50:12.0266667+00:00
Raymond Huynh (WICLOUD CORPORATION) 80 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,491 Reputation points
answered 2025-07-03T08:28:58.1166667+00:00
Jack Dang (WICLOUD CORPORATION) 300 Reputation points Microsoft External Staff
1 answer

Adding Map to MVC

Hello everyone and thanks for the help in advance. I'm trying to add a Google Map to a MVC page, but can't get it to display correctly. I've looked at the Google Developer docs, but I think, due to the rendering engine, I'm getting things out of…

Developer technologies | ASP.NET | ASP.NET Core
asked 2025-07-01T21:01:57.5366667+00:00
Kmcnet 1,066 Reputation points
edited a comment 2025-07-03T00:26:28.0733333+00:00
SurferOnWww 4,711 Reputation points
1 answer One of the answers was accepted by the question author.

After updating my Asp.Net Core MVC from .Net 6 to 8, the project property throws error.

Error.txt Recently, I have updated my ASP.NET Core MVC application from .NET 6 to 8. The VS 2022 Professional was also updated to version 17.14.7. After that, when I right-click my web project, which is also the startup project, it throws the error shown…

Developer technologies | ASP.NET | ASP.NET Core
asked 2025-07-02T18:11:30.3133333+00:00
Sherpa 326 Reputation points
commented 2025-07-02T19:33:12.3133333+00:00
Michael Taylor 60,326 Reputation points
0 answers

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-02T10:01:50.3+00:00
AgaveJoe 30,126 Reputation points
2 answers

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,491 Reputation points
answered 2025-07-02T08:20:34.7766667+00:00
Jack Dang (WICLOUD CORPORATION) 300 Reputation points Microsoft External Staff
2 answers

How to add serilog in .net core api?

I use .net core 8 version. Working on an asp.net api. Need to add serilog with custom coumns in it This question is related to the following

Developer technologies | ASP.NET | ASP.NET Core
asked 2025-03-17T13:58:03.9233333+00:00
Keerthi K Vishwanath 0 Reputation points
commented 2025-07-02T04:28:45.4733333+00:00
Jack Dang (WICLOUD CORPORATION) 300 Reputation points Microsoft External Staff
3 answers

System.AggregateException One or more errors occurred. (An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full

ASP.NET Core version: 8.0.14 Language: C#   System.AggregateException One or more errors occurred. (An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.…

Developer technologies | ASP.NET | ASP.NET Core
asked 2025-04-07T23:37:13.23+00:00
BhogleD 0 Reputation points
commented 2025-07-02T04:27:32.07+00:00
Jack Dang (WICLOUD CORPORATION) 300 Reputation points Microsoft External Staff
3 answers One of the answers was accepted by the question author.

How to change the image cshtml.

I am using several images on the home page of my project. The path of which is always using the same name. That is, even if the image changes, the image path remains the same. The problem is that when I upload the image for the first time, the correct…

Developer technologies | ASP.NET | ASP.NET Core
asked 2025-06-30T06:51:19.1033333+00:00
jewel 1,206 Reputation points
commented 2025-07-01T12:51:13.7766667+00:00
jewel 1,206 Reputation points
1 answer

Issues on PostImportWithFileAsyncInGroup while using service principal id and secret as authentication

We have recently updated our code in ASP.Net Core 8 and are creating bearer token using service principle and secret. But now we are facing issues when we try to add or update dataflows and reports in the workspace using this predefined function -…

Developer technologies | ASP.NET | ASP.NET Core
asked 2025-02-10T14:03:02.4866667+00:00
Kumar Kundu, Sudipta 0 Reputation points
commented 2025-06-27T10:49:49.5333333+00:00
Danny Nguyen (WICLOUD CORPORATION) 335 Reputation points Microsoft External Staff
3 answers

How to create dynamic report depend on user input by ASP.NET Core?

I want to build a dynamic report by Asp.net core -EF-, I searched for many ways and ideas, but it doesn't support my idea, I am so disappointed, the core idea of my project is to get tables and columns names from the database and displays them for the…

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | ASP.NET | Other
asked 2023-02-26T09:52:23.6+00:00
Arwa Sami 20 Reputation points
answered 2025-06-26T00:23:27.6266667+00:00
SurferOnWww 4,711 Reputation points
2 answers

How to Rename a Solution and Projects in Visual Studio 2022 Without Affecting Functionality?

I have a working application that includes Blazor Server, Blazor WASM, and an API. I want to change the names of the solution and the projects while ensuring that the current application remains unaffected. What is the easiest and problem-free way to…

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
Developer technologies | C#
asked 2024-11-29T07:38:49.4766667+00:00
Cenk 1,036 Reputation points
commented 2025-06-24T07:00:57.9833333+00:00
Danny Nguyen (WICLOUD CORPORATION) 335 Reputation points Microsoft External Staff
2 answers

Severity Code Description Project File Line Suppression State Error MSB4100 Expected "$([System.String]::Copy('%(Identity)').EndsWith('.resources.dll'))" to evaluate to a boolean instead of "$([System.String]::Copy('C:\Users\tarek\OneDrive\Desktop\StoreAp

Severity Code Description Project File Line Suppression State Error MSB4100 Expected "$([System.String]::Copy('%(Identity)').EndsWith('.resources.dll'))" to evaluate to a boolean instead of…

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
Developer technologies | .NET | .NET MAUI
asked 2024-05-08T03:16:48.12+00:00
م.طارق علي 5 Reputation points
commented 2025-06-24T06:58:08.4766667+00:00
Danny Nguyen (WICLOUD CORPORATION) 335 Reputation points Microsoft External Staff