14
I recently ran into a show stopping issue running Catalook 5.20 on DNN 4.5.  The issue surfaced when adding items to your basket or accessing your basket.  The user would get the following error and could not move past the basket: 
 
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
The real error in the Event Log showed a versioning issue with one of the core DNN objects (CountryListBox):
 
Message: System.Exception: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\14bc8b9c\e8bb2b19\App_Web__address.ascx.37546475.evl5zxbb.0.vb(1135): error BC32206: Indirect reference is being made to assembly CountryListBox version 1.0.2182.26938, which contains 'CATALooK.C_Address.cboCountry'. This Project references a prior version of CountryListBox version 1.0.2182.24153. To use 'CATALooK.C_Address.cboCountry', you must replace the reference to CountryListBox with version 1.0.2182.26938 or higher. --->
Foretunately, I found this post on the Catalook forums and since I owned the source version of Catalook was able to recompile the Catalook code against the latest DNN objects to resolve this versioning issue.  While the post was encouraging I had not worked within the Catalook project before so setting up my project took a little research.  Here are the steps I followed to make this work:
 
[the rest of this error was removed for space conservation]
 
 
[this assumes you have unzipped the source version of Catalook 5.20 on your hard drive]
  1. Open Visual Sutdio 2005 (On Vista select Run as Administrator)
  2. Navigate to the project file for Catalook
    1. (..\CATSTORE520_DNN441_Sources\CATSTORE520_DNN441_Source\CATALooKnetStore.Library\CATALooKnetStore.Library.vbproj)
  3. Open your "References" folder and you should see a lot of errors
  4. To resolve these errors, drag and drop the required DLLs from your DNN 4.5 Bin directory into the bin directory of your project
  5. Some of your reference errors may go away immediately
  6. For those that don't go away click on the reference, open up the properties and change the Copy Local to True
  7. One note, I had to get the FreeTextBox.dll from www.freetextbox.com
  8. Once all of your reference errors have been resolved, Build your project (be sure to change your Configuration Manager to Release
  9. Using Exporer, open up your obj\release folder and get the latest CATALooKStore.dll
    1. CATALooKnetStore.Library\obj\Release\CATALooKStore.dll
  10. Copy this dll to the bin directory of your DNN 4.5 Site.

That's it, the error in the basket should be gone.  Worked like a charm for me and got my client's launch schedule back on track.

 

 
 
Tags: DNN, Catalook
Related Articles:
DotNetNuke on Vista Moving my DNN projects from my XP Backup to Vista was yet another "interesting" experience.  I had read a few posts on the DNN forums (www.dotnet...

Post Rating

Comments

There are currently no comments, be the first to post one.

Post Comment

Name (required)

Email (required)

Website

Enter the code shown above:

Print