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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDebugging FeatureController classDebugging FeatureController class
Previous
 
Next
New Post
6/23/2011 4:55 PM
 
I'm trying to make a working module searchable.  I opened up the feature controller class and made the modifications to the relevant methods, but nothing is going into the index.  Is there a way to debug this method so I can see what, if anything, the array list is returning?
 
New Post
6/23/2011 10:46 PM
 
Many times adding the implementation of ISearchable to an already registered and working module does not result in the supported features in the module's registration (Host --> Extensions) being updated. I would begin by checking the module's registration to verify that Searchable is checked in the supported features list. If it is not, try clicking "Update" then re-open/edit the module's registration to see if it is now checked.

Also, make sure that the module's registration includes a reference to the module's Business Controller Class in which you implemented ISearchable. Without that information the search indexing scheduled task will not be aware that your module supports ISearchable.

Finally, if you do need to debug your implementation of ISearchable you should be able to open your module project in Visual Studio, etc., compile it in debug mode, then set a breakpoint at the top of the implementation of the GetSearchItems method. Open your localhost site in your favorite browser then in VS attach to the site's ASP.Net worker process (w3wp.exe). When logged into the site as host user navigate to Host --> Schedule and edit the "Search Engine Scheduler". Make sure that the scheduled task is enabled and click "Run Now". This should force all modules which implement ISearchable to re-index their content during which the breakpoint you set should be hit.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
6/29/2011 4:05 PM
 
Thanks for the ideas.  I was not successful.  I tried just putting a bogus hard-coded entry in the search item info collection.  I also tried attaching the debugger as you described but all I get is a message stating there are no debug tokens available.  I'll confess I'm not normally a .NET guy having worked in Java for the last few years, but understood the directions I just couldn't get them to work. 

I honestly think the methods are not actually running.  I've also tried putting log statements in there and there's nothing in the log either.

If there are other ideas, I'd love to hear them.
 
New Post
8/2/2011 11:41 AM
 
I eventually figured out what was wrong.  I was correct insofar as the indexer was not running.  If I entered the controller class via DNN it didn't work.  As soon as I added the controller class to the DNN manifest, the indexer started working.

I also got the debugger to answer a few times but it seems dicey.  I can't always find the DNN worker thread in the list of processes I'm allowed to attach.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDebugging FeatureController classDebugging FeatureController class


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