On one of my web sites I noticed that IDN (Internationalized Domain Names) don’t work when I do Response.Redirect in VB.NET. IDNs are used to allow accented and other special international characters (non-Ascii) to be used in domain names. Since Domain Name Servers (DNS) only support Ascii, any IDN is encoded in Punycode. To encode… Continue reading Punycode in VB.NET for IDN domains
Category: ASP.NET
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
.NET and MySQL in Five Easy Steps
I’ve been using the MySQL ODBC driver for a long time now in my ASP.NET projects (as posted about here). But today when I was about to start a new project on my new Vista machine I thought I’d check if anything new had emerged the last years when it comes to MySQL drivers for… Continue reading .NET and MySQL in Five Easy Steps
BC30456: InitializeCulture is not a member of xxx
Lately I’ve been getting this error on one of my ASP.NET 2.0 web sites: BC30456: ‘InitializeCulture’ is not a member of xxx I’ve been getting it intermittently, ie. sometimes the page works fine and sometimes all I get is this error. I’ve been troubleshooting it for awhile but it finally looks like I have gotten… Continue reading BC30456: InitializeCulture is not a member of xxx
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
How to access MySQL from .NET (ASP.NET using VB.NET)
[Update: Go to this new post instead on how to use MySQL ADO.NET drivers] This is a three step description of what you need to do to access a MySQL server from VB.NET. I used Microsoft Windows Server 2003 with Microsoft Visual Studio 2003 Professional and MySQL Server 4.1.7. It is possible to use ODBC,… Continue reading How to access MySQL from .NET (ASP.NET using VB.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