Quantcast
Channel: ASP.NET Core
Browsing all 9386 articles
Browse latest View live

core 2.0 + kestrel with authentication - ability to lock down directories...

I have kestrel using anonymous + NTLM (Windows)  authentication and it is working just fine through controllers via [authorize]However, all the site files (i.e. css, javascript etc.) are still...

View Article


Looking for an ASP.Net Core 2.0 custom authentication without Entity Framework

Hi, iam a newbie with ASP.Net Core 2.0. I will have in my Web App a custom authentication. I want use my own SQL Database with my own user table. i want use a simple login process . When i google i...

View Article


ASP.NET Core 2.0 (Kestrel) Static File Response Compression Is Enabled...

I have an Asp.Net Core 2.0 app which serves an Angular2 app. I have NOT enabled any form of response compression. I.e. I haven't used  the response compression middleware.However, the server (kestrel...

View Article

Possible for user to intercept access token (for calling Microsoft Graph API)...

Is it possible for a user to intercept an access token (for calling the Microsoft Graph API) when the user causes a .NET Core 2.0 app (ASP.NET Core) to call an application service? The service is...

View Article

Control reccomendation

Not sure of the correct forum for this but the requirement is for an asp.net core 2.0 project. I need to leverage a control to indicate the status of a request in terms of the workflow complete. The...

View Article


Help understanding runtime identifiers (RIDs)

When I publish a project I can specify a RID (in fact, it appears, since I am targeting net452, one is defaulted (win7-x64) if I do not choose one).  I have a few questions about RIDs and...

View Article

Image may be NSFW.
Clik here to view.

angular2 built in AspNet core - deployment in IIS Issue

I have created a Angular2 application in AspNet Core 1.0. We are not using any of the AspNet core features and just we want Angular2 application to be wrapped inside a AspNet core application.The...

View Article

Http [Attribute], return value from Stored Procedure

Hi All,I need guidance for getting a return value from Stored Procedure.This is the current Controller [HttpPost] public IActionResult Index (prj_Insert Project) { var Project = new...

View Article


How 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 Article


Dynamic connection DBCONTEXT

I want to pass the connection string to the constructor of the dbcontext to have the possibility to switch database per user. But using this dbcontext in the add-migration results in nullpointer on the...

View Article

RedirectToAction with parameter

Hi,I use asp net core mvc (2.0)I have two controller with the corresponding views. In controller1/Details/xx i made a link to controller2/Edit This works without problems.In View controller2/Edit there...

View Article

Cannot upgrade from 1.1.2 to ASP .NET Core 2.0

Hello: I have an ASP .NET Core Web Application (.NET Framework) which works only on Windows taking advantage of full .Net framework. It is using AspNetCore version 1.1.2I now see that ASP .NET Core 2.0...

View Article

send mail

How can i configure the sendmail default in asp.net core 2 mvc?Example: i want to retrieve a lost password for a registered user

View Article


SignInManager.GetExternalLoginInfoAsync returns null

SignInManager<ApplicationUser>.GetExternalLoginInfoAsync returns null. I am not sure why. I am trying to retrieve the same"userId" (user-defined) that I stored in the cache via...

View Article

Other messageboards for .net core?

Hi, I've been using this bord alot for asking questions. But sometimes I would like to just discuss things or read about experiences and ideas from people interested in .net core. I feel these message...

View Article


Problem with Create([Bind

Hi,I use asp net core mvc (2.0)I have three tables which have relations:CREATE TABLE [dbo].[ProdukteArtikel] ( [ID] INT IDENTITY (1, 1) NOT NULL, [Price] DECIMAL (18, 2) NULL, ... CONSTRAINT...

View Article

Get all users with a specific role in ASP.NET Core 2.0

I'm just getting started with porting a application from ASP.NET MVC 5 to ASP.NET Core 2.0 (with EF Core and Identity). All has been going smooth, but I've ran into a problem that I can't seem to find...

View Article


Show database values in menu bar

Hi,I use asp net core mvc (2.0) Is it possible to show values from my database in the menu bar?I have defined this data in a controller, but I do not know how I can display them in the menu bar.Thanks

View Article

Unable to seed multiple roles in database

Hi all, I'm new to .net core and I trying to develop an web app (using angular template by default) with seeding database function. I successfully create other custom model records with entity...

View Article

Cant find .NET CORE

Hi,Already read a few posts with same problem but they appeared to be using older software and the answer was to use newer software but...I currently have installed;Visual Studio Enterprise 15.3.5 .NET...

View Article
Browsing all 9386 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>