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.0VB and SQL Parameters; Parameter count does not match Parameter Value countVB and SQL Parameters; Parameter count does not match Parameter Value count
Previous
 
Next
New Post
4/9/2009 9:54 AM
 

Well, it looks like there is an AddPhoneGrid method in the Controller class.  But that method is just calling the SqlDataProvider.AddPhoneGrid method.  Are you sure that you only have those five files?  Could there be a SqlDataProvider.vb hiding in a folder or something?

Hope I can help,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
4/27/2009 9:56 AM
 

Brian,

Sorry it's taken me so long to get back to this thread; this project got "back-burnered" for about ten days there.... hope I can still grab some of your time.
I read a post in which Michael Washington said that both the SqlDataProvider.vb and DataProvider.vb were expendable and could be deleted.
I have tried to relocate this post so that I could cite it for you, but I have been unable to find it.  So I managed to recreate the Data Provider files.

If this file is critical, then I have made a critical error in removing it.

This is some of the SqlDataProvider.vb Code...  I'm going to try adding the proper parameters...

#Region "Public Methods"

        Public Overrides Function GetPhoneGrids(ByVal ModuleId As Integer) As IDataReader
            Return CType(SqlHelper.ExecuteReader(ConnectionString, GetFullyQualifiedName("GetPhoneGrids"), ModuleId), IDataReader)
        End Function

        Public Overrides Function GetPhoneGrid(ByVal ModuleId As Integer, ByVal ItemId As Integer) As IDataReader
            Return CType(SqlHelper.ExecuteReader(ConnectionString, GetFullyQualifiedName("GetPhoneGrid"), ModuleId, ItemId), IDataReader)
        End Function

        Public Overrides Sub AddPhoneGrid(ByVal ModuleId As Integer, ByVal Content As String, ByVal UserId As Integer)
            SqlHelper.ExecuteNonQuery(ConnectionString, GetFullyQualifiedName("AddPhoneGrid"), ModuleId, Content, UserId)
        End Sub

        Public Overrides Sub UpdatePhoneGrid(ByVal ModuleId As Integer, ByVal ItemId As Integer, ByVal Content As String, ByVal UserId As Integer)
            SqlHelper.ExecuteNonQuery(ConnectionString, GetFullyQualifiedName("UpdatePhoneGrid"), ModuleId, ItemId, Content, UserId)
        End Sub

        Public Overrides Sub DeletePhoneGrid(ByVal ModuleId As Integer, ByVal ItemId As Integer)
            SqlHelper.ExecuteNonQuery(ConnectionString, GetFullyQualifiedName("DeletePhoneGrid"), ModuleId, ItemId)
        End Sub

#End Region

 
New Post
4/27/2009 10:18 AM
 

Well, the only reason that I mentioned SqlDataProvider is that it is mentioned in the stack trace you provided.  So, it appears that it is in your project, even though you thought you deleted it.

What does the Controller.AddPhoneGrid method look like?  Isn't it calling AddPhoneGrid on the SqlDataProvider class?  What was happening here when you thought there wasn't a SqlDataProvider?

From the reconstructed code here, it definitely looks like you need to add the extra parameters to the sections that you've highlighted.  Have you tried changing those calls to send in the extra SP arguments, and seeing if that helps things?

Hope that helps,


Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0VB and SQL Parameters; Parameter count does not match Parameter Value countVB and SQL Parameters; Parameter count does not match Parameter Value count


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