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

Get Docker container ID in code

I have the need to log the container ID my app is running in. Is there a way to get this via C#?

View Article


No data is available for encoding 10000

Hi,I'm trying to develop a send email function with .Net core Web API. Since .Net Core do not support SMTP yet, so I found a 3rd party plug in named MimeMessage to perform my task.However, I get an...

View Article


Is it correct to request access token upon EVERY API call in my web app...

I have a web API on the backend, and a web app and phone app on the front end. I am using Auth0 for OAuth/OpenId authentication on all three. Both web API and web app are written in ASP .Net Core 1.1...

View Article

Looking for Active Directory

Hi folks, I am looking for asp.net core with authentication use Active Directory.Is there any originally documentation example?I am waiting for your responseThanks in Advance!

View Article

Kestrel client certificate - show error page on invalid certificate

I implemented a client certificate authentication in my asp net core application and now I'm wondering if there is any possibility to return a Error Page if the Certificate is rejected by the default...

View Article


using Microsoft.AspNetCore.Identity.EntityFrameworkCore;

I'm porting over a site from MVC 5 and In one of my classes I have this used:public classWebRoleEntity : IdentityRole<Guid,WebUserRoleEntity>, IWebRoleIdentityRole in the old site used this:using...

View Article

Set custom date time format to each user

In my project I  need to create ability for site users to select the date time localization format (e.g. en-US, zh-Cn, etc.) And change date time format across the whole site according to this option...

View Article

Targeting .Net Core Framework

Cross posted from here.I've created a simple console application using .Net Core.  However, when I try to run this, I get the following error:The specified framework 'Microsoft.NETCore.App', version...

View Article


Image may be NSFW.
Clik here to view.

Edit multiple items: HttpPost not working

I'm constructing this view where the user can edit multiple item and save one at the time with the 'Update' button.)Problem: I have trouble making the 'Update' button work. Here is the post method:The...

View Article


Enity Framework 1.1 and migration

Hi fellow programmers! :)I've just installed Microsoft Visual Studio 2017 Community and try to get heads up on the newest technology.I'm not that familiar with MVC yet and definitely not familiar with...

View Article

IdentityServer4 with Active Directory

Hi Folks,I am following https://github.com/IdentityServer/IdentityServer4.Samples/tree/release/Quickstarts/6_AspNetIdentity and it goes well. I am thinking about that I want to login via active...

View Article

Alternate method for HttpContext.Current.Response in Asp.Net Core?

Can you please suggest how to use the HttpContext.Current.Response in AspNet Core ? I am using the name space  "using Microsoft.AspNetCore.Http" in my file.Thanks in advanceRegards,Karthik

View Article

Windows authentication mode in ASP.Net Core

Hi All,Am doing intranet site development, so wanna allow user based on their access right.I Have some user GroupAdmin: All access page Viewer: Only view access page Editable: Able to update data....

View Article


How do I access contents of database created with Entity Framework in ASP.NET...

In ASP.NET MVC 5 I could open .mdf file in server explorer. Where is the database located and how do I access it in ASP.NET Core project?

View Article

dotnet core only works in Visual studio

<div class="post-text" itemprop="text">We have an interesting issue where after upgrading to Visual studio 2017, a dotnet core application we have only works when using the build/debug feature in...

View Article


Windows Service,FileSystemWatcher for a remote URL and using WebClient

HiI am writing a windows service to monitor a folder on a https remote address that can be accessed using Proxy only.I think inorder to have access to the url I need to use the System. Net.Webclient...

View Article

When Database created in ASP.NET CORE 1.1 code first in Visual Studio 2017

Hello guys,I created ASP.NET CORE 1.1 code first Project in Visual Studio 2017,I made my model classes and AppContext class for Database, but my Database created only when i made Migration,But I...

View Article


System.Data.Entity equivalent in Core?

Hi,In MVC5, I reference the namespace System.Data.Entity and set the type belowIDbSet<TEntity> Set<TEntity>() where TEntity : ModelEntity;But what is the equivalent in Core? The interface...

View Article

Customise IdentityDbContext asp.net core

Hi, I would like to customize IdentityDbContext  with my own implemention  but I got an error why ?error message : Cannot use table 'AspNetRoleClaims' in schema '' for entity 'AspNetRoleClaims' since...

View Article

Migration not working using Core

Hi,Running migration, "Update-Database -Context ApplicationContext", why do I get this error at console "Value cannot be null".At OnConfiguring method, the DB connection string is stored to a variable...

View Article
Browsing all 9386 articles
Browse latest View live


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