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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsAnnouncementsAnnouncementsParameter count does not match error in 3.3.4 (in dNN 3.3.3 and 3.3.4)Parameter count does not match error in 3.3.4 (in dNN 3.3.3 and 3.3.4)
Previous
 
Next
New Post
9/11/2006 7:30 AM
 

I'm running dNN 3.3.4 (recently upgraded from 3.3.3 to try and correct this problem).  I've been getting this error since I installed dNN 3.3.3.  Tonight I spotted the comments about the dbo. issue in the install SQL scripts, so I edited the scripts and updated the install ZIP, deleted the module from my portal and then re-uploaded the install file.  But I still have this error.

Any ideas?

Thanks
Craig

Error: Announcements is currently unavailable.
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.ExecuteReader(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Modules.Announcements.SqlDataProvider.GetAnnouncements(Int32 ModuleId, DateTime StartDate, DateTime EndDate) at DotNetNuke.Modules.Announcements.AnnouncementsController.GetAnnouncements(Int32 ModuleId, DateTime StartDate, DateTime EndDate) at DotNetNuke.Modules.Announcements.Announcements.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

 
New Post
9/13/2006 4:30 AM
 

Same here. Is your host also running SQL Server 2000 (instead of 2005)? Somebody had suggested in another thread that this might be the cause.

 
New Post
9/13/2006 4:38 PM
 
Yup, pretty sure it's SQL2000
 
New Post
9/18/2006 5:59 AM
 

Does anyone know a clean way to downgrade a module?  I really need to get announcements working by the weekend (if not sooner) and I'd like to be able to downgrade to an older working version 3.3.3(?) without having to de-install the module (and thus removing it from all the pages I've got it set up on).

Anyone know how?

Thanks

Craig

 
New Post
9/18/2006 4:14 PM
 

Sorry for not replying to this thread earlier, been kinda bussy last few weeks

Getting this module to run is not very difficult, something has gone wrong in creating the sql scripts. What i'd suggest is the following procedure:

  1. download the announcements 03.03.04 install package
  2. unzip the downloaded file to an empty directory
  3. replace in all sqlDataProvider files this:
      {databaseOwner}sysObjects
    into
      dbo.sysObjects
  4. rezip all files into a zip file (you can call the zip file anything you like
  5. logon as host into your portal, and go to the host>sql page
  6. [edit] add expireDate field back to table, run the following script (select "run as script" and click "execute"):

    if not exists (select * from dbo.syscolumns where id = object_id(N'{databaseOwner}{objectQualifier}Announcements') and name=N'ExpireDate')
    begin
        ALTER TABLE {databaseOwner}{objectQualifier}Announcements ADD [ExpireDate] [datetime] NULL
    end

    [/edit]

  7. enter the following command (this will reset the version of the module, that will allow dnn to run all sql scripts for this module again):

    update {objectQualifier}DesktopModules set version = '00.00.00' where ModuleName='DNN_Announcements'
  8. Select "Run as Script", and click the "Execute" link
  9. install the zip file you just created (and which contains the modified sqldataprovider files) just like you would install any other module (host > module definitions > upload module)

Mind you, the errors experienced with this module are not caused by a difference between SQL2000 and SQL2005, but are caused by the wrong usage of {databaseOwner}sysobjects, which will result in errors when your db user is not the dbo.

Cheers,

Erik



Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsAnnouncementsAnnouncementsParameter count does not match error in 3.3.4 (in dNN 3.3.3 and 3.3.4)Parameter count does not match error in 3.3.4 (in dNN 3.3.3 and 3.3.4)


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