tagged [asp.net-core-1.0]
How to return an Excel file from ASP.NET Core Web API web-app?
How to return an Excel file from ASP.NET Core Web API web-app? In similar questions, with this code works to download a PDF: > I'm testing with local files (.xlsx, .pdf, .zip) inside the Controller fo...
- Modified
- 17 Sep at 09:21
Using connection string from appsettings.json to startup.cs
Using connection string from appsettings.json to startup.cs Currently in Startup, I have my sql server string looking like this: ``` public void ConfigureServices(IServiceCollection services) { var ...
- Modified
- 16 Aug at 11:5
Read appsettings.json in Main Program.cs
Read appsettings.json in Main Program.cs First of all my main purpose is to setup the IP and Port for my application dynamically. I'm using `IConfiguration` to inject a json config file, like some tut...
- Modified
- 19 Jan at 09:54
ASP.NET Core 404 Error on IIS 10
ASP.NET Core 404 Error on IIS 10 I have a problem with ASP.NET Core web application running on IIS 10. I am developing a Single Page Application with AngularJS. The index.html loads perfectly but the ...
- Modified
- 22 Jul at 23:49
Run NUnit tests in .NET Core
Run NUnit tests in .NET Core I am trying to run unit tests for my C# project with .NET Core. I am using a [Docker](https://en.wikipedia.org/wiki/Docker_%28software%29) container for the runtime. Docke...
- Modified
- 30 May at 16:51
How to log the HTTP Response Body in ASP.NET Core 1.0
How to log the HTTP Response Body in ASP.NET Core 1.0 I'm creating a public REST Api using ASP.NET Core 1.0 RC2 and like to log incoming requests and outgoing responses. I have created a middleware cl...
- Modified
- 23 May at 10:31
Error handling (Sending ex.Message to the client)
Error handling (Sending ex.Message to the client) I have an ASP.NET Core 1.0 Web API application and trying to figure out how to pass the exception message to the client if a function that my controll...
- Modified
- 16 Jul at 11:50
Change default format for DateTime parsing in ASP.NET Core
Change default format for DateTime parsing in ASP.NET Core I get a Date in an ASP.NET Core Controller like this: The framework is able to parse the date, but only in English format. When I pass as dat...
- Modified
- 8 Dec at 19:45
ASP.NET Core RC2 Seed Database
ASP.NET Core RC2 Seed Database My problem is i am trying to seed an Entity Framework Core database with data and in my mind the below code show work. I've realised that this should not be called in th...
- Modified
- 26 Jun at 18:46
Configuring AutoMapper 4.2 with built in IoC in ASP.NET Core 1.0 MVC6
Configuring AutoMapper 4.2 with built in IoC in ASP.NET Core 1.0 MVC6 I am trying to figure out the proper way to configure AutoMapper in my application's Startup.cs file and then use it throughout my...
- Modified
- 13 Feb at 13:23
Override global authorize filter in ASP.NET Core 1.0 MVC
Override global authorize filter in ASP.NET Core 1.0 MVC I am trying to set up authorization in ASP.NET Core 1.0 (MVC 6) web app. More restrictive approach - by default I want to restrict all controll...
- Modified
- 21 Jan at 15:49
ASP.NET Core Configuration Section in Startup
ASP.NET Core Configuration Section in Startup I am migrating a ASP.NET 5 RC1 project to ASP.NET Core, and have come across an interesting issue I've not yet seen, or found a solution for. In order to ...
- Modified
- 3 Nov at 13:29
Use a Identity 2.0 Database to Authenticate a ASP.NET Core 1.0 application
Use a Identity 2.0 Database to Authenticate a ASP.NET Core 1.0 application I am trying to a create a new ASP.NET Core 1.0 web application and I want it to use the Authentication tables that I already ...
- Modified
- 12 Jul at 15:5
No service for type 'Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionaryFactory' has been registered
No service for type 'Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionaryFactory' has been registered I'm having this problem: In asp.net core 1.0, it seems that when the action try to render the...
- Modified
- 1 Aug at 23:22
How to add IHttpContextAccessor in the Startup class in the DI in ASP.NET Core 1.0?
How to add IHttpContextAccessor in the Startup class in the DI in ASP.NET Core 1.0? In ASP.NET Core RC 1 I used the following code to retrieve the value of context (full address of the page). Then I r...
- Modified
- 20 Jun at 09:12
How to read a connectionString WITH PROVIDER in .NET Core?
How to read a connectionString WITH PROVIDER in .NET Core? I added in Connections.json contains: ``` { "ConnectionStrings": { "DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=DATABASE;...
- Modified
- 28 Nov at 17:11
implementing roles in identity server 4 with asp.net identity
implementing roles in identity server 4 with asp.net identity I am working on an asp.net MVC application with identity server 4 as token service. I have an api as well which has some secure resources....
- Modified
- 1 Jan at 10:11
Is it possible to filter nuget packages by supported platform?
Is it possible to filter nuget packages by supported platform? For example, if I want only packages for [.Net Platform Standard](https://github.com/dotnet/corefx/blob/master/Documentation/architecture...
- Modified
- 6 Jun at 12:22
ASP.NET Core Cannot Read Request Body
ASP.NET Core Cannot Read Request Body I have been working on ASP.NET Core from a few weeks. I was trying to achieve something based on this blog: [Microservices](https://auth0.com/blog/2015/09/04/an-i...
- Modified
- 18 Mar at 11:47
How to use IdentityServer4 with and Javascript client with ClientCredentials ASP.NET Core
How to use IdentityServer4 with and Javascript client with ClientCredentials ASP.NET Core I am implementing IdentityServer4 an I am making 3 diferents proyects: - [http://localhost:5000](http://localh...
- Modified
- 16 Aug at 07:55