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

How to create a Q R Code Generator in Asp.Net Core

Hi,There have any examples in Q R Code Generator in ASP.NET Core ?

View Article


when to create a method for a service?

Let's say I have a service called BookService, and I have method called GetAllBooks, GetBookById, and so on. Now I want to get all books that are recently modified, so do I need another method? or...

View Article


Identity: Creating password change token from a netstandard 1.6 console app...

I have a large netcore WebAPI application with multiple databases, each serving a different client. Data is shared via a queue that is handled by a netstandard 1.6 console app. Here's the relevant...

View Article

kestrel-hellomvc.service: Failed at step USER spawning /usr/bin/dotnet: No...

I was following the tutorial https://docs.microsoft.com/en-us/aspnet/core/publishing/linuxproduction on publish asp.net core project on nginxthe previous steps all seem successfully,but while systemctl...

View Article

Exception: Call to Node module failed with error: Error: Uncaught (in...

After I created a base servise class I got this exception on the index.cshtmlSystem.Exception: Call to Node module failed with error: Error: Uncaught (in promise): Error: DI Error Error: DI Error at...

View Article


Host .net core web api on iis

Hello everybody,i try to publish .net core web api on iis , create iis web webapp under defaultwebsite, applicatio pool with no managed code, but i have 404 error. after i  manually added wwwroot on...

View Article

How to read session in static method in ASP.Net Core

I wanna read session value in ASP.Net Core. If anyone have idea or suggestion please help.Thanks.

View Article

ASP.NET Core EntityFramework

Hi,    I have a tutorial example that uses EF to create two databases.I have been deploying to a remote server for testing in the real world.My hosting provider only allows me one Database. So I would...

View Article


project.json dependencies and tools

why does some tools are in the dependencies section, and what is the meaning of "type": "build". And why there are duplicate package in dependencies and tools?here is the default project.json in...

View Article


ASP.NET Core Identity - Not able to use Role

I am currently adding Roles to our Database using the RoleManager with the CreateAsync(newRoleName) Method - which works correctly.  But when I try to query that Role, it always returns that it doesn't...

View Article

View Model with Base class and Model binding is with post method is failed to...

In Asp.net core When i use base class for view model and when i use that in post method ,Model binder is unable to populate base class properties in model. public class AppDTO{public string...

View Article

How to return Unauthorized result in OnActionExecuting method

public override void OnActionExecuting(ActionExecutingContext filterContext) { var authenticateKey = filterContext.HttpContext.Request.Headers["AuthenticateKey"]; if...

View Article

How do I add a .NET Core 1.1 Class Library dll to ASP.Net core 1.1 project

Both project are on .NET core 1.1.The dll is added to the project in Dependencies -> Assemblies. When I publish the asp.net core web site, I can see the dll in the root folder. The web application...

View Article


Adding a reference to .net class library from ASP.net core web application

I have added a reference to a class library project in the same project as my asp.net core web application. It shows up under Dependencies/ProjectsHowever when I try to refer to any namespace/class...

View Article

[MVC Core] BaseControoler: Header + Footer

Hello guys,Thank you for your help, I am starting to learn ASP.NET Core. :)I started my web application without ASP.NET Core, but right now I prefer to upgrade to Visual Studio 2017 + Core.I am facing...

View Article


Does Angular2 can directly access the images under app folder ?

<div class="vote"> 0down votefavorite<div class="favoritecount"></div> </div> <div> <div class="post-text" itemprop="text">I am using a jquery theme in my ASP.NET...

View Article

Entit Framework Core

Hi,    how do I create an Edit for below.All the examples I have found don't seem to work?using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using...

View Article


Trying to port WebApi (ApiController based) code to .Net Core

It seemed like the answer to all my problems was Microsoft.AspNet.Mvc.WebApiCompatShimbut when I try to install it it says  Webapi.Client 5.2.2 is not compatible with net core app1.1.I am having so...

View Article

Image may be NSFW.
Clik here to view.

ASP.NET Core How to bind data from body

I am really disappointed about all new staff of ASP.NET Core, the reason I cant bind data from request body to my Model (the most ordinary thing).  I have checked all my configuration, I have updated...

View Article

asp.net core scaffolding issue

I created a new project of asp.net core web application using .net framework.Then I created a model with its attribute and also have created a key in the model.When I am trying to scaffold using the...

View Article
Browsing all 9386 articles
Browse latest View live


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