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

Solution Print In .Net Core 2.0

I want to print a .pdf file in server-side (api or mvc).I have tried to research but can not find any solution.I need a solution, please.

View Article


APIs throwing CORS error from one web server but are accessible from another...

Hello All,        I have created a web API in the asp.Net core and enabled cors in the startup.cs file. After deployment windows server APIs are accessible via AJAX from another domain. But when I am...

View Article


How to get registered services in integration test

I want to add an ApplicationUser user in my integration test, so i need to use ‘UserManager.CreateAsync()’.I already know how to get the ApplicationDbContext, from the ‘integration testing’ docs...

View Article

install .net core sdk on centos 7.2

Hi All,Can we install .net core SDK on CentOS 7.2 ? As per link they support only 7.1 https://www.microsoft.com/net/core#linuxcentos Regards,Sidh

View Article

Razor Pages for Small Business Application

I need some guidance on choosing between MVC and Razor Pages for a small business application.I read a thread on reddit (link below) about using razor pages. There was quite a bit of disdain for razor...

View Article


Adding Identity - Cannot create a DbSet for 'ApplicationRole' because this...

I am trying to create an ASP.NET Core application from scratch. It helps to understand everything.  Unfortunately, I am getting an error when I attempt to see my database.  The error is shown below.  I...

View Article

Self contained Web app - not able to change port number

It's hard to find documentation on what command line arguments work where, but I believe I should be able to change the "binding" used by my self contained / self hosted application by passing --urls...

View Article

Using session with Cross-Origin Requests

How to get Session in ASP.NET Core 2.0 on Cross-Origin Requests?

View Article


javascript input don't get rendered correctly in asp.net view.

I use a pie chart using google charts. In my page I load the chart as described in the docs. It's a view in asp.net that renders the output. The view checks if a class called Avstemning is populated...

View Article


Accessing AAD in a ASP.NET Core 2.0 WebAPI project with AAD authentication

Hi there,I am developing a MVC/WebAPI project, that authenticates the user against an AAD. This works perfectly (because it was set up by the project creation assistant ;)). But now I am faced with the...

View Article

Roles and RoleManager in ASP.NET Core 2

My next step in this journey is to create some roles and a simple user.  Unfortunately, I get an error regarding my tables not having primary keys as shown below.  I don't understand how to fix it.  I...

View Article

Visual studio contener Tools requires Docker CE for windows

Hi everyone if anyone reads me help me please i need it. I am a student, I work on an asp mvc core 2.0 project on VS 2017, except that my application does not run. Vs returns the following...

View Article

An unhandled exception occurred while processing the request.

Hi i start learning dot net core.When i create a new project in Visual Studio Code, I try running the project but I got the following erorr"InvalidOperationException: The layout view...

View Article


How do I view my role as a claim when using Azure Active Directory...

My ASP.NET Core on .NET Core 2.0 app is authenticating with Azure Active directory with the following code:/// /// Azure AD Configuration /// var clientId = "YYYYY"; var tenantId =...

View Article

isapiModule in Kestrel

Hican i enable  ISAPI extension in Kestrel ?How can i load and run an isapi extension (like delphi isapi extension dll)  in kestrel

View Article


Error handling in ConfigureServices

Hi, what is the best way to handle exceptions inside ConfigureServices method?If I use UseDeveloperExceptionPage I can see the exception details, but if I use UseExceptionHandler the correct handler...

View Article

asp.net core 2 web app and angular 4

I have a asp.net core 2 web app (against full .net framework) that I created using the Angular SPA template is VS2017. I have added in lots of controllers, views & models.Whilst everything works...

View Article


Use Gateway in Service fabric with https

This application is  running in Service Fabric. One website (WebService) does not have a port configured for its endpoint and as it is running on 5 nodes each node gets a dynamic port from the cluster...

View Article

Asp.net core application windows integrated authentication 20 users start...

I developed asp.net core intranet application which uses windows authentication and We have this weird problem start seeing.When my client deploy the app to the production environment and test with a...

View Article

Envelope aspx pages

Hey everyoneI have a project that has a bunch of aspx pages in it, including a login page. What is happening right now is that login pages takes the user to several other subsequent pages and so...

View Article
Browsing all 9386 articles
Browse latest View live


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