I could do a line by line deletion of the cs file for debugging purposes but it might take a long time. Is there an efficient way to troubleshoot this error?
For what it's worth, this is the closest thing I got: http://etf.codeplex.com/workitem/30520
"It is a problem related to the EPiServer.dll version that the PageType is compiled with. It seems like it has to be the same as the running version."
I got this project from an older version EPiServer Project and now I'm using it with the latest EPiServer release. The funny thing is, other page types built on that same project is perfectly working.
I'm using PageTypeBuilder 1.3. I think the latest is 1.3.1 but I'm not sure if upgrading will fix my problem because that same error exists in 1.3.1 http://pagetypebuilder.codeplex.com/workitem/8277
I updated all the referenced EPiServer DLLs of the project to the same referenced DLLs of the site. The problem was fixed.
When creating a specific custom page type I receive this error:
Binary format of the specified custom attribute was invalid.
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.Reflection.CustomAttributeFormatException: Binary format of the specified custom attribute was invalid.
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:
I have no clue to what's causing this issue.