asp.net core 2.0 jwt validate not working when I add service.addidentity
Hi ,I have an project with normal website and api together,the API using Jwt token to authorize, it works well with API only .but when I attach the website login part , add this into services , the API...
View Articleerror after deploy on some pages
I'm doing my site in core 2.0. . I have 2 pages do not work I get this error . But if I debug local it works Error.An error occurred while processing your request.Request ID:...
View Article.Net Core - FromSQL - Must declare the scalar variable
Hi All,I want to seek any solution for passing variable from .Net Core to Stored Procedure.I'm using VS 2017 .net Core and my code base on this link. I'm workin on 2nd DropDownList (Sub Category) that...
View ArticleVisual Studio 2015 - Bower always uses force-latest version.
Bower seems to be pulling down the wrong version. I believe this is due to the integration always adding--force-latest to Bower.cmd. Below are the Steps to Reproduce as well as the console output...
View Articledrop down responsive menu
I'm starting to learn core 2.0 . When I did my project . I did the 2.0 Web Application . So I lean some the code I want to add a drop down responsive menu from the code there how do I add the drop down...
View ArticleTwo factor cookie options in ASP Core 2.0
Hi,I was able to configure the two factor authentication cookie name / expiry time in ASP .NET Core 1.0 using the following code.services.AddIdentity<ApplicationUser, IdentityRole>(o => { //...
View Articleerror CS7069: Reference to type 'AuthenticationOptions' claims it is defined...
I'm using Asp.net Core 2 and trying to add OAuth2 support, I'm following this example here: https://www.codeproject.com/Articles/1185880/ASP-NET-Core-WebAPI-secured-using-OAuth-Client-CreUnfortunately...
View Articlecan't migrate to production, asp.net core 2.0
I can't understand what i can do for migration database for my production server. Local machine work properlyI have ASP.NET Core 2.0 application, and in publishing setting i have settings for migration...
View ArticleDeployment and directories
I'm a newbie when it comes to web hosting/deployment, and I'm trying to understand something about that. I have developed a very basic Web API and Web App in ASP .Net Core 2.0. I would like to upload...
View ArticleAdding Controller with views using Entity Framework Error - Visual Studio...
I'm cross posting this because it might make more sense here vs the Visual Studio MSDN forum.Trying to follow the tutorial for the MVCMovie project located at...
View ArticleHow to display exception messages to users
In my web app I show messages to the users by using ViewBag. In the controller method I write a string that I can set a message on:public IActionResult Index(string message = null) {...
View ArticleKeep Data in Client Side
Hi Devs, In my database I have a table with a lot of data so when I display the data in the page it takes some time, I wanna know how can I keep the data of a query in client side after the first...
View ArticleGet User in Registered Role
I have custom User, Role and UserRole table, with User having an ICollection of UserRole public partial class UserRoleMap { public UserRoleMap(EntityTypeBuilder<UserRole> builder) {...
View ArticleHow to hide zero values in a pie chart with the EPPLUS library ...
Hi all, I'm making a site with asp.net core and I use the EPPLUS library to create excel sheets, specifically I've created pie charts where I also showzero values but I would like to remove them.I have...
View Article"Can not find compilation library location for package.." error right after...
I have an ASP.NET Core 1.1 website that targets .NET Framework 4.6.1. Now after installing .NET Core SDK 2.0, I can't view any of the pages because of the error:InvalidOperationException: Can not find...
View ArticleAsp.net core 2.0 comma and point decimal separator
Hello,I tried to make an attempt of a basic project Core 2 with just a model: public class Bilance { [Key] public int Id { get; set; } [Required] public decimal...
View ArticleTrying to deploy asp net core web app after upgrade to 2
I have upgraded a asp net core wep app from 1.x to 2 and it all runs OK through visual studio and I have installed . net core 2 runtime on windows server 2012 (where app is deployed), but when I...
View Articleretrieve and store the number of records
Hi,I use asp net core mvc (2.0) I have two tables:"Tasklist" and "Tasks"CREATE TABLE [dbo].[TaskList] ( [ID] INT IDENTITY (1, 1) NOT NULL, [Aufgabe] NVARCHAR (50) NULL, [Status] INT NOT NULL, [zusatz]...
View ArticleHow to do async calls correctly?
What is the difference between these two calls to the database? The first one excludes the async and await keywords on the Task that is happening. But the calling code from the controller awaits it, so...
View Article