4,826 questions with Developer technologies | ASP.NET | ASP.NET Core tags
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

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
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
why ViewData is encoded for unicode text in asp.net web?
ViewData["Title"] ="xxxxxxxxxxx"; it is 首页 why?
Developer technologies | ASP.NET | ASP.NET Core
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


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
I want to consume web api in operations authentication and authorization bu I'm getting this error. Can you help me ? thanks
Developer technologies | ASP.NET | ASP.NET Core
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
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
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

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
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
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
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
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
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
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
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

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#

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…