Skip to main content

All Questions

163 questions with no upvoted or accepted answers
11 votes
0 answers
352 views

What is relation between AuthenticationScheme and IIdentity.AuthenticationType

How are they connected? I can use HttpContext.SignInAsync, and then HttpContext.User is set to provided identity, however I have one identity and multiple authentication ways - what if user login as ...
Shadow's user avatar
  • 2,338
7 votes
0 answers
1k views

No bower/npm config files are part of the latest .NET Core 2.0 Web App templates, but client-side libraries are installed

The latest ASP.NET Core 2.0 template doesn't have a bower config or a packages.json, but comes with client side packages such as bootstrap and jquery. How do we takeover from here and manage these ...
Blake Rivell's user avatar
  • 13.6k
7 votes
1 answer
956 views

Is it possible/sensible to split ASP.Net Core 2 (.NET Framework) Web Api into Class Library and Hosting projects?

I'm trying to port an existing WCF Web API (targeting .NET Framework 4.6.1) to ASP.Net Core 2 using Visual Studio 2017 (v15.4.5) and am having trouble figuring out good/common/supported ways to ...
Norbini's user avatar
  • 81
6 votes
0 answers
2k views

Entity Framework Core foreign key from separate database

I am new to EF Core and databases in general since I am a student still. I have a requirement in the project I am making to have a separate Identity database from the application database. I have the ...
jleibman's user avatar
  • 157
5 votes
0 answers
411 views

How To Create The New Areas As Separate Project In .Net Core 2.0 MVC

I have tried to create simple .net core 2.0 project using areas in separate projects. There is some articles, but for mvc 5. I have tried to create new .net core 2.0 project different than the main ...
S.K.'s user avatar
  • 173
4 votes
0 answers
774 views

from ApplicationDbContext to IdentityServiceDbContext

In ASP.NET Core 1.1 I used ApplicationDbContext for user identity context and for my models data, following this. public class ApplicationDbContext : IdentityDbContext<ApplicationUser> { ...
Alexan's user avatar
  • 8,485
3 votes
0 answers
2k views

Getting Client-side validation to work

Situation: project created by dotnet new webapp My Razor Pages page is working with server side validation, that is, ModelState is returning the correct value accordingly. According to this, am I ...
Old Geezer's user avatar
  • 15.8k
3 votes
0 answers
61 views

.NET Core - using entities in a library that have relations to a user entity defined in a project which references the library

I'm working on an system where there is a base project (Lets call this project A) that is a class library. It contains common entities, controllers, middleware, etc. that I can easily carry forward to ...
Brad's user avatar
  • 10.5k
3 votes
0 answers
409 views

List all saved tokens for the current identity

I have an ASP.NET Core 2.0 MVC project, which uses the Microsoft OpenIdConnect framework to enable OAuth2 + OpenId as the Authorization and Identity provider for my project. I would like to view the ...
André Snede's user avatar
3 votes
0 answers
748 views

Using Bower in Visual Studio for Mac .Net Core

I am trying to setup an MVC project that can make use of the Bower package manager in Visual Studio on a Mac so that it is the same as using it on Windows. I want to add Bootstrap and jQuery into my ...
Alex Marchant's user avatar
3 votes
1 answer
2k views

Can't catch exception thrown by JWT.

I'm making a small web api with asp.net core 2.0. I'm using JWT to protect my api end-points. This is the jwt middleware I'm using this jwt bearer authentication This is my Startup.cs file: public ...
Redplane's user avatar
  • 3,121
3 votes
0 answers
1k views

How to use Crystal report in AspNet Core Mvc

I have converted existing Erp Application from Ap.net MVC to AspNetCore.Mvc. I want to integrate crystal report to new application. I have added the reference of CrystalDecisions.CrystalReports....
Sunij K's user avatar
  • 31
2 votes
1 answer
2k views

Relative Path for Sqlite database via DbContextOptionsBuilder.UseSqlite?

I have a .Net Core 2.2 project where the back-end needs to open a DbContext to a Sqlite database. I need something like: optionsBuilder.UseSqlite(@"Data Source=Data\Database.db"); However the ...
Patrick's user avatar
  • 5,766
2 votes
1 answer
341 views

MVC Change Landing Page is not working: Options.Conventions.AddPageRoute(

I tried changing the landing page of my web page Mvc application using this command. However it is still redirecting me to regular index, not Products/Index. How would I resolve this? public void ...
AlexRodgers's user avatar
2 votes
0 answers
2k views

Net Core: 'RouteCollection' does not contain a definition for 'IgnoreRoute'

I am migrating a project from .Net 4.6.2 to .Net Core 2.0. What is the replacement for IgnoreRoute in .Net Core? I'm receiving the error below: Code: public static void RegisterRoutes(...
user avatar

15 30 50 per page
1
2 3 4 5
11