I’m using this MSDN Tutorial to run in VS2015 the command PM> Add-Migration MyFirstMigration -context BloggingContext that ran yesterday successfully but today it’s giving the following error that is...
What is the kestrel web server and how does it relate to IIS / IIS Express? I come from developing apps on IIS Express and hosting them on an...
In VS 2017, I created a new ASP.NET Core Web Application. On the second page of the wizard, I chose Web Application, and for Authentication, I chose “Individual User...
I feel like I’m missing something really obvious here. I have classes that require injecting of options using the .NET Core IOptions pattern(?). When I unit test that class,...
I had an Asp.Net core 2.2 project. Recently, I changed the version from .net core 2.2 to .net core 3.0 Preview 8. After this change I see this warning...
I’m building one RESTful API using ASP.NET Core MVC and I want to use querystring parameters to specify filtering and paging on a resource that returns a collection. In...
What exactly is the difference between .NET Core and ASP.NET Core? Are they mutually exclusive? I heard ASP.NET Core is built on .NET Core, but it can also be...
This question already has answers here: Access the current HttpContext in ASP.NET Core (7 answers) Closed 5 years ago. We are currently rewriting/converting our ASP.NET WebForms application using ASP.NET...
I am trying to enable cross origin resources sharing on my ASP.NET Core Web API, but I am stuck. The EnableCors attribute accepts policyName of type string as parameter:...
Back in RC1, I would do this: [HttpPost] public IActionResult Post([FromBody]string something) { try{ // ... } catch(Exception e) { return new HttpStatusCodeResult((int)HttpStatusCode.InternalServerError); } } In RC2, there no...