You are viewing limited content. For full access, please sign in.

Discussion

Discussion

On-Prem Forms Error - Unable to Cast Type DynamicProxies.cf_form to EntityModules.cf_theme

posted on August 10, 2023

Can anyone decipher this error? I could not find another post on it or any other resources to explain in more detail.

It happens when trying to preview a form or display the form anywhere in the process to a user.

This error is thrown and it does not allow access to the form. The workaround has been to copy the entire process and re-publish as a new process, but then you lose your history.

Inner exception: System.InvalidCastException
Message: Unable to cast object of type 'System.Data.Entity.DynamicProxies.cf_forms_3C41E27BE29C1414189B8A395E00BA02D82890E1368643617A4AC44EC5ED2348' to type 'Laserfiche.Forms.EntityModels.cf_theme'.
   at Laserfiche.Forms.EntityModels.Services.FunctionCacheService.<>c__DisplayClass4_0`2.<Memoize>b__0(TArg param)
   at E_Forms.Models.ViewModels.Form._BaseFormModel._PopulateFormValues(Int32 formId)
   at E_Forms.Models.ViewModels.Form._BaseFormModel.PopulateFormValues(Int32 formId)
   at E_Forms.Controllers.FormController.NewSubmission(Int32 formId, String mode, Int32 instanceId, Int32 loadDb, Boolean HideHeader)
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c.<BeginInvokeSynchronousActionMethod>b__9_0(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass11_0.<InvokeActionMethodFilterAsynchronouslyRecursive>b__0()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass11_2.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass11_2.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_6.<BeginInvokeAction>b__4()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_1.<BeginInvokeAction>b__1(IAsyncResult asyncResult)
 

 

0 0
replied on August 10, 2023

Hi Chad,

This is an identified bug, which is fixed in 11 Update 3 Hotfix 1014419 or newer version. 

Error (LFF502-UnexpectedError) After Upgrading Forms to Version 11 Update 3 - Laserfiche Answers

1 0
replied on August 11, 2023

Thank you! Seems to be a super rare case as this was our first report of it. They are running a build just below this one.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.