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.0UpdateModuleSetting not working after upgrade to 5.1.4UpdateModuleSetting not working after upgrade to 5.1.4
Previous
 
Next
New Post
11/8/2009 9:31 AM
 

Hi,

I have the following code on my development PC which continues to work after upgrading to 5.1.4:

 

Dim objSettings As New DotNetNuke.Entities.Modules.ModuleControllerobjSettings.UpdateModuleSetting(ModuleId, "EMailFrom", Me.txtEMailFrom.Text.Trim)

However, my client is also running 5.1.4 - and I get this error in the event log when trying to update module settings with the above code:

****************

AssemblyVersion: 5.1.4
PortalID: 0
PortalName:Blah Blah

UserID: 1
UserName: siteadmin
ActiveTabID: 95
ActiveTabName: TestRegistration
RawURL: /Home/TestRegistration/tabid/95/ctl/Module/ModuleId/462/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://abc.net/Home/TestRegistration/tabid/95/ctl/Module/ModuleId/462/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 0cade7c9-b21c-4b72-94c6-059c010a7731
InnerException: Parameter count does not match Parameter Value count.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Microsoft.ApplicationBlocks.Data.SqlHelper.AssignParameterValues
StackTrace:
Message: 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 DotNetNuke.Data.SqlDataProvider.AddModuleSetting(Int32 ModuleId, String SettingName, String SettingValue, Int32 createdByUserID) at DotNetNuke.Entities.Modules.ModuleController.UpdateModuleSetting(Int32 ModuleId, String SettingName, String SettingValue)
Source:
Server Name: WEBE17

 ************

Any idea what is happening...

 

 

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0UpdateModuleSetting not working after upgrade to 5.1.4UpdateModuleSetting not working after upgrade to 5.1.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