Asp.net using Linq to SQL

Discussion in 'ASP.NET / ASP.NET Core' started by Tornal, May 6, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I have this little conundrum that has been racking my brains for the past few days. I have code that uses linq to SQL to write to the MSSQL database.

    Using my dev setup with an exact copy of my DASP database and same web code works fine. However when I upload the code to DASP I get an error of "Specified cast is not valid!" as soon as I submit changes. The database schema is exactly the same between the dev and DASP database, the code is the same yet on DASP this error crops up and I am running out of ideas.

    Any suggestions welcome.
     
  2. Have a think about date / region specific formatting code you have. There's not much to go on here at the moment but my first response is that this sounds suspiciously like an application formatting a date that is in a valid format on local and invalid on DASP. The DASP servers are all defaulted to US settings.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page