I'm developing a test Project using asp.net core. For Connecting to database I'm using Entity framework. I add appsetings.json file to the project and change th
I'm newer to EF Core, so please forgive me if there is a trivial answer. Take this scenario.... A new web-application is being developed using the latest vers
In my ASP.NET Core MVC (2.2) app I have completed the setup for a global error handling class. I inject this class in the Startup.cs of my project by using app.
I am trying to scaffold and I get the following error: There was an error running the selected code generator: 'No parameterless constructor defined for typ
Is it possible to apply authorization against two or more policies? I am using ASP.NET 5, rc1. [Authorize(Policy = "Limited,Full")] public class FooBarControll
There has been a question at SO Why is Razor Pages the recommended approach to create a Web UI in Asp.net Core 2.0? where Steve Smith has kind
I need to inject out of constructor, everything I declared in Setup. Ho can I do it ? How can I inject services out of constructor ? Something like Injector s
I am using package Microsoft.AspNet.StaticFiles and configuring it in Startup.cs as app.UseStaticFiles(). How can I change the headers of the delivered files ?
I'm trying to render a HTML from a view without using a web request. I need the HTML as a string, internally, I do not wish to serve it. The viewEngine.FindView
I've got a ASP.Net Core MVC app and I have the need to have certain elements update on a click. For example, a create a person form that searches for an existin
Well, lets get down to it. I'm using Visual Studio 2015 and ASP.NET core tag helpers have completely stopped working, no idea why as I've not changed anything.
I created an .NET Core MVC application and use Dependency Injection and Repository Pattern to inject a repository to my controller. However, I am getting an err
Here is my code IFormFile. public static async Task<string> UploadFileToBlobStorage(IFormFile file) { string container = "abccontainer
I want to build my project from TFS Azure(VSTS). I have made one project which is under Asp.Net Core. I have made Build definition with Asp.Net Core Template a
I've just starting learning MVC6 with EF7. I have a stored proc that I'd like to return a portion of the fields that are in my model. If I don't return every
I am trying my hand at .net core web api. I have created a static method for registering my controllers like this: public static class RegistrationExtensions {
In my ASP.NET Core application, I get the following error: InvalidOperationException: Unable to resolve service for type 'Cities.Models.IRepository' while atte
I want to put my appsettings.json file outside of the web folder so that I can avoid storing it in source control. How can I do this?
Can you please let me know how to get client IP address in ASP.NET when using MVC 6. Request.ServerVariables["REMOTE_ADDR"] does not work.
I have a .NETcore MVC project contains controller and API controllers in the same site, which uses basic identity authentication / authorization. The API contr