Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Custom module DAL problemCustom module DAL problem
Previous
 
Next
New Post
2/20/2008 1:06 PM
 

I had my module working fine. It stored its settings in the TabModuleSettings table. I decided I'd rather store it in my module table for various reasons. So I got rid of my settings control and went with an edit control instead. The module was created using the StarterKit, and so I just modified all of the lines for data access. Here is my override for the "AddModule" method:

        public override void AddOpenBook(int ModuleId, int PropID, string Policy, int UserID)
        {
            SqlHelper.ExecuteNonQuery(ConnectionString, GetFullyQualifiedName("AddOpenBook"), ModuleId, PropID, Policy, UserID);
        }

This is also the line that is giving me 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.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) at Yellowstone.Modules.OpenBook.SqlDataProvider.AddOpenBook(Int32 ModuleId, Int32 PropID, String Policy, Int32 UserID) in c:\InetDNN408\App_Code\OpenBook\SqlDataProvider.cs:line 163 at Yellowstone.Modules.OpenBook.OpenBookController.AddOpenBook(OpenBookInfo objOpenBook) in c:\InetDNN408\App_Code\OpenBook\OpenBookController.cs:line 71 at Yellowstone.Modules.OpenBook.ViewOpenBook.Page_Load(Object sender, EventArgs e) in c:\InetDNN408\DesktopModules\OpenBook\ViewOpenBook.ascx.cs:line 135 --- End of inner exception stack trace

I'm not sure what to do. I uninstalled and reinstalled the module, deleted all of the stored procedures and the table and reinitialized it from my SqlDataProvider script. I still get this. If I remove the item (Policy) that I added things work ok again. Obiouvsly something is pissed about the number of argument I'm passing in, but I don't know what or where. Any help would be appreciated.

 
New Post
2/20/2008 2:12 PM
 

please post a copy of the sql that the AddOpenBook call makes, it's hard to diagnose the issue without that.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/20/2008 3:00 PM
 

Oddly enough, it started working on its own. I'm chalking it up to a caching issue or something along those lines.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Custom module DAL problemCustom module DAL problem


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out