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

AD Group based authorization globally in asp.net core 2.x web application?

I am trying to implement an internal application running on intranet only to be authorized computer user by AD group.Not sure what is involved to archive this in .Net Core 2.x.Had googled many posts,...

View Article


EF Core and Entity Framework 6

I starting to incorporate a "class library" API for a desktop application that is using Entity Framework Core. Other code still resides on EF6 and needs to for now.I am running into an error where it...

View Article


ASP.NET Core - Reading Config

It used to be so easy to read a configuration from anywhere and now it is rather a hassle.I would like to do something likepublic static class ConnectionString { // // Database Connection Strings //...

View Article

How to use Cookieless SessionState On ASP.NET CORE 2.0

Hello guysNow I try to convert ASP.NET 2.0 Projecto to ASP.NET CORE 2.0 ProjectAnd I Could't  find the information of Cookieless SessionState. like...

View Article

Many to Many relationship causes error on saving.

Hi,I am making a web app where a user can purchase images from an online gallery, the app works as follows:A user browses the gallery, and adds an image to a cart (I am using angular as the front end)...

View Article


Many-to-many relationship and multi select in asp.net core

Hello,I'm trying to learn asp.net core with razor and I'm trying to make a videogame database to keep a track of finished games, games I haven't played yet, etc.But I have a problem. I have a table...

View Article

Razor Page Navigation

Hi,I am new to Razor pages - have successfully complete the 2.0 Razor - EF tutorial and the 2.0 MVC - EF tutorial.  I am trying to make pages from "real" data now using Visual Studio 2017 and SQL...

View Article

Image may be NSFW.
Clik here to view.

there is a problem on Microsoft Edge

Hi,I have a test project asp.net core. I tested it on Edge / Internet Explorer / Chrome and Firefox. I've just got a error on EDGE. I recognized that if Request.Path has turkish character, I get this...

View Article


How to send a number and a string to controller without posting a form

I have a controller method that I only need to send a string and an int to when clicking on a link in the view. But I cant seem to send it without using a form. This is the normal way I use without a...

View Article


Roles and RoleManager in ASP.NET Core 2

My next step in this journey is to create some roles and a simple user.  Unfortunately, I get an error regarding my tables not having primary keys as shown below.  I don't understand how to fix it.  I...

View Article

ASp.net Core wepapi with reactjs in one solution

I have reactjs and core 2.0 webapi projects in one solution but in different projects(react web app and service). I have created on API in service project and added its reference in react webapp...

View Article

How to properly store date and time for events?

I am facing a hard time understanding when to use local time vs UTC.say I have a web application that user can be logged in from multiple time zones,I will be dealing with two scenarios...

View Article

Can not Customize AspNetUsers in ASP.Net Core 2.1.0-preview2-final

In version 2.0.7 - the latest stable version I can customize IdentityUser with this code: { public class ApplicationUser : IdentityUser { [Display(Name = "First Name*")] [Required] public string...

View Article


Entity Framework Core [NotMapped] property helper to retrieve single entity...

I want to be able to achieve something like:public class EntityWithCollection { public int Id { get; set; } [NotMapped] public DependentEntity { get { return Dependencies?.SingleOrDefault(d =>...

View Article

Sample Code for ASP.Net Core to Access Active Directory

I have two questions;1.I am looking for how to use .net core to access AD, any sample code? I had used DirectoryServices in standard dotnet, but .net core does not support DirectoryServices.2. Is it...

View Article


LoadXMLAsync for XML Document in .Net Core 2.0

We are using .net core 2.0 and the LoadXMLAsync method is not showing up for me?What am I doing wrong?https://docs.microsoft.com/en-us/dotnet/api/system.xml.linq.xdocument.loadasync?view=netcore-2.0We...

View Article

How to deploy Asp.net web application in production?

Hi,I have updated existing ASP.net web applications. Now I want to deploy those changes in production environment, so what would be the best method to deploy the changes?Can I copy all the files from...

View Article


.Net Core 2.1, EF Core 2.1, and non entities

Hello,   Since trying to convert a site over to Asp.Net Core 2.0 I have run into this problem.  The viewmodels are not a DB set within the database so using FromSql to call the stored procedures would...

View Article

[Fixed/Found] IDataProtectionBuilder - PersistKeysToFileSystem

Hi everyone,I'm using IDataProtectionBuilder to encrypt/decrypt data, and because the application is split on several machines I'm using as you can see it...

View Article

WEbapi Authorize( DELETE ) returns 405 (MethodNotAllowed) rather than 403...

I assume that this is (perhaps) simply the way webapi works, but I am trying to grok it.If I remove the "Authorization" on the delete method it works fine on the APIhowever adding any kind of...

View Article
Browsing all 9386 articles
Browse latest View live


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