Developer forum

Forum » Development » Custom DW 7.1 - eCommerce completely dead?

Custom DW 7.1 - eCommerce completely dead?


Reply
 I've installed a stone stock custom solution on DW 7.1 (Application(19.1.0.0))

I've changed the update.xml to 50 same with the ecom xml and then reset the IIS to force updates on the files set and SQL database.

When i enter eCommerce in the backend and try and select SHOP1 and the first group i get index out of bounds, if i right click on SHOP1 and try and change the name it wants to create a new shop (with timestamp now).

I've triede creating a new shop which works but when trying to create product groups i again get index out of bounds.

Also in the backend in eCommerce settings under the various tabs i get the parser error:
Could not load file or assembly 'RadMenu.Net2' or one of its dependencies. The system cannot find the file specified.

Stack trace from index out of bounds msg upon group creation:

[IndexOutOfRangeException: Index was outside the bounds of the array.]
   Dynamicweb.Ecom7.Common.Functions.GetGroupsBreadcrumb(String shopFilter, String[] items) +436
   Dynamicweb.Ecom7.Common.Functions.GetBreadcrumb(String shopFilter, String treeOpenTo, Action`1 prosessBeforeRender) +186
   Dynamicweb.Admin.eComBackend.EcomGroupEdit.Tree_Ready(Object sender, EventArgs e) +137
   Dynamicweb.Admin.eComBackend.MainMaster.OnTreeReady(EventArgs e) +53
   Dynamicweb.Admin.eComBackend.MainMaster.PopulateTree() +1316
   Dynamicweb.Admin.eComBackend.MainMaster.Page_Load(Object sender, EventArgs e) +36
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply
Are you using the Default Empty Data as your Files/Database? If so, you might need to rerun Ecom updates from 0 instead.
 
Reply
 Okay ill give it a try, waste of time to have so much problems with setting up new solutions :S would be nice to see some sort of an installer like umbracos or just downloads that fitt together :S 

I wouldent like being new to dw and having togo threw that process to setup a simple custom solution with mssql. 
 
Reply
Couldn't agree more - not matching downloads with DefaultEmptyData database is a pain for non experienced Setup-developers.
 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply
This has been taken to heart. The DefaultEmptyData has now been updated Engage to match Dynamicweb 7.1. If you experience an issue with this new DefaultEmptyData, please let me know.

Also we have implemented a new internal process to ensure that the DefaultEmptyData will match the current release of Dynamicweb - everytime the release is updated.
 
Reply
I'm stuck with this issue on a completely new installation - second attempt. Could you at least make it so that Dynamicweb eCommerce is able to function dispite the lack of some thing as "useless" as a breadcrumb?

BR.
Lars
 
Reply
Did anyone find a solution to this problem? I am stucked with this problem :-(
 
Reply
This looks to me to be an error that occurs on older solutions that have been upgraded to 19.x.x.x.

The problem is that there is an older version of a couple of dll's, one of them named RadMenu.dll. They interfere with the newer version of the dll.

I don't remember the exact names of the old dll's, but they are similar to the newer ones:

RadMenu.Net2.dll
RadGrid.Net2.dll
RadTreeView.Net2.dll

Simply delete (move to another folder) the dll's with the same, that do NOT contain "Net2". This should solve it.
 
Reply
I have now done what you suggested, but unfortunately it did not solve the problem. Do you have any other suggestions?

I only have these ....Net2.dll's in my bin folder:
RadAjax.Net2.dll
RadGrid.Net2.dll
RadMenu.Net2.dll
RadTreeView.Net2.dll
 
Reply
What error do you get exactly? (The initial post mentioned a few).

If you get the Index error, take a look at the last step (12) of this article: http://devierkoeden.com/Articles/[articleId/11]/Custom-Modules---Part-1---Introduction.aspx

If that doesn't help, can you provide more information such as the error message?

Imar
 
Reply
The errormessage is:

Server Error in '/' Application.

 


 

Index was outside the bounds of the array.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:
 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:
 

[IndexOutOfRangeException: Index was outside the bounds of the array.]
   Dynamicweb.Ecom7.Common.Functions.GetGroupsBreadcrumb(String shopFilter, String[] items) +441
   Dynamicweb.Ecom7.Common.Functions.GetBreadcrumb(String shopFilter, String treeOpenTo, Action`1 prosessBeforeRender) +186
   Dynamicweb.Admin.eComBackend.ProductList.Tree_Ready(Object sender, EventArgs e) +156
   Dynamicweb.Admin.eComBackend.MainMaster.OnTreeReady(EventArgs e) +53
   Dynamicweb.Admin.eComBackend.MainMaster.PopulateTree() +1316
   Dynamicweb.Admin.eComBackend.MainMaster.Page_Load(Object sender, EventArgs e) +36
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

 


 

Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618

I have tried to rerun the update, both the eCom and the CMS. That didn't help either!

 

 
Reply
Is this site available on-line somewhere?

Imar
 
Reply
No it's on the innerside of a firewall! But at the moment Dynamicweb are given a remote access.
 
Reply
Ah, OK. Hope they can figure it out.

Imar
 
Reply
It did help :-)

Lars Britz from DW found out that if you call the site with http://localhost/admin then you get the error! Strange but true. So I added a host header to the site and now it works.
Thanks to everyone who tried to help :-)
 
Reply
I guess you've made one improvement, because now I can get one step further:

[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.ThrowHelper.ThrowArgumentOutOfRangeException() +72
   Dynamicweb.Admin.eComBackend.ProductList.BreadcrumbHighlightLastItem(List`1 items) +28
   Dynamicweb.Ecom7.Common.Functions.GetBreadcrumb(String shopFilter, String treeOpenTo, Action`1 prosessBeforeRender) +271
   Dynamicweb.Admin.eComBackend.ProductList.Tree_Ready(Object sender, EventArgs e) +153
   Dynamicweb.Admin.eComBackend.MainMaster.OnTreeReady(EventArgs e) +64
   Dynamicweb.Admin.eComBackend.MainMaster.PopulateTree() +1227
   Dynamicweb.Admin.eComBackend.MainMaster.Page_Load(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

Fix please...
 
Reply
Hi Lars,

Tomorrow I will investigate this issue, but I may need the database and files from the site with an error. Thanks
 
Reply
Let me know, what you need, and I'll provide it for you.

But in general, checking whether an expected entry exists in a collection before attempting to access it seams like a good idea.

BR.
Lars
 
Reply
I've sent you a mail with the relevant files.

BR.
Lars

 

You must be logged in to post in the forum