tagged [asp.net-core-mvc]
'HttpPostedFileBase' in Asp.Net Core 2.0
'HttpPostedFileBase' in Asp.Net Core 2.0 I'm recently working on a ReactJS app that's calling an API (developed with .NET Core 2.0). My question is how to use `HttpPostedFileBase` in an .NET Core 2.0 ...
- Modified
- 26 Apr at 23:23
Cookies in ASP.Net MVC 5
Cookies in ASP.Net MVC 5 I am developing an application in which users are SignUp or SignIn by External Identity Providers like AAD, Google, WS-Federated Authentication etc. Now I want to create cooki...
- Modified
- 2 Mar at 12:42
System.Net.Http vs Microsoft.Net.Http
System.Net.Http vs Microsoft.Net.Http I am using ASP.NET Core. I want to use `HttpClient` but I noticed that there are two NuGet packages being offered. Which one do I use? - [System.Net.Http](https:/...
- Modified
- 22 Jan at 14:36
The operation could not be completed. invalid pointer - Visual Studio 2015 Update 3
The operation could not be completed. invalid pointer - Visual Studio 2015 Update 3 [](https://i.stack.imgur.com/HIEcu.jpg) Getting this error when opening `.cshtml` file: > The operation could not be...
- Modified
- 27 Feb at 10:19
View POST request body in Application Insights
View POST request body in Application Insights Is it possible to view POST request body in Application Insights? I can see request details, but not the payload being posted in application insights. Do...
- Modified
- 23 Jun at 13:39
Set Default/Null Value with Select TagHelper
Set Default/Null Value with Select TagHelper In asp.net mvc you can use: Using asp.net 5, how do I include the default or null value in a taghelper: ```
- Modified
- 18 Jan at 01:4
Injection of IUrlHelper in ASP.NET Core
Injection of IUrlHelper in ASP.NET Core In , `IUrlHelper` could be injected in services (with `services.AddMvc()` in startup class) This doesn't work anymore in . Does anybody know how to do it in as ...
- Modified
- 19 Oct at 13:0
ISO UTC DateTime format as default json output format in MVC 6 API response
ISO UTC DateTime format as default json output format in MVC 6 API response Does anyone know how to configure MVC6's json output to default to a ISO UTC DateTime string format when returning DateTime ...
- Modified
- 3 Dec at 14:9
Seed initial data in Entity Framework 7 RC 1 and ASP.NET MVC 6
Seed initial data in Entity Framework 7 RC 1 and ASP.NET MVC 6 It seems that in Entity Framework 7 there is no native support for seed data yet ([https://github.com/aspnet/EntityFramework/issues/629](...
- Modified
- 30 Dec at 19:34
Raw SQL queries and Entity Framework Core
Raw SQL queries and Entity Framework Core I migrate my application to ASP.NET MVC Core and Entity Framework Core and i found problem. I have raw SQL query to entity like this But there is no `SqlQuery...
- Modified
- 10 Feb at 02:37
Attribute Routing Inheritance
Attribute Routing Inheritance I always used this approach in my MVC applications before for action returned Now in .NET Core it ignores base class route attribute
- Modified
- 25 Mar at 20:44
How to Pass View Data to Partial View in Asp.net core?
How to Pass View Data to Partial View in Asp.net core? I am to new .NET core using 2.2 version. I am trying to pass data to partial view with following code : but its giving syntax error. can someone ...
- Modified
- 16 Oct at 18:5
Alternative solution to HostingEnvironment.QueueBackgroundWorkItem in .NET Core
Alternative solution to HostingEnvironment.QueueBackgroundWorkItem in .NET Core We are working with .NET Core Web Api, and looking for a lightweight solution to log requests with variable intensity in...
- Modified
- 15 Aug at 15:44
ASP Identity in MVC6 - Login Path property not working
ASP Identity in MVC6 - Login Path property not working After updating from beta 5 to beta 8 I can't set my custom login path in cookie authentication options. This value is completely ignored. Still g...
- Modified
- 20 Oct at 21:23
ASP.NET Core Get Json Array using IConfiguration
ASP.NET Core Get Json Array using IConfiguration In appsettings.json --- In Startup.cs --- In HomeController ``` public class HomeController : Controller { private
- Modified
- 27 Dec at 01:7
How to implement a "pure" ASP.NET Core Web API by using AddMvcCore()
How to implement a "pure" ASP.NET Core Web API by using AddMvcCore() I've seen a lot of ASP.NET Core Web API projects that use the default `AddMvc()` service without the realizing that using `AddMvcCo...
- Modified
- 25 Feb at 14:46
ASP.NET Core equivalent of ASP.NET MVC 5's HttpException
ASP.NET Core equivalent of ASP.NET MVC 5's HttpException In ASP.NET MVC 5 you could throw a [HttpException](https://learn.microsoft.com/en-us/dotnet/api/system.web.httpexception) with a HTTP code and ...
- Modified
- 28 Mar at 07:20
How to set .NET Core in #if statement for compilation
How to set .NET Core in #if statement for compilation I created a multi-targeted framework project. I use something like this: But I can't find a wildcard for .NET Core. I tried: But it is not valid s...
- Modified
- 27 Dec at 11:27
Async provider in .NET Core DI
Async provider in .NET Core DI I'm just wondering if it's possible to have `async/await` during DI. Doing the following, the DI fails to resolve my service. where as the following works perfectly fine...
- Modified
- 22 Jun at 19:49
ASP.NET Core web api action selection based on Accept header
ASP.NET Core web api action selection based on Accept header I want to return two different formatted responses for the same feature (a list of entities) based on the accept header of the request, it ...
- Modified
- 24 May at 11:8
Referencing another project in .Net Core
Referencing another project in .Net Core I have 6 projects in a blank solution. I just want to reference a project to another. I have `HomeController` in projects. I want to access another project's m...
- Modified
- 10 May at 22:48
Increase upload file size in Asp.Net core
Increase upload file size in Asp.Net core Currently, I am working with Asp.Net Core and MVC6 need to upload file size unlimited. I have searched its solution but still not getting the actual answer. [...
- Modified
- 2 Feb at 22:35
Is it possible to serve static files from outside the wwwroot folder?
Is it possible to serve static files from outside the wwwroot folder? I have an ASP.NET MVC 6 project with the following structure: I want to serve files from `custom` as it if was a virtual folder in...
- Modified
- 11 Aug at 19:7
Dependency injection, inject with parameters
Dependency injection, inject with parameters I'm using vNext implementation of DI. How to pass parameters to constructor? For example, i have class: ``` public class RedisCacheProvider : ICacheProvide...
- Modified
- 4 Jul at 11:6
asp.net Core mvc hide and exclude Web Api Controller Method
asp.net Core mvc hide and exclude Web Api Controller Method I know there is the attribute But that does not stop a client of the api to call the endpoint method. I need to know if there is an attribut...
- Modified
- 21 Apr at 09:5