Quantcast
Channel: ASP.NET Core
Browsing all 9386 articles
Browse latest View live

Publishing single page from ASP.NET Core Razor project

I have an ASP.NET Core project using Razor pages, I published the project from Visual studio 2019 to an Azure web app, Its working fine.But when I doing a change in a single page, I want to publish the...

View Article


InvalidOperationException: Unable to resolve service for type

Microsoft.AspNetCore.Identity.SignInManager`1[Microsoft.AspNetCore.Identity.IdentityUser]' while attempting to activate...

View Article


Is ASP.NET Core 3.1 Ready for Prime Time/Production Web Apps or Not?

Hi, I've been working on a web portal using ASP.NET Core 3.1 and I keep running into weird errors between Identity and EF Core. I've gone through several complete rebuilds and tons of errors and...

View Article

ubuntu 18 + asp.net core 3.1 + apache 2.4.29 = Status Code 500/502

can someone help me with this issue? Sometimes i'm getting  Status Code 500/502 and i can't  find out source of this problem.сonf file  -> sites-available#<VirtualHost *:*> # RequestHeader set...

View Article

PhysicalFile not returning response for range requests

Hey,I have a problem delivering videos in .NET Core. I'm getting a video file by an absolute path and returning it to be used as a source in a<video> element. However, I'm enabling HTTP Range...

View Article


How to return the Text of Selectd value of SelectList?

HiI've added new properties to the ApplicationUser Class: public class ApplicationUser : IdentityUser { public ApplicationUser() { MarkterStatus = false; } public string FullName { get; set; } public...

View Article

how to open javascript files that contain a magazine and games in the wwwroot

I am just changing over to asp.net core mvc from asp.net web.  I have a children's magazine and they go to a JavaScript file to open the mag and inside the JavaScript file are at least 30 pages and...

View Article

Migrate Asp.Net Core 2.1 to 3.1

Hi ,Please help me on this,I want to migrate my WebApi project from Asp.Net Core 2.1 to 3.1.Please give me the instruction and guideline to set up through VS Code.Regards,Biju

View Article


Razor Pages Vs MVC apps

I am wondering why Microsoft is pushing these Razor Pages Apps over MVC. This is very annoying and concerning to me. I'm going over the "Recommended Learning path" in the Overview...

View Article


whats the max number of roles a JWT should hold?

HiWhats the max number of roles a JWT should hold?Any advice would be appriciated.

View Article

Key Vault Secret Name to use in DB Connection string under appsettings.json

Hi All,How can I get the password from Azure KeyVault > Secrets using secret name & Version to pass into Database connection string @ appsettings.json file below:-Program.cspublic static...

View Article

ASp.net Migration

Hi Expert,how we can do box migration in .net  i mean  from physical machine  to other vm like cloning and all and what is the best approach for this like complete box would be a safest way to collect...

View Article

checking of correct datetime format is not working

HiI want to check the given string value is correct  format for converting into  datetime  variable before to convert into date time variable.  But the value '05/03/2020 8:15:00' is showed as incorrect...

View Article


A question about reading other peoples code

Hiwhen i press f12 to navigate to a file base on the class my cursor is on, i often get to a class which is an abstract base class, how do i get to the class which actually has the implement code?an...

View Article

Does SignalR have a low performance?

I am sorry I am a beginner.These days I made a chatroom by asp.net core with SignalR.My friend tried my app and pointed out that I should not use SignalR for its performance is low that now almost no...

View Article


ASP.NET CORE 3 Scaffolding issue not Displaying Foreign Key Data on Table...

We recently started upgrading some of our applications from ASP.net MVC5 to ASP.NET Core 3.   We use the scaffolding tools to build the view pages for us just like we did on the original apps and then...

View Article

Creating A Global Model, With No Associated Database Table

Hello All,I am using ASP .Net Core 3.1 Razor Pages (non-MVC) with Entity Framework Core.Consider the following OnGet() Handler in an Index.cs file:public IActionResult OnGet(){var webRootPath =...

View Article


Validate inputs when submitting

Hi people,I am with a problem in my SignIn page. In my page, I have a form with two inputs and I want to validate if both are filled before submitting but if I put a handler in my form, it prevents my...

View Article

asp core 3.1 identity login dowesn't work and shows samesite warning

<div>I just finished my asp .net core 3.1 project. and i was trying to deploy it onIIS. So first i scaffolded Asp Identity and it createdidentityHostingStartup and other files. And published the...

View Article

How would be possible to replace JsonResult with IAction method on the given...

Just I am looking for to replace the JsonResult method into IAction   in the code given belowJavascript function GetClockList() { try { var table = $('#tblData').DataTable(); table.destroy(); } catch...

View Article
Browsing all 9386 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>