Opticon Stockholm is on Tuesday September 10th, hope to see you there!
AI OnAI Off
Opticon Stockholm is on Tuesday September 10th, hope to see you there!
CurrentPage for some reason falls back to the start page which is not a ProductPageType... What's in the address bar when you get this error?
Not sure if I understood you right, but for me the error seems like you have added a new page type, pointed the page type to use the same .aspx as the ProductPageType, is that correct?
If it is, your new page type must inherit from ProductPageType or that you make a baseclass that both ProductPageType and your new page type inhertis from + that the aspx unherts from TemplateBase<YourBaseClass>.
If not, then ignore my post. :)
It's the product page which is selected from the Settings tab in commerce.
We're using PageType Builder to define our product details page. During our initial development we've been using the catalog from ClickTalk to have items to work with. Everything is working fine with existing products/sku's but when we add new ones using the same displaytemplate as the other ones we get an issue when trying to view the product details page.
The current page is not of type ProductPageType. This often occurs when no id query string parameter is specified.
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: PageTypeBuilder.PageTypeBuilderException: The current page is not of type ProductPageType. This often occurs when no id query string parameter is specified.
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:
[PageTypeBuilderException: The current page is not of type ProductPageType. This often occurs when no id query string parameter is specified.]
PageTypeBuilder.UI.LoadTypedCurrentPage`1.get_CurrentPage() +401
EPiServer.Web.PageExtensions.ContextMenu.SetupOnPageEdit() +27
EPiServer.Web.PageExtensions.ContextMenu.RegisterMenuScripts(Object sender, EventArgs e) +103
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnInit(EventArgs e) +105
EPiServer.PageBase.OnInit(EventArgs e) +16
System.Web.UI.Control.InitRecursive(Control namingContainer) +133
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1970
Any help would be appreciated.