locked
Xaml engine is not working in vs 2012 even after update 3 is installed.

    General discussion

  • I have VS 2012 with upated till service pack 3- Xaml engine is unable to load and throws the following exception.

    I have already tried to reinstall the visual studio but it doesn't work that way.

    I have also checked for the windows update and have installed all the latest packages

    System.ArgumentNullException

    Value cannot be null.Parameter name: key


       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)   at Microsoft.Expression.DesignModel.Metadata.PlatformMetadataBase.NewReplacedExternalType(PlatformMetadataBase platformMetadata, IPlatformTypes sourcePlatformTypes, IAssembly assembly, Type keyType, Type replaceType, ITypeId baseType, ITypeId neutralType, IXmlNamespace xmlNamespace, String clrNamespace, AttributeCollection attributes, ProxyPropertyDescription[] properties)   at Microsoft.Expression.DesignModel.Metadata.PlatformMetadataBase.NewReplacedExternalType(PlatformMetadataBase platformMetadata, IPlatformTypes sourcePlatformTypes, IAssembly assembly, Type keyType, Type replaceType, ITypeId baseType, ITypeId neutralType, IXmlNamespace xmlNamespace, String clrNamespace, ProxyPropertyDescription[] properties)   at Microsoft.Expression.WindowsXamlPlatform.WindowsUIXamlPlatformMetadata.OnInitialize()   at Microsoft.Expression.WindowsXamlPlatform.WindowsUIXamlPlatform.Initialize()   at Microsoft.Expression.Platform.PlatformCreatorBase.CreatePlatform(IPlatformReferenceAssemblyResolver referenceAssemblyResolver)   at Microsoft.Expression.DesignSurface.Project.ProjectContextBase.Initialize()   at Microsoft.Expression.DesignSurface.Project.XamlProjectContext.Initialize()   at Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetProjectContext(IHostProject project, IPlatform platform, Boolean create)   at Microsoft.Expression.DesignSurface.Project.ProjectContextManager.GetSourceItemContext(IHostSourceItem sourceItem)   at Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__f(CancellationToken cancelToken)   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.CallWithCancellation[TResult](IRemoteCancellationToken remoteToken, Func`2 func)   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__e()   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.<MarshalIn>b__15()   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()


    System.ArgumentNullException

    Value cannot be null.Parameter name: key


    Server stack trace:    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId)   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action)   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn[TResult](IRemoteObject targetObject, Func`1 func)   at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken remoteToken)   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)Exception rethrown at [0]:    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)   at Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken cancelToken)   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass8.<CreateDesignerImpl>b__6(IRemoteDesignerService d)   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass4`2.<MarshalOut>b__3()   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()


    System.ArgumentNullException

    Value cannot be null.Parameter name: key


       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal)   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action, Int32 targetApartmentId, WaitHandle aborted, WaitHandle timeoutSignal)   at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, CallSynchronizationMode syncMode, WaitHandle timeoutSignal)   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action action, CallSynchronizationMode syncMode)   at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle`1 targetObject, Func`2 func, CallSynchronizationMode syncMode)   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IHostSourceItem item, IHostTextEditor editor, RemoteCancellationToken remoteCancelToken)   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner>b__11(RemoteCancellationToken remoteToken)   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CallWithCancellation[TResult](CancellationToken cancelToken, Func`2 func)   at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)   at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)

    Unable to find a solution to this issue. Please help

    Regards


    Wednesday, July 3, 2013 8:52 AM

All replies

  • Hi Rallea,

    does this happen also with a blank new Windows Store App? Please try that. If Visual Studio doesn't throw an exception for a blank windows store app, please post the XAML-Code you're using.

    Thomas


    Thomas Claudius Huber Twitter: @thomasclaudiush Homepage: www.thomasclaudiushuber.com Author of the ultimate Windows Store Apps handbook Author of the ultimate WPF handbook Author of the ultimate Silverlight handbook

    Friday, July 5, 2013 9:02 AM
  • I believe this is a known issue. Please check if your if your program files folder (Program Files -> Properties -> Security Tab) has these permissions set for "ALL APPLICATION PACKAGES" >> Read, Read & Execute , List Folder contents. We have seen that these permissions get removed sometimes on users computers. If not please add these to the folder and your problem should be solved. You can use the below command to do the same

    icacls "C:\Program Files (86)" *S-1-15-2-1:(CI)(F)


    Dev@Mic

    Sunday, July 14, 2013 11:33 PM
  • Hi, Dev@Mic

    When I try to run:

    icacls "C:\Program Files (86)" /grant *S-1-15-2-1:(CI)(F)

    I had:

    Access Denied.

    Have you know any solution? Can you help me?

    PS.: Sorry about my english I´m from Brasil.

    Saturday, July 20, 2013 1:09 AM
  • Please run the command as an administrator.

    Dev@Mic

    Saturday, July 20, 2013 8:03 PM