Suppose you have the code: Dim date_datetime as DateTime date_datetime = CDate(Textbox1.Text) And you get the error: Exception Details: System.InvalidCastException: Cast from string “dd/MM/yyyy” to type ‘Date’ is not valid Maybe you have some collision between Regional settings and your .Net settings… No problem – do not use CDate but use this piece of code: [...]
Archive for the ‘.Net’ Category
CDATE – System.InvalidCastException – Cast from string to type Date is not valid
Posted in .Net, Computer Science, Languages on April 19, 2007 | Leave a Comment »
How to register already installed ASP.NET framework on a new IIS installation
Posted in .Net, IIS, Windows on March 2, 2007 | Leave a Comment »
If you install the .NET Framework on a system that has IIS already installed, IIS is automatically configured to handle requests to ASP.NET pages, and to redirect the execution to the ASP.NET runtime. However, it may happen that you installed the framework on a Windows 2000 Professional system where IIS was not already present, and [...]