Resources for the DotNetNuke Community
I am trying to develop a module for DotNetNuke 4.3.5 I am having a problem when I try to add stuff the database table for my module. I am getting the following error
DotNetNuke.Services.Exceptions.ModuleLoadException: Parameter count does not match Parameter Value count. ---> System.ArgumentException: Parameter count does not match Parameter Value count. at Microsoft.ApplicationBlocks.Data.SqlHelper.AssignParameterValues(SqlParameter[] commandParameters, Object[] parameterValues) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, String spName, Object[] parameterValues) at YourCompany.Modules.First.SqlDataProvider.AddFirst(Int32 portalID, Int32 moduleID, String title, String text, DateTime dateAdd, DateTime dateMod) in C:\DotNetNukeDevelop\App_Code\First\SqlDataProvider.vb:line 135 at YourCompany.Modules.First.FirstController.Add(FirstInfo objFirst) in C:\DotNetNukeDevelop\App_Code\First\FirstController.vb:line 28 at YourCompany.Modules.First.EditFirst.cmdUpdate_Click(Object sender, EventArgs e) in C:\DotNetNukeDevelop\DesktopModules\First\EditFirst.ascx.vb:line 150 --- End of inner exception stack trace ---
Does anyone know what this means, and how to fix it.
Thanks
Mike
This is telling you that your stored procedure to add items to the db has some different parameters than the ones specied on the sqldataprovider.
The call to Add(FirstInfo objFirst) is failing because of this, so check what this method calls on the sqldataprovider and verify that the stored proc. parameters are the same as used on the db.