.Net Core 2.1 – Cannot access a disposed object.Object name: ‘IServiceProvider’
I just migrated .NET Core 2.0 to .NET Core 2.1. Everything went fine, but when I try to login now I get the folowing error:
I just migrated .NET Core 2.0 to .NET Core 2.1. Everything went fine, but when I try to login now I get the folowing error:
When developing an application using .NET Framework 4.6 (MVC4/5), I used to add custom mime types in the web.config file, like this (this is the actual mime types I need to add in my app):
I currently have a method in my controller which accepts a form collection, saves the data, and then displays the data in a ‘Details’ page. At the moment, the code currently looks something like:
I have set up temporary user accounts on my sql database where the user names, passwords and date added of my websites users are stored. I was initially going to have these records delete programmatically but now im wondering if sql server 2008 has a built in function that allows records to be auto-deleted after … Read more
I’m using asp.net 3.5 and c# on my web site. Here is my question:
I’m writing an ASP.NET application. In my datalayer an sql connection is being opened and closed before and after querying. The SqlConnection is being kept as a private field of a single class. Every database call in the class uses the same structure:
I thought I would ask this question to see why many examples and people prefer to use inline databinding in the aspx code vs implementing an OnDataBinding event when using WebForms.
I need to implement Twitter API application-only authentication and I’ve searched through linq2twitter oauth samples and stackoverflow questions, but I didn’t find anything helpful about it.
A few days ago, I wrote about issues with implementing a ListView in ASP.NET. Now, with all of the other code written, I’m having trouble saving changed items in a ListView.