noob question
I have a .net core 2.0 application running under iis. It runs fine, however, I'm a bit confused about the mapping to the views.... The site runs under the main web site....so something like..Web...
View ArticleAdding AspnetCore.MVC in old class library is not working
HiWe have .net 4.0 MVC 4 website so now we are converting it to MVC Core 1.1(.net std)It has some old class libraries also.So I created only web project as 'Asp.net Core Web Application(.Net...
View ArticleAdding an error route to a razor page app
The razor pages project template doesn't include a 404 page. It just brings up a blank page if a url is mistyped. Can someone teach me how to add it?
View ArticleBreadcrumb in nested layout
in my project I put some layout:_Layout, as main layout _Layout_Sales _Layout_Production _Layout_Project where I put "Breadcrumb" above the main layout.<div class="container body-content"><ul...
View ArticleAsp.net Core IIS Deployment Database
Hi folks,I have created Aps.net Core 2 with Angular template project by default project type. And I have added Context Data, Connection String and another controller file called PersonController.cs as...
View ArticleHow can i get the name of category from Product Object with code first
HiProduct Model: public class Product { public int ProductId { get; set; } public string Name { get; set; } [Range(0.01,double.MaxValue)] public decimal Price { get; set; } public string Discription {...
View ArticleUsing facebook login and getting basic userinfo
I've implemented the basic facebook loggin as described in the docs. It works very well. But one thing I can't get and is a major issue is that I can't get the first and lastname or the email for the...
View ArticleSession state size limits in ASP.NET Core
Is there any default limit on the size of the session state in ASP.NET Core?In full ASP.NET, I have seen similar questions answered with reference to the requestLengthDiskThreshold setting, but unclear...
View ArticleSQL Bulk insertion (Password hash)
Hii am using Asp.Net Identity Model for my project for Authentication . i have a requirement to insert bulk user records with their DOB as default password. How can i insert this in SQL Server? how can...
View ArticleHow to Setup Windows Authentication for ASP.Net Core with .Net Platform.
A VS2017 ASP.Net Core MVC project targeting the .Net Framework platform was created. I then want to use filter attribute [Authorize(Roles=WorkerFunction1")] to control who can access what...
View ArticleSubmit and save multiple forms (presented as table)
Hello,I wonder if the following is possible. I have a view which has multiple tab-panes. Each tab-pane correspond to aStore. Inside each Store there is a table which contains information of all...
View ArticleCould not load file or assembly 'System.Diagnostics.DiagnosticSource
Hi,I got below error. How to fix it.Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies....
View Article.net core 2.0 hybrid ORM (dapper and entity framework core 2.0)
Dear Friends,I have started my new project in .Net core 2.0. Recently I did some research for best suited ORM, which is fast and easy to use. I found Dapper as a king of ORM, but it has many...
View ArticleUnable to scaffold a new controller with Entity Framework Core in ASP.Net...
I'm not 100% sure this has to do with ASP.Net Core, but think so.I'm going over this tutorial on ASP.Net core , and am using VS 2017 to do so--...
View ArticlePublish your first ASP.NET Core app to Azure
This quickstart shows how to deploy your first ASP.NET web app to Azure Web Apps. When you’re finished, you’ll have a resource group that consists of an App Service plan and an Azure web app with a...
View ArticleHow to trigger the client side validation from a javascript function
Hi:I have a form with only one input control. This input is related with a property which has the Required data annotation.Then when you hit the submit button a javascript function is called. This...
View Articleusing multiple models to create a form
HI everyone,I am new to asp.net core and need to create a registration form using multiple models to store the information, the registration form is huge and I have had to split it down into 32...
View ArticleWeb based file manager?
Hi, I'm trying to make a web based file manager similar to webmin https://doxfer.webmin.com/Webmin/HTML_File_Manager, but I have no idea how to server other files outside of project root folder. How...
View ArticleSuggestion on creation of Azure file share
I am developing an MVC web application using Asp.net core 1.1 . I have a view, in that Product details will be shown. It has two types of products for example printer & scanner. Printer &...
View ArticleASP.NET Core 1.1.2 site hosted on Windows Server 2008 R2 intermittently fails...
I've got this ASP.NET Core site (version 1.1.2 with target .NET Framework 4.6.1) that is hosted on a Windows Server 2008 R2 using the .NET Core Windows Server Hosting bundle. It works fine everywhere,...
View Article