favance wrote
Hi Benoit, does this happen when you install the module...or after you run it? Can you pinpoint or give me more information on this? Thanks, Alan
It's when I run it. Install seemed to be ok, I have not looked at the install logs in details but there was no red. Now, when I want to create an event, I get this error. Of course, my first thought was : we're after the 12th of the month, looks like a MM/DD/AAAA or DD/MM/AAAA problem. So I tried to insert an event on 1/2/2006, or 2/2/2006. Same error. I tried to set my user language as english. Same. The default dates in the begin and end date and time text boxes are : 1/3/2006 9pm and 9:30pm. I just confirm that. Error. The time zone is UTC -8. This is not my time zone (we're on UTC+1 here). The default language of the SQL database is french. The web.config is fr-FR and the website default is french.
Here is the full error message :
Erreur: Editer un événement inconnue.
DotNetNuke.Services.Exceptions.ModuleLoadException: The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value. The statement has been terminated. ---> System.Data.SqlClient.SqlException: The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value. The statement has been terminated. at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Modules.Calendar.Data.SqlDataProvider.CalendarSave(Int32 PortalID, Int32 EventID, Int32 ModuleID, DateTime EventDateBegin, DateTime EventDateEnd, DateTime EventTimeBegin, Int32 Duration, String EventName, String EventDesc, Int32 Importance, String CreatedBy, String CreatorID, Int32 Every, String Period, String RepeatType, String Notify, Boolean Approved, Boolean Signups, Int32 MaxEnrollment, String EnrollRoleID, Double EnrollFee, String EnrollType, String PayPalAccount, String PayPalPassword, Boolean Cancelled, String ImageURL, String ImageType, Int32 ImageWidth, Int32 ImageHeight, Boolean ImageDisplay, Int32 Location, String LocationName, String MapURL, Int32 Category, String CategoryName, String Color, String Reminder, Int32 TimezoneOffset, Boolean SendReminder, Int32 ReminderTime, String ReminderTimeMeasurement, String ReminderFrom) at DotNetNuke.Modules.Calendar.Business.CalendarController.CalendarSave(CalendarInfo objCalendar) at DotNetNuke.Modules.Calendar.CalendarEdit.updateButton_Click(Object sender, EventArgs e) --- End of inner exception stack trace ---