Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Also, I'm getting a similar stack trace when trying to select the Xform via the page property:
[InvalidCastException: Unable to cast object of type 'System.Guid' to type 'EPiServer.Data.Identity'.]
EPiServer.XForms.XForm.FromPropertyBag(PropertyBag properties) +589
EPiServer.XForms.XForm.GetXformsList(IEnumerable formsPropsList) +168
EPiServer.XForms.XForm.GetForms(String createdBy, Int32 skip, Int32 take, String orderBy, SortOrder sortOrder, Int32& count) +79
EPiServer.UI.Edit.XFormSelect.GetPages(String formFolder, Boolean myFormsOnly, String formId, String sortExpression, Int32 maximumRows, Int32 startRowIndex, Int32& rowCount) +826
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +0
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +640
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +38
System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object& instance) +1234
System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1992
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +28
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +274
EPiServer.UI.Edit.XFormSelect.LoadForms() +70
EPiServer.UI.Edit.XFormSelect.OnLoad(EventArgs e) +989
System.Web.UI.Control.LoadRecursive() +71
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Control.LoadRecursive() +190
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064
The issue turned out to be that the server giving the YSOD had the CMS6R1 version of EPiServer.Data.dll and EPiServer.Events.dll in the GAC (in addition of CMS6R2 version of these assemblies).
The fix was as simple as uninstalling these from the GAC (or simply uninstalling CMS6 R1 application files, as they are not in use anyway).
I'm having a problem on 1 of 2 load balanced web-servers running CMS6R2. Im trying to call insert an Xform into a page from a page property like so:
EPiServer.XForms.XForm.CreateInstance(new Guid((string) CurrentPage["MyXFormProperty"]));
Stack trace:
When using Reflector on EPiServer.XForms.dll I find the last function called. From the stack trace the FolderId property cast seems to cause the issue.
Any ideas on what could be causing this issue?