Developer forum

Forum » Templates » DWTemplateTags() error attaching module

DWTemplateTags() error attaching module

Terri Donahue
Reply

When adding TemplateTags() to a page, the following error is returned: 

An error occured while attaching module (Dynamicweb.Frontend.Content)
System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex

This video shows the process being followed: http://screencast.com/t/FIUu5puu


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Terri

This is related to your custom discounts. And this one is a weird one...:

You discounts are placed in an assembly and class called "BXGYDiscounts.BXGYDiscount" which is 27 characters long. Ask me not why, but Dynamicweb wants a discount fully qualified addin type to be at least 43 characters long.

So for now, you can have your developer rename the assembly to DynamicwebUsa.BXGYDiscounts.dll and your problems will be gone.

I will of course make sure we fix the issue.

BR Nicolai

Votes for this answer: 1
 
Terri Donahue
Reply

Thanks Nicolai.

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

>> Ask me not why, but Dynamicweb wants a discount fully qualified addin type to be at least 43 characters long.

That makes perfect sense to me. When I am drunk and really tired ;-)

Happy Friday everyone.

Imar

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

>> I will of course make sure we fix the issue.

And maybe rename RenderDiscout to RenderDiscount s well?

 

You must be logged in to post in the forum