Unable to convert MySQL date/time value to System.DateTime

After switching from MySQL ODBC driver to the .NET connector I have been getting this error: Unable to convert MySQL date/time value to System.DateTime. This is when a DATETIME or DATE field contains an invalid value. It turns out that 0000-00-00 which I have used as default value in a DATE column is considered an… Continue reading Unable to convert MySQL date/time value to System.DateTime

How to Create a Favicon in Visual Studio 2005 ASP.NET Web Project

In Internet Explorer 7 the new tabs feature shows the sites icon, aka favicon.ico. (I know tabs has been around in Firefox and other browsers forever but I’ve been stuck with IE) I’ve been lazy and haven’t created favicons for my sites, but after using IE7 for a few days I realized that they’re pretty… Continue reading How to Create a Favicon in Visual Studio 2005 ASP.NET Web Project

Published
Categorized as ASP.NET

Failed to update database “XXX.MDF” because the database is read-only

After a few hours of Googling and testing things I finally solved this problem so I thought I’d write the solution down both for my own and other’s benefit. What I did to get the error:I had just done some changes to one of my web sites using Visual Studio 2005 and ASP.NET 2.0 with… Continue reading Failed to update database “XXX.MDF” because the database is read-only