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 ArticleInvalidOperationException: Unable to resolve service for type
Microsoft.AspNetCore.Identity.SignInManager`1[Microsoft.AspNetCore.Identity.IdentityUser]' while attempting to activate...
View ArticleIs 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 Articleubuntu 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 ArticlePhysicalFile 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 ArticleHow 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 Articlehow 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 ArticleMigrate 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 ArticleRazor 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 Articlewhats 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 ArticleKey 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 ArticleASp.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 Articlechecking 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 ArticleA 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 ArticleDoes 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 ArticleASP.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 ArticleCreating 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 ArticleValidate 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 Articleasp 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 ArticleHow 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