asp.net-core-1.1 Questions
2
I used Glimpse on the old ASP.NET MVC5 stack and liked it very much cause it gives a pretty and detailed representation of nearly all important data for debugging purpose. Sadly, its not compatible...
Quits asked 17/1, 2017 at 11:16
2
Solved
In ASP.NET Core, I am using IHttpContextAccessor to access the current HttpContext. HttpContextAccessor uses AsyncLocal<T>.
In one situation, I am trying to start a Task from within a reques...
Bidet asked 26/6, 2017 at 10:43
3
Solved
How to change target framework with VS 2017 RC in new core asp "csproj" projects?
I mean to change after project was created. There are no project.json file which was used for that in VS 2015. In ...
Torticollis asked 2/1, 2017 at 21:32
2
Solved
I'm developing a multi-tenant application in ASP.NET Core 2.1. I'm utilizing AspNetCore.Identity.EntityFrameworkCore framework for user management. I want to add a unique index combining Normalized...
Glossitis asked 7/8, 2018 at 15:0
2
Solved
I've created an ASP.NET Core MVC application and deployed it into Linux server. When I go to sitename.com browser shows up the Home/Index page without any problem.
But when I try to go sitename.co...
Bespread asked 4/5, 2017 at 11:3
3
I find that one of the key benefit of Asp.Net core is multi fold performance improvement (requests per second) compared to traditional Asp.Net. I find many bench mark sites talks about Asp.Net core...
Fantom asked 13/5, 2017 at 5:13
2
Solved
I am working on an ASP.Net Core 1.1 web API. I have a ServiceTypeCode controller as shown below;
[Produces("application/json")]
[Route("api/[controller]")]
public class ServiceTypeCodeController :...
Donetta asked 7/7, 2017 at 16:51
4
Solved
I have created a Class Library project with the following .csproj:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp1.1</TargetFramework>
&...
Velocity asked 27/3, 2017 at 17:39
1
Solved
Let's say I have the following roles:
Admin
User
I want Admin role to impersonate specific user account with User role, but without knowing that specific user account's password.
Admin should...
Thurnau asked 31/5, 2017 at 17:6
2
When using Kestrel with IIS you define an Application Pool and identity (user). The default identity is "ApplicationPoolIdentity" but can be one of the following or a custom user:
When the appli...
Onlybegotten asked 7/11, 2017 at 14:0
1
Solved
I'm trying to download a nodeServices generated pdf file that is in the form of byte array. here is my original code:
[HttpGet]
[Route("[action]/{appId}")]
public async Task<IActionResult> P...
Corridor asked 3/10, 2017 at 16:40
1
Solved
In an ASP.NET CORE web application, I have a MyRepository class and an Interface IMyRepository that manages the access to the repository (database).
Each time a user connects to the application(on...
Lunge asked 22/8, 2017 at 15:39
0
Although there are tag helpers now, you still need HtmlHelper from time to time, e.g., inside your tag helpers. I'm trying to write tests for one of my tag helpers which calls into HtmlHelper.
In ...
Sami asked 3/8, 2017 at 6:28
2
I would like do display in the footer of an ASP.NET Core 1.1
© 2017 MyApplication
<p>&copy; 2017 @(ApplicationName)</p>
How do I get the application name?
I found an ...
Esse asked 24/7, 2017 at 17:56
1
Solved
In an ASP .NET Core 1.1 project (VS 2017) I try to use the ShortName attrubute of the Display property in order to use the DisplayFor HTML Helper:
[Display(Name="Project Name", ShortName="Name", D...
Loire asked 21/7, 2017 at 9:57
1
Solved
Is there anyway to see what SQL query EF Core is generating? (ASP .Net Core 1.1)
Rolypoly asked 12/7, 2017 at 11:46
0
My application often fails with failed to unprotect session cookie (I am using two applications with different assembly versions).
Error unprotecting the session cookie. The key {hex_key} was no...
Romaine asked 26/6, 2017 at 15:4
2
Solved
I have an ASP .Net Core 1.1 MVC Web API. How can I have a string route constraint in a controller action?
I have the following two actions:
/ GET: api/Users/5
[HttpGet("{id:int}")]
[Authorize]
pu...
Birnbaum asked 22/6, 2017 at 8:53
1
Could someone please help me convert this ASP .Net Core example (to be used in my Web Api to consume a management API from Auth0) which uses RestSharp into one using HttpClient?
var client = new R...
Omnifarious asked 20/6, 2017 at 14:39
2
I have an Angular 4.1.1 app sitting on .NET Core 1.1 which I recently migrated from VS2015 w/update 3 to VS2017. My csproj builds and runs fine on my local machine but fails when setting up a build...
Shanta asked 27/5, 2017 at 20:21
0
I'm trying to make a shared library for a .NET MVC Core 1.1 app that contains a controller that needs to be registered in the host MVC app.
I've found some examples of this for earlier versions of...
Sarina asked 21/5, 2017 at 14:46
3
Solved
I have just upgraded my Project to .Net Core 1.1 and all my tests are not discovered now. It was working fine when it was in the old version (.Net Core 1.0)
The following is the message in VS 2015...
Aguayo asked 9/12, 2016 at 15:38
2
Solved
Has anyone seen a problem in .NET Core 1.1 where beneath the netcoreapp1.1\publish folder they end up with a bin folder that seems to loop on itself and eventually causes a path too long message to...
Three asked 4/3, 2017 at 8:48
1
Using ASPNet Core 1.1 Web API template and trying to create a response on Post. Getting the below error while building the project. Thanks for your help !
Controllers\MessagesController.cs(37,28...
Larch asked 9/2, 2017 at 18:48
3
Solved
Recently updated dotnet core 1.0.1 to 1.1 and ViewComponent in MVC starts failing with the below exception:
InvalidOperationException: One or more errors occurred. (The model item passed into the ...
Bushtit asked 21/11, 2016 at 13:39
© 2022 - 2024 — McMap. All rights reserved.