locked
Blend exception '_ExpressionDynamicAssembly'

    Question

  • Hi

    I'm unable to edit any of the control templates in my generic.xaml, the designer crashes whenever I try. Exception as follows:

    FileNotFoundException: Could not load file or assembly '_ExpressionDynamicAssembly_076de249-d19d-4ca4-b6ec-1dd36ea6301b, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

    at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
       at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
       at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
       at System.Type.GetType(String typeName, Boolean throwOnError)
       at System.StubHelpers.SystemTypeMarshaler.ConvertToManaged(TypeNameNative* pNativeType, Type& managedType)
       at Windows.UI.Xaml.Style.get_TargetType()
       at Microsoft.Expression.WindowsXamlPlatform.ViewObjects.WindowsUIXamlViewContentProvider.StyleContentProvider.ProvideContent(ContentProviderParameters contentProviderContext)
       at Microsoft.Expression.WindowsXamlPlatform.ViewObjects.WindowsUIXamlViewContentProvider.ProvideContent(ContentProviderParameters contentProviderContext)
       at Microsoft.Expression.DesignSurface.View.XamlSceneView.ProvideViewContent(ViewNode target, Object content)
       at Microsoft.Expression.DesignSurface.View.WindowsUIXamlSceneView.SetViewContentWorker(ViewContentType contentType, ViewNode target, Object content)
       at Microsoft.Expression.DesignSurface.View.WindowsUIXamlSceneView.SetViewContentInternal(ViewContentType contentType, ViewNode target, Object content)
       at Microsoft.Expression.DesignSurface.View.XamlSceneView.Microsoft.Expression.Platform.InstanceBuilders.IAttachViewRoot.EnsureRootSited()
       at Microsoft.Expression.Platform.InstanceBuilders.ViewNodeManager.EnsureRootSited(IAttachViewRoot siteRoot)

    Friday, October 12, 2012 5:40 AM

Answers

  • Nevermind, amateur mistake

    I did not have a default constructor for the control that I wanted to edit

    • Marked as answer by _sledgem Friday, October 12, 2012 6:24 AM
    Friday, October 12, 2012 6:23 AM

All replies

  • Nevermind, amateur mistake

    I did not have a default constructor for the control that I wanted to edit

    • Marked as answer by _sledgem Friday, October 12, 2012 6:24 AM
    Friday, October 12, 2012 6:23 AM
  • That's not an amateur mistake, that is a failure of the framework to explain the misuse of the API. Its the equivalent to walking down the street and someone giving you a punch in the face and walking off.
    Monday, July 22, 2013 3:09 PM