Top "Asp.net-core" questions

ASP.

IIS fails to run ASP.NET Core site - HTTP Error 502.5

We have a Windows 2012 R2 machine. I had an existing ASP.NET Core site on it that had a working …

asp.net-core asp.net-core-mvc
Export html to pdf in ASP.NET Core

I want to export a piece of html to a pdf file but i do not any compatible nuget package. …

asp.net-core pdf-generation
Parse and modify a query string in .NET Core

I am given an absolute URI that contains a query string. I'm looking to safely append a value to the …

c# asp.net asp.net-core
How to unit test with ILogger in ASP.NET Core

This is my controller: public class BlogController : Controller { private IDAO<Blog> _blogDAO; private readonly ILogger<BlogController> _…

c# unit-testing asp.net-core moq ilogger
How can I get the baseurl of my site in ASP.NET Core?

Say my website is hosted in the mywebsite folder of www.example.com and I visit https://www.example.com/…

asp.net asp.net-core asp.net-core-mvc
Swashbuckle/Swagger + ASP.Net Core: "Failed to load API definition"

I develop an ASP.NET Core 2 application and included Swagger. Everything worked fine until I introduced a method without explicitly …

c# asp.net-core swagger swashbuckle
How to get absolute path in ASP.Net Core alternative way for Server.MapPath

How to get absolute path in ASP net core alternative way for Server.MapPath I have tried to use IHostingEnvironment …

c# asp.net asp.net-core .net-core asp.net-core-mvc
How to add link parameter to asp tag helpers in ASP.NET Core MVC

I have a lot of experience with ASP.NET MVC 1-5. Now I learn ASP.NET Core MVC and have …

c# asp.net-core asp.net-core-mvc url-parameters tag-helpers
MySql.Data.MySqlClient.MySqlException: “The host localhost does not support SSL connections.”

I use MySql.Data 8.08 and .NET Core to connect to MySql 5.7.18 but following exception is being thrown: MySql.Data.MySqlClient.…

c# mysql asp.net-core mysql.data
Error CS0234: The type or namespace name 'AspNetCore' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

I'm trying to upgrade the following template project to ASP.NET Core 1.1: https://github.com/wilanbigay/aspnet-core-aurelia-typescript-starter After running dotnet …

asp.net-core asp.net-core-1.1