PageTypeBuilder.PageTypeBuilderException

Vote:
 

Hi,

Please help us resolve the PageTypeBuilder error. Log is attached.

Thank you for your help.

ageTypeBuilder.PageTypeBuilderException
The current page is not of type ProductOrCategories. This often occurs when no id query string parameter is specified.

System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> PageTypeBuilder.PageTypeBuilderException: The current page is not of type ProductOrCategories. This often occurs when no id query string parameter is specified.
at PageTypeBuilder.UI.LoadTypedCurrentPage`1.get_CurrentPage()
at ConsumerTissueOnline.Templates.ProductsOrCategoriesPage.OnPreInit(EventArgs e)
at System.Web.UI.Page.PerformPreInit()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Logged on 07 December 2017 at 07:19:58

See also:

Original ASP.NET error page
Raw/Source data in XML or in JSON
Server Variables

Name Value
ALL_HTTP HTTP_CONNECTION:Close HTTP_HOST:testwwwedetnl.scahygiene.com HTTP_USER_AGENT:EPiServer Link Checker
ALL_RAW Connection: Close Host: testwwwedetnl.scahygiene.com User-Agent: EPiServer Link Checker
APPL_MD_PATH /LM/W3SVC/95/ROOT
APPL_PHYSICAL_PATH D:\Websites\cto.net\wwwroot\
AUTH_PASSWORD *****
AUTH_TYPE
AUTH_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYSIZE
CERT_SERIALNUMBER
CERT_SERVER_ISSUER
CERT_SERVER_SUBJECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFACE CGI/1.1
HTTP_CONNECTION Close
HTTP_HOST testwwwedetnl.scahygiene.com
HTTP_USER_AGENT EPiServer Link Checker
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEYSIZE
HTTPS_SERVER_ISSUER
HTTPS_SERVER_SUBJECT
INSTANCE_ID 95
INSTANCE_META_PATH /LM/W3SVC/95
LOCAL_ADDR 10.3.110.200
LOGON_USER
PATH_INFO /Templates/ProductsOrCategoriesPage.aspx
PATH_TRANSLATED D:\Websites\cto.net\wwwroot\Templates\ProductsOrCategoriesPage.aspx
QUERY_STRING
REMOTE_ADDR 217.114.87.149
REMOTE_HOST 217.114.87.149
REMOTE_PORT 60835
REMOTE_USER
REQUEST_METHOD HEAD
SCRIPT_NAME /Templates/ProductsOrCategoriesPage.aspx
SERVER_NAME testwwwedetnl.scahygiene.com
SERVER_PORT 80
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/7.5
URL /Templates/ProductsOrCategoriesPage.aspx

#186483
Dec 20, 2017 14:45
Vote:
 

a couple words about context would help

#186500
Dec 21, 2017 0:18
Vote:
 

Are you pasting error messages from logfile or is this a issue you get on the site?

If you for remove the page id when and for example open ProductsOrCategoriesPage.aspx without that you will get this error.

If i remember correctly this error could occur also if you have a page and have removed or changed the page type and it will not match this page.

#186514
Dec 21, 2017 12:24
Vote:
 

Hello,

Yes we are using elmah to log errors.

The application uses 'FriendlyUrlWriter' class to redirect to diferent pages using 'Reponse.Redirect'. Added a line on 'Page_Load' event to check the page type. 

 if (sender.GetType().BaseType != typeof(ProductsOrCategoriesPage)) return;

The problem here is unable to reproduce the error and there is no stacktrace in elmah. 

#186541
Edited, Dec 22, 2017 8:00
Vote:
 

Hey Valdis,

I really dint get your question. 

#186542
Dec 22, 2017 8:01
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.