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...