Facing error 'Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException'...
Himy problem is that when i disable my input control as follow :<div class="form-group"><label asp-for="OrderId" class="control-label"></label><input asp-for="OrderId"...
View ArticleHow to implement servicehost in asp.net core
Hi Team,How to implement serviceshost in .net core I migrated asp.net project to .net core 3.1 but found servicehost is not supportedis any way to implement this or any suggestion would be helpful.
View ArticleProblem to send ajax request to delete item (Returns not found!).
Hiin my form, i have a list of orders which user can click on delete button to delete each order of specific person. here is my orders list :@model IEnumerable<Orders><input type="hidden"...
View ArticleFile name when uploading
When uploading an image, and if the image is named rover.jpg, and I want the uploaded image to be rover456.jpg, how do I name it?This Github example uses a random name:using System.Collections.Generic;...
View ArticleHow to access ViewData from external javascript ?
Hii've use this external javascript function to access ViewData variable(s) :function deleteOrderItem(orderID) { if (confirm('Are you sure want to delete this item?')) {$.ajax({ type: "POST", url:...
View Articlehow to fix JSON Self Referencing Loop Exceptions
My Project in asp.net core 3.0 .Net core framework I have the following model.When I run the query in postman the following error is coming 'JSON Self Referencing Loop Exceptions' when I try to...
View ArticleMultiple routes and global attributes
hi guysI am playing around with razor pages and building a new website with it.How do I add a global configuration to all the files in a folder e.g Pages >> Accounts folder (I know in webforms I...
View ArticleUpload image .net core 3.1
Before code generated:@page @model pcore31.CreateModel @{ Layout = null; } <!DOCTYPE html><html><head><meta name="viewport" content="width=device-width"...
View ArticleFront end for .Net Core 3.1
I want to develop a big enterprise application in .Net core. what pattern should i follow for front & backend?.Net core with bootstrap+Jquery .Net core with Razor .Net core with Blazor .Net core...
View Articlehow do I update a Custom base controller
hi guysAs I said in my last post, I just moved to razor pages and tyring to get a hang of it.In MVC I always inherit a base controller in all my controllers e.g. for admin accounts I have my custom...
View ArticleUpload image or multiple using razor page only, no code behind
I know how to use sql server in razor, just quick example:@page @using System.Data.SqlClient @using System.Collections.Generic; @using System.Data; @using System.Linq; @using System.Threading.Tasks;...
View ArticleRestful API and Async API
HiPlease can you advise me what is the difference between Restful API and Async API. What is the best choice for an application. I am confused what should I use in a project either Restful API or...
View ArticleNull Exception Issue When Working with Jwt Token
Hello Microsoft Team,When i try to login by username and password. null exception error occur when controller hit opt.TokenValidationParameters = new TokenValidationParameters() which is available in...
View ArticleIdentity Framework vs. Identity Server
Hello everyone and thanks for your help in advance. I am new to .Core and in the premilitary stages of migrating an intranet along with some external facing api services. My first task is reading up...
View ArticleProblem with Session when getting string data to the action of controller
Hi guys,As some of you knows, I'm developing a quiz application. I have timer in question view and this time I need to get the time between opening the question view and submitting the answer. Then I...
View ArticleInconsistent accesibility:parameter type; HomeControler(IRepositoryissue) is...
HomeController.Homecontroller(Irepository<Issue>issue)Hi, I don't understand why I am getting this error. Below is part of the home controller that I am using. I have tried everything. I am...
View ArticleFacing error 'Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException'...
Himy problem is that when i disable my input control as follow :<div class="form-group"><label asp-for="OrderId" class="control-label"></label><input asp-for="OrderId"...
View ArticleWhat does ASP.NET Core Identity provide that I cannot do with bare...
Hi folks,I'm looking into removing Azure B2C from a project of mine, for reasons relating to automation and such (which B2C is not yet very compatible with), but want to keep my auth work flows the...
View ArticleDoes ManualResetEventSlim signaling degrades performance?
I am using ManualResetEventSlim to have signaling mechanism in my application and It works great if requests/sec are 100. As I increase request/sec, it gets worse.Example:100 Requests/sec -> 90%...
View ArticleError de migracion al publicar
I have an error when I publish my project, in the dbcontext not show the the conection string for migration.
View Article