Hi there,
we have installed the trial version 5.25 on our system. With this version I treid to use the querystring parameters for a variant pre-selection but this results in a null reference exception. Here is what I tried to do:
- I created a variantgroup
- then I created variants to this group
- The variant still works in normal selection on the detailpage of the product
- then I tried to use the querystring:
http://192.168.67.46/SmithShop/SmithShopDetailpage/tabid/310/ProductID/4/Default.aspx?variantid=23
the variant is one of the displayed options in the variant grid of the product (in this case 4)
In the EventLog I get these 2 informations:
1.
>>>>
ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 6.2.4
PortalID: 0
PortalName: TKS Telepost Kabel-Service
UserID: 10
UserName: alsc
ActiveTabID: 310
ActiveTabName: SmithShop Detailpage
RawURL: /SmithShop/SmithShopDetailpage/tabid/310/ProductID/4/Default.aspx?variantid=23
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 162f5fee-ec8b-425e-9747-27887bfd9216
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Smith.DNN.Modules.ProductDetail.ProductMain.m
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Smith.DNN.Modules.ProductDetail.ProductMain.m() at Smith.DNN.Modules.ProductDetail.ProductMain.d(String vid) at Smith.DNN.Modules.ProductDetail.ProductMain.ProcessQueryString() at Smith.DNN.Modules.ProductDetail.ProductMain.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
Source:
Server Name: WWW1
<<<
2.
>>>
AssemblyVersion: 6.2.4
PortalID: 0
PortalName: TKS Telepost Kabel-Service
UserID: 10
UserName: alsc
ActiveTabID: 310
ActiveTabName: SmithShop Detailpage
RawURL: /SmithShop/SmithShopDetailpage/tabid/310/ProductID/4/Default.aspx?variantid=23
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 275cf811-2262-4743-8a8c-012c43960c04
InnerException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.UI.ControlCollection.Add
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). ---> System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc, Boolean DisplayErrorMessage) --- End of inner exception stack trace ---
Source:
Server Name: WWW1
<<<
Does anybody have a advice vor me?