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

Is windows authentication supported by Microsoft.AspNetCore.Proxy?

I have a SharePoint 2013 Server "spserver" configured to use Windows Authentication and a ASP.NET Core App that uses Microsoft.AspNetCore.Proxy.public void Configure(IApplicationBuilder app,...

View Article


EF Core Scaffold-DbContext table not included in the selection set

I recently upgraded to .Net Core 2.0, and I'm running into a lot of issues scaffolding an existing database. First of all, when I runScaffold-DbContext"Server=mysrv;Database=mydb;User...

View Article


I am building a new web application. Should i choose core framework or...

I am building a new web application. Should i choose core framework or framework 4.7? Keep in mind that i am not going to host the app on Windows Server and not on linux or mac and performance is not...

View Article

Handling sessions using session cookie

Hello,I have created a multi-threaded Client-Server Console application.But my client can not be only console application. It can be browser also. I am posting my Server source code here:using System;...

View Article

Render ViewComponent as string from controller

Hi, I want to render viewcomponent as string in the controller itself. Not in the cshtml.Here is the code I'm using now but it gets me a null reference exception in the the InvokeAsyncCore inside...

View Article


Building an Email Marketing App

Please I want to build an Email marketing App like Mailgun, Sendinblue.I am a c sharp coder and I have used mvc4 alot. Please is asp.net core the best tool for this job.Also how do I go about building...

View Article

How to handle seo friendly routing in asp.net core like asp.net mvc ?

I have seo friendly routing in asp.net mvc which basically ads title along with id but upon called it passes id to action but show title + id in url. Here is the code....

View Article

How to implement login functionality on React with Redux SPA template in...

Could anybody please help me to implement login functionality on React with Redux template in visual studio 2017 using .net core 2.0.

View Article


asp.net core 2 web app hanging on web publish

This has worked fine for months but today whenever I try to publish the web app to a Windows server using IIS publish it hangs on :node node_modules/webpack/bin/webpack.js --env.prodLeaving it 15 to 20...

View Article


Get selected value from HTML table and return details in view model to view

I have the following ViewModel that is passed into the View: public class UserIndexViewModel { public IEnumerable<User> Users; public User SelectedUser; }I have the following Controller that...

View Article

Adding client certificate for mutual SSL in ASP.NET Core SignalR client

Hello, I'm trying to find a way of using a X509Certificate2 as a client certificate in a Microsoft.AspNetCore.SignalR.Client application. Is it possible? I couldn't findThe server was written using...

View Article

Creating a dropdown search populated by table data

So, here's the craic: I'm building a site similar to Gumtree where users can post BluRay discs for sale. I need users to be able to search for items by a number of fields, one of the being...

View Article

Proxy Server error 407 in Core 2 - Azure

I am new to .Net Core 2 and having problems trying to access Azure AD with a fresh .Net Core 2 Visual Studio 2017 MVC web app.I am gettingHttpRequestException: Response status code does not indicate...

View Article


ASP.NET core 2.0 SQL connection

Hello,I Publish my asp.net core 2.0 app to production environment but i'm getting following error: An error occurred using the connection to database 'DB name' on server 'server...

View Article

Change the EF Core connection string at runtime from a Controller

Hello,I am using ASP.NET Core and EF Core for the creation of a Web API. I want to use thesame Web API (same controllers, same functionalities, etc.) formultiple databases. Therefore, what I want to...

View Article


Using common DbContext for EntityFramework and EntityFrameworkCore for...

HiWe have existing MVC 4 application with Entityframework 4.0 so we are using database first approach for that.The dbcontext structure is as below using System; using System.Data.Entity; using...

View Article

Page not calling API

I have an ASP.Net Core site with a page that has a button on it to upload documents to a database. The upload button, when clicked, calls an API on a different server, and that API processes the...

View Article


AWS + ECS + docker + linux + aspnetcore + ssl =...

Experiencing the following problem when communicating via ssl to a aspnet.core 1.1 application hosted with kestrel in a linux container (amazonlinux:2017.03) on AWS EC2 Container Service.---> (Inner...

View Article

Show login page for every URL when not authenticated

My application needs users to be authenticated from the start. There is no public area. The very first thing that the user needs to do is log in. So this should be done right from the start page. It...

View Article

EF Core database

hat's how I try to follow this article / guide on how to add the database to Azure DB.That's the way I have a database at Azure, but Right now, my Dbset will not get hold 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>