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

Sort by: Updated
0 answers

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#
asked 2022-04-08T18:05:07.717+00:00
karwan essmat 1 Reputation point
commented 2022-06-29T08:47:14.17+00:00
fei li 1 Reputation point
0 answers

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
asked 2022-06-27T06:58:55.097+00:00
Shatrughan Raghuwanshi 1 Reputation point
commented 2022-06-29T01:38:08.327+00:00
Anonymous
1 answer

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
asked 2021-02-05T12:06:52.397+00:00
balkar2016 1 Reputation point
answered 2022-06-28T21:58:25.647+00:00
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
1 answer

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
asked 2022-06-23T20:33:55.093+00:00
Michael Mastro II 56 Reputation points
commented 2022-06-28T12:28:25.253+00:00
Michael Mastro II 56 Reputation points
0 answers

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
asked 2022-06-28T07:56:07.863+00:00
Nalswamy Kandaswamy 1 Reputation point
commented 2022-06-28T11:25:12.743+00:00
Nalswamy Kandaswamy 1 Reputation point
1 answer One of the answers was accepted by the question author.

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
asked 2021-11-15T01:28:35.68+00:00
mc 5,426 Reputation points
commented 2022-06-28T09:12:39.957+00:00
Jose 1 Reputation point
1 answer

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
asked 2022-06-27T08:29:21.007+00:00
Monisha S 21 Reputation points
commented 2022-06-28T08:01:28.053+00:00
Anonymous
1 answer

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
asked 2022-06-27T04:23:21.907+00:00
NepaBort 1 Reputation point
answered 2022-06-28T07:31:23.18+00:00
Anonymous
1 answer

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
asked 2022-06-25T16:10:18.43+00:00
Jagadeesh Mohan 1 Reputation point
answered 2022-06-28T02:57:44.637+00:00
Yurong Dai-MSFT 2,846 Reputation points Microsoft External Staff
2 answers

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#
asked 2022-06-27T15:24:35.747+00:00
Vlachopoulos Dimitris 1 Reputation point
answered 2022-06-27T19:37:11.273+00:00
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
2 answers One of the answers was accepted by the question author.

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
asked 2022-06-25T14:43:46.63+00:00
Helio Viegas 21 Reputation points
commented 2022-06-27T15:50:41.273+00:00
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
1 answer One of the answers was accepted by the question author.

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
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Developer technologies ASP.NET ASP.NET Core
asked 2022-06-21T00:20:30.783+00:00
krishna572 886 Reputation points
accepted 2022-06-27T14:08:30.197+00:00
krishna572 886 Reputation points
0 answers

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
asked 2022-06-27T10:18:27.713+00:00
net 6 newbie 121 Reputation points
commented 2022-06-27T12:09:31.563+00:00
AgaveJoe 30,126 Reputation points
3 answers

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#
asked 2022-06-24T15:28:07.417+00:00
answered 2022-06-27T07:17:16.863+00:00
satya karki 996 Reputation points MVP
1 answer One of the answers was accepted by the question author.

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
asked 2022-06-21T14:46:41.687+00:00
Jacob Clinton 26 Reputation points
accepted 2022-06-26T16:41:12.14+00:00
Jacob Clinton 26 Reputation points
0 answers

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
asked 2022-06-26T07:24:59.253+00:00
rashmitha r 21 Reputation points
commented 2022-06-26T13:30:48.937+00:00
AgaveJoe 30,126 Reputation points
2 answers One of the answers was accepted by the question author.

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
asked 2022-06-18T23:51:02.667+00:00
Jerry Lipan 916 Reputation points
accepted 2022-06-24T10:31:33.113+00:00
Jerry Lipan 916 Reputation points
1 answer

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
asked 2022-06-17T23:22:33.317+00:00
Ken Martos 36 Reputation points
commented 2022-06-23T22:17:43.453+00:00
Ken Martos 36 Reputation points
1 answer

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
asked 2022-06-22T17:51:23.247+00:00
David Downing 21 Reputation points
commented 2022-06-23T21:33:09.7+00:00
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
1 answer

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…

Developer technologies ASP.NET ASP.NET Core
asked 2021-05-02T02:48:01.963+00:00
Maximiliano Bertoli 26 Reputation points
answered 2022-06-23T20:13:02.857+00:00
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator