how can I install package to wwwroot in mvc core 2???????????!!!!!
Recently I Installed the VS 2017 Which Contains Asp.net mvc core 2but there is a very confusion problems here!that is how can i Install a new package into the wwwroot so:_ Im using bower but...
View ArticleConsole.WriteLine in aspnet core application
Where does console.writeline print in aspnet core application? Is console window going to be created even with the aspnet net core web application?
View ArticleSSL redirection does not work
I've implemented the example in this article https://docs.microsoft.com/en-us/aspnet/core/security/enforcing-ssl?view=aspnetcore-2.1&tabs=visual-studioBut when I try to go to the webside I get...
View Articleweb api core dependency error
I'm trying to build a web api based project using .net core. I have a problem on debug InvalidOperationException: Unable to resolve service for type...
View Article.net core console application forbidden access to https://..., a certificate...
Hi pals,I have a .net core console application and want to make a call to an API, hosted on an SSL-enabled endpoint. I have installed the certificate on my local machine, but still cannot call the api!...
View ArticleCore 2.1 code-first migrations -- seeding?
Can anyone provide basic code for how to seed a db in dot net core 2.1 ? In 2.0, I handled this in Program.cs using a scoped instance of my context class:public class Program { public static void...
View Articlecall a javascript function in asp.net core controller.
<script type="text/javascript"> function ShowErrorPopup(c) { $('#CallBackDiv').append(c); }</script> <div id="myCarousel" class="carousel slide" data-ride="carousel"...
View Articleonly can install twitter-bootstrap instead of bootstrap in microsoft library...
according to the subject when i hit to the bootstrap in library manger only twitter-bootstrap@4.1.1 was applied and install and can not install pure bootstrap why !!!!Im using version 15.7.3 of VS 2017
View Articleasp.net core 2.0 - bad request data: "Malformed request: invalid headers
Hello everyone, I am studying ASP.NET 2.0 core and from time to time this error occurs, and only recompile some project if I restart the computer. after this error occurs, even though I creating a new...
View ArticleEFCore scaffold
I am trying to create a Model, by using scaffold:dotnet ef dbcontext scaffold "DataSource=database.sqlite"Microsoft.EntityFrameworkCore.Sqlite-o ModelBut this return error:Couldnot scaffold the foreign...
View Article.Net Core Membership Roles
I have a project that uses windows authentication (company’s intranet)I use AspNetUsers, AspNetRoles and AspNetUserRoles tables I create two roles, User and Admin, and add users into these tables, I...
View ArticleASP.Net Core Error NU1202
Can someone help guide me in the right direction i have brand new installation of v.s. 2017 with core installed on my 64bit lenovo system. The new installation and trying to run a asp.net core with...
View ArticleASP Net Core 2.1 App throws intermittent SSL error while logging to Splunk
Hello, we have a .net core app which we recently migragated to 2.1 from 1.x. Post migration we have seen that the app hangs everytime we recycle the application pool, the app can’t be reached and only...
View ArticleHow to instantiate ApplicationDbContext
How do I instantiate the ApplicationdbContext class in a data access repository. Because my project is using ASP Identity, and in the ApplicationDbContext class the compiler asks for an argument of...
View Article.NET Core 2.1 + React template
Can anyone help explain the workings of -- within the .NET Core React template -- the {Project Name}\Controllers\SampleDataController.cs file?How does [Route("api/[controller]")] know to route to...
View Articlewhat cms systems are available for .net core
What cms systems are available to use on a pure asp.net core(mvc 6) web site. Right now i am learning umbraco and know my choices are limited. I also seen orchard2. Are there others and what is the...
View ArticleCreate HttpResponseMessage object from ActionExecutedContext in Asp.net core 2.1
I am trying to move our project from Web Api 2 to Asp.Net Core 2.1. We have a filter class which is inherited from ActionFilterAttribute and some code in there depending on HttpResponseMessage object...
View Articlesimple noob question - Where do you put the Initializer?
I'm going through the ASP.net Core 2.1 tutorial right now, and I just can't find where I'm supposed to add the seed initlializer. I don't recognize which (if any) file I'm supposed to dump that code...
View ArticleMoved My files to another project
Hi, I'm trying to move my controllers, views, etc into another folder. But the compliler has some trouble finding the routes. I don't want to set the routes manually for each controller/view/layout. I...
View ArticleHow can I check for certain datatype in Object variable?
I have this Object variable,PatientRegistryResource patientViewModel = new PatientRegistryResource ();PatientRegistryResource has many properties and I want to get all properties with `OffsetDateTime`...
View Article