4,815 questions with Developer technologies | ASP.NET | ASP.NET Core tags
Error Add-Migration after Update to Version 17.2.0 Preview 2.1
After updating visual studio to Version 17.2.0 Preview 2.1 I got error while I want to Add-Migration "AddOrderTrackPaymentToOrderTable" as below shown: Add-Migration : Exception calling "Start" with "1" argument(s):…
Developer technologies ASP.NET ASP.NET Core
Developer technologies C#

Email/First Name and Last Name in ASP.Net Core Controller Side
I am trying to get the E-Mail/First Name and Last Name on the Controller side of ASP.Net Web User Name i am getting via string UserName = HttpContext.User.Identity.Name; But i am getting NULL in MailId =…
Developer technologies ASP.NET ASP.NET Core

Replace using of the certificate local storage with Azure Key Vault
I have an ASP NET MVC (.NET Framework) App deployed on IIS. I have a .pfx certificate that I store in the virtual machine. I need to move this certificate to the Azure Key Vault and write a provider that could use it in the application. If anyone had…
Developer technologies ASP.NET ASP.NET Core
Sending email via On-Prem Exchange fails from IIS machine.
Good afternoon, I am trying to send an email from an Api during certain actions. While I am working from the Development machine the emails are getting sent. When the code is sent to the Staging IIS server, the emails fail to get sent and…
Windows development Internet Information Services
Developer technologies ASP.NET ASP.NET Core
CORS setting in asp.net core 6.0 is not restricting the Origins
Hi There, I have created an ASP.NET Core 6.0 Web API and trying to set cors policy. I have applied policy only to allow few origins, but it is not working as expected instead it allows for all the sites which consumes this API. Can you please help me…
Developer technologies ASP.NET ASP.NET Core
Context.User.Identity.IsAuthenticated is always false in jwt token?
I am using signalr with jwt token. `services.AddAuthentication(options => { options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme; options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme; …
Developer technologies ASP.NET ASP.NET Core
Html input type textbox pattern
I have an html input type textbox , i need to restrict it by following pattern Ex pattern :A1*A2+A3 Accepted aphanumeric character between A1-A5 1)textbox should in above pattern A alphabet followed by numeric value between 1-5 2) it…
Developer technologies ASP.NET ASP.NET Core
Developer technologies ASP.NET Other
add and remove duplicate <div>
I'm trying to build a budget evaluator app that will run in a browser. I've been trying to learn javaScript and/or jQuery and other scripting languages for a long time. I've never been able to make any sense of or understand it at all. I'm completely…
Developer technologies ASP.NET ASP.NET Core
Developer technologies ASP.NET Other
Set rewrite url for virtual directory using appcmd.exe
I can set re-write url using below cmd for iis site. But i want to do the same for virtual directory. appcmd.exe set config "Default Web Site" -section:system.webServer/rewrite/rules…
Windows development Internet Information Services
Developer technologies ASP.NET ASP.NET Core
Compile Razor Code that is saved in Database.
Hello guys. I am developing a Custom CMS for my Job in .NET 5 with Razor Pages. I was wondering if I could to create something like short tags from Wordpress and I thought ViewComponents. Well I have created a ViewComponent that have the html code…
Developer technologies ASP.NET ASP.NET Core
Developer technologies C#
Html select tag - How to populate a field depending on which one I choose in a list view
Hi, I'm looking for a solution to populate the fields related when choice in the list view. At this moment I choose an option and after refreshing it populates the related fields. Below my code: <select…
Developer technologies ASP.NET ASP.NET Core
After Migration of .NET 5 Isolated to 6, shows the error "No job functions found. Try making your job classes and methods public"
Where I done a mistake? as it is not triggering after doing the below step! Changed the .csproj properties related to version
Azure Functions
Developer technologies ASP.NET ASP.NET Core
ISession Extension methods
For creating/adding sessions I am using app.UseSession(); // middleware registering services as builder.Services.AddSession(options => { options.Cookie.Name = "Session"; options.IdleTimeout =…
Developer technologies ASP.NET ASP.NET Core

CS0246: The type or namespace name "ProductDto" could not be found(are u missing a using directive or an assembly reference?)
hey anyone give me the solution of this issue https://github.com/GavinLonDigital/ShopOnlineSolution/issues/1
Developer technologies ASP.NET ASP.NET Core
Developer technologies .NET Blazor
Developer technologies C#


Returning a Vector3 over an ASP.NET Core Web API returns empty JSON
I'm assuming I'm doing something wrong here but whenever I try to return a Vector2/Vector3 over an ASP API it always gives me '{}'. JsonConvert seems to be able to serialize and deserialize it just fine but not over an API. To replicate this create…
Developer technologies ASP.NET ASP.NET Core
Asp.net using angular and html
I want get a leave balance of particular leave type using function "GetAllLeaveBalance()" Now i have values in registrar as How to get that value in leavetype =x.leavetypemodel.Name
Developer technologies ASP.NET ASP.NET Core

Need help in Razor Pages in ASP.NET Core ( Loop )
Hi. I've Static Menu as following. I can do in html Parent Menu Child Menu <li class="nav-item"> <a class="nav-link " asp-controller="marketing"…
Developer technologies ASP.NET ASP.NET Core
OData $select and $expand not working on XML response?
I have been developing an API with XML and JSON responses integrating OData, but I'm having a problem retrieving XML responses with OData $select and $expand methods, but other methods work fine like $top, $filter and $orderby etc... In JSON response…
Developer technologies ASP.NET ASP.NET Core
Developer technologies ASP.NET ASP.NET API
Developer technologies ASP.NET Other
Setting up VS 2022 ASP.Net Core Web API with Authentication working
I have been trying to get my ASP.Net Core Web API working with an AAD app registration for authentication and I'm not able to authenticate using either the default Swagger page or Postman. At this point, I'm just trying to get the WeatherForecast API…
Developer technologies ASP.NET ASP.NET Core
Microsoft Security Microsoft Entra Microsoft Entra ID
Use API into a WebApi project
I need to call Graph API without user interaction. Users access to a Angular website through ADFS and the backend is served by .Net Core WebApi. Users ask the server to upload/download a file and the server must "self login" to Graph and do…