Content
Identity Scaffolding Context class
Should the existing context class be chosen at projectname.data. or a second context class be created at projectname.areas.identity.data.WebApplication1Context. Confused about the wording in the tutorial: "create a new Data context class. Accept the…


embedding a pdf file in my chrome browser
I am trying to embed a pdf file on my web page. In order to achieve this, I have the following code in my controller: public IActionResult Index() { string path = Path.Combine(_environment.WebRootPath, "packageFiles"); …


How to create environments with appSettings?
In previous projects i could click the Configuration or Debug menu (in the top bar) and set a new Configuration. This was displayed when i expanded web.config and i could use this to change environments to use different database connection strings…


Paginated List not displaying second page
The below works to display the first page containing 3 records of 6 of a paginated list but when you click on the "Next" button, it has the following result: [https://localhost:7045/PropertySet01?pageNumber=2 This localhost page can’t be…


I'm getting code first approach validation error can you help me
I add error massege and I update database with (datanase-update -Force).but not working error massege. why ?


Visual Studio - installing chartjs-plugin-datalabels
I have already installed chart.js nuget into my MVC app. Now I am trying to add tatals to each of my chart bars and in order to do so, according to many tutorials, I should install chartjs-plugin-datalabels but when I am trying to execute the following…


Server Error in '/' Application Error.
Hi There; I have an ASP.NET MVC Application. Its version is .NET 4.5.2. It is facilitating Entity Framework and it is using Oracle Database 19c. I have found a bug in the application and I solve it. It runs smoothly on my local computer. Whenever I…


Linq query and violation of inserting null in database
Hello All, I have the following two model classes: public partial class EmployeeInfo { public int EmployeeInfoId { get; set; } public string LastName { get; set; } = null!; [DisplayName("First Name")] public string FirstName { get; set; } =…


Address Autocomplete
Hello everyone and thanks for the help in advance. I need to develop a page for address input that will be entered by an end user. Obviously, user input is prone to error so I am looking for solutions to validate the input. I know the US Postal…
Add-Migration CreateIdentitySchema
Having difficulty with the Add-Migration CreateIdentitySchema step in the tutorial. Any help would be appreciated: Tutorial:…


Auth cookie is deleted by the browser when it closes
I have a strange problem. When I close my browser (whether Chrome or MS Edge), my authentication cookie is deleted. Consequently, the next time I start the browser, I have to log in again. My controller looks like this: ClaimsIdentity claimsIdentity =…


Install-Package Microsoft.VisualStudio.Web.CodeGeneration.Design Error 6.0 v 7.0
Install-Package Microsoft.VisualStudio.Web.CodeGeneration.Design renders following error message: PM> install-package microsoft.VisualStudio.Web.CodeGeneration.Design Restoring packages for…


how to bind to taghelper property in razor pages?
[HtmlTargetElement("pagination")] public class PaginationTagHelper : TagHelper { [HtmlAttributeName("page-index")] public int PageIndex{get;set;} } and in Index.cshtml <pagination page-index="PageIndex" /> I can not…
Reading form fields after submit (POST) in Blazor Server?
I have a login form in Blazor Server App and use POST to send login data (email and password). <form id="LoginForm" Model="LoginModel" action="cookie" method="post"> …


Getting User Details from Azure AD in ASP.NET
In my ASP.NET 4.8 MVC application, I was able to get user authenticated using Azure AD. Now I need to get user details like job title, department, email, etc. From the research I did so far, it looks like MS Graph API is the way to go. Am I correct? Can…


How to System.BadImageFormatException (No string associated with token) error solved
Our Web Application build in .NET 4.8 and hosted as an azure app service throws this exception in some views. Here is the stack trace for one of these exceptions. We have run out of options to try certain things but it is stuck like that. We have tried…


"Güncelle" button not working
ı dont undestand. Delete's working but update(Güncelle) not working. Where's my mistake ?


Sodium.js error
Does anyone know what is sodium.js and what is this error means? This error started showing in my asp.net MVC app. I have autocomplete on my text field which uses json call which queries database and I've noticed that even the autocomplete works,…
How can caming towns null ?
When the city is selected, it comes with the town. But when the city is selected, I want the town to be empty and for the user to select it. I want when user choose city second drowboxlist caming null how can add ? my code is ; For example…


how can add validation 2 drowdownlist
The user comes and selects the city from the first dropdownlist. If the first value is selected from the second dropdownlist, I want it to give an error. I want to add validation but failed. Help me please ? Where is my mistake ? my code ; var…

