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 ForumsHelpHelptried to search - got critical errortried to search - got critical error
Previous
 
Next
New Post
11/21/2006 5:16 PM
 
EricVB,

I first tried the sproc from Philip and got the parameter count error.  Then I tried your alter sproc statement, and still got the parameter count error.  Then I dropped the sproc completely and ran your create sproc statement and still got the parameter count error.

I'm running DNN 4.3.5 and 2.00.04 of the Help module.
 
New Post
11/22/2006 2:28 PM
 
After creating the Help_SearchTutorials stored procedure, I still can't use the Help module.  Currently, I have no tutorials.  When I try to create a tutorial, I get the following exception:

Error: Knowledge Base Articles 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.Help.SqlDataProvider.SearchTutorials(String searchText) at DotNetNuke.Modules.Help.HelpController.SearchTutorials(String searchText) at DotNetNuke.Modules.Help.Help.BindList(String searchText, Int32 categoryID) at DotNetNuke.Modules.Help.Help.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

The Help_Tutorials table is empty, so I don't think my tutorial is being created.

The Help_SearchTutorials stored procedure only takes a single parameter.  I've searched every usage of SearchTutorials in the source and it is always called with a single parameter.

I desparately need to get this working.  I would be grateful for any assistance.
 
New Post
11/23/2006 12:44 AM
 
Check under Host/ModuleDefinitiosn and tell me what version you have running.  2.0.4 definitely uses 2 parameters on the search.

Philip Beadle - Employee
 
New Post
11/23/2006 2:21 AM
 
I have 2.00.04 of the Help module.  I installed DNN 4.3.5 originally.  The Help_SearchTutorials sproc was missing, so I installed the one from here.

The file "Help_2.0.4_Source\Providers\DataProviders\SqlDataProvider\02.00.04.SqlDataProvider" has the Help_SearchTutorials sproc with only one parameter.  The file "Help_2.0.4_Source\Providers\DataProviders\SqlDataProvider\SqlDataProvider.vb" appears to call Help_SearchTutorials with only one parameter.

In addition to solving my error, I would be grateful for an understanding of what I'm missing.  I'm a software developer with 15 years professional experience, 10 more as a hobbyist, but I've never done anything with .NET or ASP.NET.  I just started playing with DNN about a month ago and anticipate getting my hands dirty in some code.  At the very least, I'll probably write a custom module or two for my company's website.  I'd like to contribute back to DNN eventually.

But I feel so lost right now...  ;)

Thanks!
 
New Post
12/17/2006 9:17 AM
 

ErikVB wrote
{...}
For those of you that read this prior to installing the module, just add this to the .dnn file:

        <file>
          <name>02.00.03.SqlDataProvider</name>
        </file>

(in the already existing <files> section of the file)
{...}

Hello,

I have many problem to have a HELP module V2.0.4 fully functionnal (and it seems that I am not the only one). So, I carefully read all threads here and have the following questions/suggestions:

I looked at the help.dnn file (in version 2.0.4), and the parameter you mention is present. Am I missing something in another file ?
I have tried to include the following (04 instead of 03), without more succes:
 <file>
          <name>02.00.04.SqlDataProvider</name>
</file>

 

So, finally, I have deleted my HELP module, and I have proceed as follows, and no, everything seems to be ok (Help module fully functionnal after one day of test). I hope it can help yairt or other people having similar problems:

1- I deleted my HELP module
2- I accessed my database (generally, your provider gives you the possibility to access your database using a web tool). Run the following:
drop procedure dbo.helpxxxx
(replace xxx with all the procedure which have not been deleted by the process at step 1)
3- Download the latest version of Help module (today 2.0.4)
4- Install the HELP module as usual (you will have error messages).
5- To correct the error messages you had before, you must install one sp by typing the following in your portal (logged as HOST, sql module, and run as script selected - do not forget the two carriage return at the end of the text):

CREATE PROCEDURE {databaseOwner}[{objectQualifier}Help_SearchTutorials]

@Search nvarchar(100)

AS

SELECT    
  {databaseOwner}{objectQualifier}Help_Tutorials.TutorialGUID,
  {databaseOwner}{objectQualifier}Help_Tutorials.TutorialID,
  {databaseOwner}{objectQualifier}Help_Tutorials.Title,
  {databaseOwner}{objectQualifier}Help_Tutorials.ProductImage,
  {databaseOwner}{objectQualifier}Help_Tutorials.Featured,
  {databaseOwner}{objectQualifier}Help_Tutorials.KeyWords,
  {databaseOwner}{objectQualifier}Help_Tutorials.DownloadName,
  {databaseOwner}{objectQualifier}Help_Tutorials.ShortDesc,
  {databaseOwner}{objectQualifier}Help_Tutorials.Archive,
  {databaseOwner}{objectQualifier}Help_Tutorials.Description,
        0 AS ViewOrder
FROM {databaseOwner}{objectQualifier}Help_Tutorials
WHERE   ({databaseOwner}{objectQualifier}Help_Tutorials.Title LIKE N'%' + @Search + '%')

OR
  ({databaseOwner}{objectQualifier}Help_Tutorials.KeyWords LIKE N'%' + @Search + '%') OR
        ({databaseOwner}{objectQualifier}Help_Tutorials.ShortDesc LIKE N'%' + @Search +

'%') OR
  ({databaseOwner}{objectQualifier}Help_Tutorials.Description LIKE N'%' + @Search + '%')

GO

 

6- Finally, alter one procedure to have the buttons up/down correctly shown in your category module. Type the following in your portal (logged as HOST, sql module, and run as script selected - do not forget the two carriage return at the end of the text):

ALTER PROCEDURE {databaseOwner}[{objectQualifier}Help_ListCategoryActiveByParent]

@ModuleID int,
@ParentID int
 
AS
SELECT   [CategoryID],
   [CategoryGUID],
   [Name],
   [Description],
   [Image],
   [KeyWords],
   [ModuleID],
   [Order],
   [Level],
   [Parent],
   [Visible],
   [Deleted]

FROM   {databaseOwner}{objectQualifier}Help_Category

WHERE  [Parent] = @ModuleID AND [ModuleID] = @ParentID
AND   [Deleted] <> 1
AND   [Visible] <> 0

ORDER BY [Level] ASC,
   [Parent] ASC,
   [Order] ASC
  
GO

 

7- Finallym you should verify that your help module is linked to the correct category. To do so, open the settings in your help module (not the category module), and verify that the "set the category module" is not empty. UPDATE (even if you did not make any changes). Then, you should have a fully functionnal HELP module.

Hope it can help some of you,
Déclic Vidéo FX

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsHelpHelptried to search - got critical errortried to search - got critical error


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