Trying to create a datatype using the usercontrol wrapper in sqlce.
I get the following error:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception: System.ArgumentException: The SqlCeParameter is already contained by another SqlCeParameterCollection. at System.Data.SqlServerCe.SqlCeParameterCollection.Validate(Int32 index, SqlCeParameter value) at System.Data.SqlServerCe.SqlCeParameterCollection.AddWithoutEvents(Int32 index, SqlCeParameter value) at System.Data.SqlServerCe.SqlCeParameterCollection.Add(SqlCeParameter value) at SqlCE4Umbraco.SqlCeApplicationBlock.AttachParameters(SqlCeCommand command, SqlCeParameter[] commandParameters) at SqlCE4Umbraco.SqlCeApplicationBlock.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlCeParameter[] commandParameters)
UserControlWrapper doesn't work in SQL CE
Trying to create a datatype using the usercontrol wrapper in sqlce.
I get the following error:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: SqlCE4Umbraco.SqlCeProviderException: Error running NonQuery:
SQL Statement:
insert into cmsDataTypePreValues (datatypenodeid,[value],sortorder,alias) values (@dtdefid,@value,0,'')
Exception:
System.ArgumentException: The SqlCeParameter is already contained by another SqlCeParameterCollection.
at System.Data.SqlServerCe.SqlCeParameterCollection.Validate(Int32 index, SqlCeParameter value)
at System.Data.SqlServerCe.SqlCeParameterCollection.AddWithoutEvents(Int32 index, SqlCeParameter value)
at System.Data.SqlServerCe.SqlCeParameterCollection.Add(SqlCeParameter value)
at SqlCE4Umbraco.SqlCeApplicationBlock.AttachParameters(SqlCeCommand command, SqlCeParameter[] commandParameters)
at SqlCE4Umbraco.SqlCeApplicationBlock.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlCeParameter[] commandParameters)
is working on a reply...