Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Daniel Bardi 927 posts 2562 karma points
    Feb 06, 2011 @ 10:48
    Daniel Bardi
    0

    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)

Please Sign in or register to post replies

Write your reply to:

Draft