Umbraco 8 - Uncaught SerializationException when changing Document and other Types
When developing in Umbraco 8, I am getting the following exception when working on content types. I think this is related to IIS/ASP_NET restarting the application on some file system changes.
An easy way to trigger this is to use something like a uSync import that makes a lot of type changes, but we also get this error when doing document type changes.
Anybody else encountering this and how have you solved this?
Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.Serialization.SerializationException
at System.Web.Hosting.ApplicationManager.HostingEnvironmentShutdownInitiated(System.String, System.Web.Hosting.HostingEnvironment)
at System.Web.Hosting.HostingEnvironment.RemoveThisAppDomainFromAppManagerTableOnce()
at System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal()
at System.Web.Hosting.HostingEnvironment.InitiateShutdownWithoutDemand()
at System.Web.HttpRuntime.ShutdownAppDomain(System.String)
at System.Web.Compilation.DiskBuildResultCache.ShutdownCallBack(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
Are you using PureLive or Dll mode for modelsbuilder? If you are using Dll mode, manually rebuilding the models from settings might be able to help you out.
Interesting, i also have recently got this error while having the debugger attached. In my case this turns out to be an issue with the app restarting and trying to serialize the Umbraco.Core.Security.UmbracoBackOfficeIdentity
The exception is actually:
System.Runtime.Serialization.SerializationException
HResult=0x8013150C
Message=Type is not resolved for member 'Umbraco.Core.Security.UmbracoBackOfficeIdentity,Umbraco.Core, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null'.
Source=<Cannot evaluate the exception source>
StackTrace:
<Cannot evaluate the exception stack trace>
Potentially MB might play a role in this but i think it might be more generic than that. Anyways, just posting this here for completeness, i'll investigate this a bit more if i can replicate.
Umbraco 8 - Uncaught SerializationException when changing Document and other Types
When developing in Umbraco 8, I am getting the following exception when working on content types. I think this is related to IIS/ASP_NET restarting the application on some file system changes.
An easy way to trigger this is to use something like a uSync import that makes a lot of type changes, but we also get this error when doing document type changes.
Anybody else encountering this and how have you solved this?
Application: w3wp.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.Runtime.Serialization.SerializationException at System.Web.Hosting.ApplicationManager.HostingEnvironmentShutdownInitiated(System.String, System.Web.Hosting.HostingEnvironment) at System.Web.Hosting.HostingEnvironment.RemoveThisAppDomainFromAppManagerTableOnce() at System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal() at System.Web.Hosting.HostingEnvironment.InitiateShutdownWithoutDemand() at System.Web.HttpRuntime.ShutdownAppDomain(System.String) at System.Web.Compilation.DiskBuildResultCache.ShutdownCallBack(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch()
Are you using PureLive or Dll mode for modelsbuilder? If you are using Dll mode, manually rebuilding the models from settings might be able to help you out.
Thank you! Switching to DLL mode and doing manual development when doing heavy development corrects the issue.
I also found this helpful: https://our.umbraco.com/documentation/Reference/Templating/Modelsbuilder/Install-And-Configure
Interesting, i also have recently got this error while having the debugger attached. In my case this turns out to be an issue with the app restarting and trying to serialize the
Umbraco.Core.Security.UmbracoBackOfficeIdentity
The exception is actually:
Potentially MB might play a role in this but i think it might be more generic than that. Anyways, just posting this here for completeness, i'll investigate this a bit more if i can replicate.
is working on a reply...