Don't display anything? So no error page or anything like that? We discovered a bug that causes the compare mode to crash with an exception if the viewed page uses Session and the compare mode is differences. The other two modes (side-by-side and property changes) work though.
no it doesn't display anything. In the event viewer i get the following error
Event code: 3005 Event message: An unhandled exception has occurred. Event time: 20/09/2010 11:27:57 Event time (UTC): 20/09/2010 10:27:57 Event ID: ef5bc06ffad148089bf09a491b14c71e Event sequence: 90 Event occurrence: 2 Event detail code: 0 Application information: Application domain: 28d3bad1-9-129294519645576375 Trust level: Full Application Virtual Path: / Application Path: C:\_sourcecode\EPiServer\MainInfrastructure\JR.EPI.OAPMain\JR.EPI.OAPMain.WebForms\ Machine name: WK003318 Process information: Process ID: 8204 Process name: WebDev.WebServer.exe Account name: LIVE01\gwen curtin Exception information: Exception type: NullReferenceException Exception message: Object reference not set to an instance of an object. Request information: Request URL: http://localhost:6667/EPi/CMS/edit/PageCompare/AjaxCallPageCompare.aspx?first=2287_2480&second=2287_2292&panel=PageComparePanel&firstVersionNumber=2&secondVersionNumber=1 Request path: /EPi/CMS/edit/PageCompare/AjaxCallPageCompare.aspx User host address: 127.0.0.1 User: gwen curtin Is authenticated: True Authentication Type: Forms Thread account name: LIVE01\gwen curtin Thread information: Thread ID: 47 Thread account name: LIVE01\gwen curtin Is impersonating: False Stack trace: at EPiServer.UI.Edit.PageCompare.AjaxCallPageCompare.OnPreInit(EventArgs e) at System.Web.UI.Page.PerformPreInit() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Custom event details:
After further investigation we (I work with Gwen) have worked out that this is caused by turning off the context menu in plug-in manager.
We want to turn off the context menu as a shortcut to disable quick edit.
Any ideas?
Doh, forgot that EPiServer has built-in support for this :-)
http://sdk.episerver.com/library/cms5/Developers%20Guide/How%20To/Add%20and%20Remove%20Right-click%20Menu%20Items.htm
(applies to CMS 5 but should be similar in CMS 6)
Hi Arild,
to use the built in support would we need to put this code on each page type?
You could put in a base class that your pages inherit from, or perhaps in Global.asax.cs, to avoid having to put the code on every page type.
Hope it helps. Feel free to close this thread by marking my reply as Answer.
Hi I am using CMS 6 and at the moment when we click on compare the only option that displays anything is the property changes. Both of the other two options dont display anything. has anyone else had this problem? Anyone know of any solutions?
Thanks
Gwen