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

Another Microsoft Bug - Directory.CreateDirectory() will not work on a...

My app will upload pictures to the server, then display it back to the client, showing the pictures just uploaded. However, The function "Directory.CreateDirectory(virtualDirectory);" will not create a...

View Article


Using ASP.NET Core and scaffolding changes the order of fields entered in...

I've created an ASP.Net Core web application and am having a problem with scaffolding changing the order of fields in the model classes. I have several fields in some files and want them presented in...

View Article


Rewite URL web asp.net on hosting linux ??

I have a web asp.net, i want rewite URL web asp.net on hosting linux. help me.

View Article

Bower command line vs ui

Hi,I'm using bower as client package manager for my web app, but i'm having problem.using UI some packages are lacking (es datatables.net), using  the command line the same packages are available but...

View Article

On calling get method in ASP.NET core MVC6, it call post method also

I am using ASP.Net Core and MVC6 for development.I have an anchor tag with parameter in href where I am editing the form and redirecting it to another page but after get method getting call it calls...

View Article


Need help to validate user against Active Directory & LDAP in ASP .NET Core...

Hi,I have started using ASP .NET Core Web Application with .NETCoreApp V1.0.Now my requirement is to take a username and credentials from login screen and validate it against a active directory and...

View Article

ASP.NET Core website is intermittently failing to load its pages

I  have created a simple website (about 100 pages, but no databases or other fancy features) in .NET Core 1.0 and upon publishing it on my hosting provider’s server I find that it is having trouble...

View Article

How to refresh the access token?

I'm using the OpenId Connect hybrid flow. The middleware gets the access token and refresh token that I store in a database. Later, I use the access token to connect to a back-end web API.When the...

View Article


Middleware for Batch HTTP Requests

Hi,We are trying to implement middleware that will support batch requests. My current approach is to create a new http context (a type derived from DefaultHttpContext) for each sub request and execute...

View Article


Update authentication cookie

When I set "SaveTokens = true" in the OpenIdConnectOptions, the access token and refresh token are stored in the authentication cookie. If I get a new access token (using the refresh token), how can I...

View Article

Generate PDF on server side

Hi, I want to generete PDF on server side. I`m looking for free solution, the biggest problem is that many libraries(e.g. iTextSharp or PdfSharp(for core) ) doesn`t work with asp.net core preview2, so...

View Article

Warning on upgrading BundlerMinifier.Core

If you start with a new ASP.NET Core project and update BundlerMinifier.Core via NuGet, you'll get a publish error    No executable found matching command "dotnet-bundle".  I've had to recreate my...

View Article

Connection Strings Migration

I will start by saying the biggest problem I have may be that I'm not even sure what to search for any more.  Which term should I be using:  "ASP.NET Core", "Web API 2", "MVC 6" "Web Application",...

View Article


ConfigureServices not running from Startup.cs

Hi Guys,This is my first time posting, so forgive me if I am not in the correct place.So I'm working on a project, and I am trying to utilize policy based authorization. I need to add these policies to...

View Article

'Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserLogin'...

I'm trying to write a .net core 1 web app. I have separated out the layers and all was working fine until I introducedIdentity into the bag.Down in my repository layer I have a IServiceCollection...

View Article


ASP.NET Core (.NET Framework) and Localization

Why the libraries that I'm using in my ASP.NET Core project (.NET Framework) do not return messages translated as the selected culture?For example:ResourceManager rm = new...

View Article

Deploying a Asp.Net Core Web Application to IIS

Hello Everyone,I just update to Visual Studio 2015 SP3 and created the asp.net core template.Now I would like to deploy it to my Windows Server 2012 R2 on IIS.All the explanations I find are usually...

View Article


.NET Core and WCF - problem

I want to connect my ASP.NET Core application to WCF service. I tried this way:...

View Article

AspNet Core ServicePointManager.ServerCertificateValidationCallback

Hello,How can I use ServicePointManager.ServerCertificateValidationCallback now in AspNet Core?I am trying bypass my invalid certificate.Thanks

View Article

Asp.net core : Calling web api returns 500

I am new to asp.net core application.I have an asp.net core application which uses repository pattern. It have an api controller named ApplicationsAPIController.ApplicationsAPIController has a...

View Article
Browsing all 9386 articles
Browse latest View live


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