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

Using Service Context from AddDbContext

I have a DbContext added as a service in startup.cs using AddDbContext.services.AddDbContext<PartyDbContext>(options =>...

View Article


ConnectionString in Asp.Net Core

In Asp.Net MVC 5 in the connection string we could tell EF to create the DB .mdf file inside the project, by adding this inside the connection string:AttachDbFilename=|DataDirectory|\dbname.mdfWhen I...

View Article


Problem with creating migration ASP.NET Core, EF Core.

Hello. I am quite new to ASP.NET at all, however this is my first app with ASP.NET Core. I have problem with updating database after creating the migration. While I type command: dotnet ef database...

View Article

routerLink is not working in angularjs 2 with MVc View.

I am trying to give a link at top using Angularjs2 and MVC core=================app.component.ts======================= import { Component } from '@angular/core'; @Component({ selector: 'pm-app',...

View Article

Create roles and give permission for the users using asp.net core with entity...

Hi buddies,              I'm newbie to the asp.net core web api and entity framework core. We are planing to create rest api using asp.net core web API with entity frame work core 1.0. I want to create...

View Article


Image Processing

I'm new to .NET Core.  I really dig what I heard last week via Connect().  Sounds like impressive stuff.  Is there an implementation of System.Drawing anywhere in it?  I found a nuget package that says...

View Article

Is it best approach for create rest api serivices using asp.net core web api?

Hi buddies,             I'm newbie to the asp.net core web api, entity framework core and azure SQL. We are planing to create rest api using asp.net core web API, entity frame work core and Azure SQL....

View Article

Run asp.net core in visual studio 2012

If any possible to Create asp.net core projects in visual studio 2012

View Article


Running self contained ASP.NET core web app in windows startup without...

I have this asp.net core core web app that successfully run self contained, i want to run this app every time my windows 10 pro machine startup but i don't want the console because it is ugly and...

View Article


After installing Dot net core not able to run 'dotnet'

Hi,Installed, DotNetCore.1.0.1-SDK.1.0.0.Preview2-003133-x64 and DotNetCore.1.0.1-VS2015Tools.Preview2.0.2 on windows 10. After installing, if i run 'dotnet' command from command prompt below exception...

View Article

How to live stream on ASP.NET Core ?

Hi everyone,I'm making a website which uses ASP.NET Core as a back-end for video/audio streaming.VideoController.cspublic class VideoController: Controller { // Singleton registered at Startup.cs...

View Article

Creating a core 1.0.0 app

I am trying to get an empty Core app running. I created an empty core app from VS 2015. Made no modifications. when I build, I get and error restoring package. This is from the output window.  Am I...

View Article

Microsoft.AspNetCore.Mvc Controller with same method name but different...

How can I have my controller actions get triggered by parameter names.public IActionResult Test(int a1) ... http://test.com?a1=3public IActionResult Test(string s1, string s2)...

View Article


Custome Email Confirmation Token

Hii All,Can we use default asp GenerateEmailConfirmationTokenAsync to create our own token email confirmation ?Thx.

View Article

Uncaught Error: Sys.InvalidOperationException: DocMapUpdatePanelId is not a...

I get the error abovewith the following snippet of code.The code works fine on localhostand runs without errors but on the windows 2012 server Iget the above error.This application is setup within...

View Article


Problem with BundlerMinifier.Core v2.2.296

I've got a Core web project, but using .NET 4.6.1 (to reuse a shared DAL project with EF6.1). The generated new project code includes "BundlerMinifier.Core": "2.2.281" in project.json.This works, but...

View Article

How to implement OpenID Connect on asp.net core web application

Dear buddies,                     I'm newbie to the OpenID Connect. I'm going to create asp.net core web application and I need to authenticate the users by using OpenID Connect. I have got some basics...

View Article


basic authorization in ASP.NET Core

just reading this one https://code.msdn.microsoft.com/How-to-achieve-a-basic-719991c1see this line of code because i have few questionspublic void Configure(IApplicationBuilder app, IHostingEnvironment...

View Article

Cannot use .net core class lib objects in .net core api project.

First time using .net core.Created a new solution and then added a api project (.net core), added all the basic stuff to get it work (EF, models, etc)Then wanted to split things out a bit and moved my...

View Article

.net core ORM

Hi,Been out of the .net game a while.  Playing a bit with .net core, building an api.Was wondering if there a nice lightweight fast ORM like Dapper dot net that depends on core, not the full framework...

View Article
Browsing all 9386 articles
Browse latest View live


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