Bug Report T834005
Visible to All Users

The WPF Theme Designer preview is not displayed if the target version is 17.2

created 5 years ago

I can't open any control in the theme manager - tried to install it with msi and exe but none of them seem to work.
Already put it in elevated enviromnet.

C#
Preview crashed in addin. Exception: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. bei ReflectionFramework.Internal.BaseReflectionHelperInterfaceWrapperGenerator.InstanceCacheKey.InstanceCacheKeyEqualityComparer.GetHashCode(InstanceCacheKey obj) bei System.Collections.Generic.Dictionary`2.FindEntry(TKey key) bei System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value) bei ReflectionFramework.Internal.BaseReflectionHelperInterfaceWrapperGenerator.CachedCreateImpl() bei ReflectionFramework.Internal.ReflectionHelperInterfaceWrapperGenerator`1.Create() bei ReflectionFramework.Extensions.ReflectionHelperExtensions.Wrap[TWrapper](Type targetType) bei DevExpress.Xpf.ThemeDesigner.PreviewAddIn.RuntimeTypesHelper.get_NamescopeHelper() bei DevExpress.Xpf.ThemeDesigner.PreviewAddIn.VisualTree.<ToElements>d__8.MoveNext() bei System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext() bei System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() bei System.Linq.Buffer`1..ctor(IEnumerable`1 source) bei System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source) bei System.Collections.Immutable.ImmutableArray.CreateRange[T](IEnumerable`1 items) bei System.Collections.Immutable.ImmutableArray.ToImmutableArray[TSource](IEnumerable`1 items) bei DevExpress.Xpf.ThemeDesigner.PreviewAddIn.VisualTree..ctor(IEnumerable`1 elements) bei DevExpress.Xpf.ThemeDesigner.PreviewAddIn.PreviewViewModel.Navigate(Object selectedObject) bei DevExpress.Xpf.ThemeDesigner.PreviewAddIn.PreviewViewModel.UpdateSelection(Object selectedObject) bei DevExpress.Xpf.ThemeDesigner.PreviewAddIn.PreviewViewModel.SelectPreviewControl() bei DevExpress.Xpf.ThemeDesigner.PreviewAddIn.PreviewViewModel.<UpdateContent>b__49_1() bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

and

C#
Preview crashed in launcher. System.Runtime.Remoting.RemotingException: Fehler beim Verbinden mit einem IPC-Port: Das System kann die angegebene Datei nicht finden. Server stack trace: bei System.Runtime.Remoting.Channels.Ipc.IpcPort.Connect(String portName, Boolean secure, TokenImpersonationLevel impersonationLevel, Int32 timeout) bei System.Runtime.Remoting.Channels.Ipc.ConnectionCache.GetConnection(String portName, Boolean secure, TokenImpersonationLevel level, Int32 timeout) bei System.Runtime.Remoting.Channels.Ipc.IpcClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream) bei System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg) Exception rethrown at [0]: bei System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) bei DevExpress.Xpf.ThemeDesigner.Contracts.IPreviewProviderContract.SelectPreview(IPreviewModelContract preview, Boolean breakpoint) bei DevExpress.Xpf.ThemeDesigner.HostSideAdapters.IPreviewProviderTestsContractToViewHostAdapter.SelectPreview(IPreviewModel preview, Boolean breakpoint) bei DevExpress.Xpf.ThemeDesigner.Launcher.Host.SelectPreview(IPreviewModel selectedPreview)

Debugging with VS didn't help as there was just one time a error message which said: File not found

C#
System.IO.FileNotFoundException HResult=0x8007007E Message=Das angegebene Modul wurde nicht gefunden. (Ausnahme von HRESULT: 0x8007007E) Source=<Cannot evaluate the exception source> StackTrace: <Cannot evaluate the exception stack trace>
Comments (3)
Kirill (DevExpress Support) 5 years ago

    Hello,
    I've reproduced this issue and forwarded it to our R&D team for further research. Follow our notifications to be informed about our progress.
    In the meantime, I suggest that you install the previous version of the WPF Theme Designer - 19.1 You can find it an the following link: https://github.com/DevExpress/wpf-themedesigner-app/releases/tag/19.1.4.

    Thanks,
    Kirill

      Now it works. Thanks! Let me know if the bug is fixed :)

      Kirill (DevExpress Support) 5 years ago

        You are welcome! In the meantime, do you mind if we make this ticket public? It will help other users if they face the same issue.

        Thanks,
        Kirill

        Answers approved by DevExpress Support

        created 5 years ago

        Theme Designer v19.2.4 is already available for download at https://github.com/DevExpress/wpf-themedesigner-app/releases. If you already have Theme Designer installed, it will suggest upgrading if you restart it.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.