.net framework 4.0 and wpf application - does not work

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
giaur
Level 2
Level 2
Posts: 11
Joined: Sun Jan 09, 2011 12:04 pm

.net framework 4.0 and wpf application - does not work

Post by giaur »

Hello,

I have .net40 installed using winectricks (wine 1.5.11) - installation succesfull. So, to test how it works, I tried to run simple wpf application, created with .net40, Visual Studio 2010 and fluent ribbon framework (http://fluent.codeplex.com/).

And, unfortunatelly - nothing works. This is console output:

Code: Select all

fixme:module:GetModuleHandleExW should pin refcount for 0x79000000
fixme:thread:SetThreadStackGuarantee (0x32fc14): stub
fixme:shell:URL_ParseUrl failed to parse L"PresentationFramework"
fixme:shell:URL_ParseUrl failed to parse L"WindowsBase"
fixme:shell:URL_ParseUrl failed to parse L"System.Xaml"
fixme:shell:URL_ParseUrl failed to parse L"System"
fixme:shell:URL_ParseUrl failed to parse L"PresentationCore"
fixme:advapi:RegisterTraceGuidsW (0x550b9c5c, 0x5516e048, {e13b77a8-14b6-11de-8069-001b212b5009}, 1, 0x32b974, (null), (null), 0x5516e048,): stub
fixme:advapi:RegisterTraceGuidsW (0x9c4702, (nil), {e13b77a8-14b6-11de-8069-001b212b5009}, 1, 0x32e5d0, (null), (null), 0x32e5d8,): stub
fixme:advapi:RegisterTraceGuidsW (0x9c4862, (nil), {8e9f5090-2d75-4d03-8a81-e5afbf85daf1}, 1, 0x32e480, (null), (null), 0xd110e4,): stub
fixme:shell:URL_ParseUrl failed to parse L"FluentTest.resources"
fixme:shell:URL_ParseUrl failed to parse L"FluentTest.resources"
fixme:shell:URL_ParseUrl failed to parse L"Fluent"
fixme:shell:URL_ParseUrl failed to parse L"Fluent.resources"
fixme:shell:URL_ParseUrl failed to parse L"Fluent.resources"
fixme:shell:URL_ParseUrl failed to parse L"UIAutomationTypes"
fixme:shell:URL_ParseUrl failed to parse L"System.Xml"
fixme:shell:URL_ParseUrl failed to parse L"Fluent"
fixme:msg:ChangeWindowMessageFilter c054 00000001
fixme:advapi:RegisterTraceGuidsW (0x56216bfc, 0x56263028, {0635afbf-f587-4fe5-a020-edca759acbd9}, 1, 0x32d800, (null), (null), 0x56263028,): stub
fixme:rpc:RpcMgmtIsServerListening (0x187f08): stub
fixme:wer:WerRegisterMemoryBlock (0x56263970 352) stub
fixme:wer:WerRegisterMemoryBlock (0x5626345c 4) stub
fixme:wer:WerRegisterMemoryBlock (0x551759b0 6144) stub
fixme:wer:WerRegisterMemoryBlock (0x551759ac 4) stub
fixme:shell:URL_ParseUrl failed to parse L"mscorlib.resources"
fixme:shell:URL_ParseUrl failed to parse L"mscorlib.resources"
fixme:shell:URL_ParseUrl failed to parse L"System.Xaml.resources"
fixme:shell:URL_ParseUrl failed to parse L"System.Xaml.resources"

Unhandled Exception: System.Windows.Markup.XamlParseException: Add value to collection of type 'System.Windows.Controls.UIElementCollection' threw an exception. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800706A6
   at System.Windows.Media.MediaSystem.ConnectTransport()
   at System.Windows.Media.MediaSystem.Startup(MediaContext mc)
   at System.Windows.Media.MediaContext..ctor(Dispatcher dispatcher)
   at System.Windows.Media.MediaContext.From(Dispatcher dispatcher)                                                                                                  
   at System.Windows.Media.Visual.VerifyAPIReadWrite()                                                                                                               
   at System.Windows.Media.VisualCollection.Add(Visual visual)                                                                                                       
   at System.Windows.Controls.UIElementCollection.AddInternal(UIElement element)                                                                                     
   at System.Windows.Controls.UIElementCollection.Add(UIElement element)
   at System.Windows.Controls.UIElementCollection.System.Collections.IList.Add(Object value)
   at System.Xaml.Schema.XamlTypeInvoker.AddToCollection(Object instance, Object item)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.Add(Object collection, XamlType collectionType, Object value, XamlType valueXamlType)
   --- End of inner exception stack trace ---
   at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)
   at System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)
   at System.Windows.Application.DoStartup()
   at System.Windows.Application.<.ctor>b__1(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
   at FluentTest.App.Main()
Everything on fresh wine prefix with only .net40 installed, so no mess inside. Is there any solution to make wpf .net40 applications work on wine?
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Re: .net framework 4.0 and wpf application - does not work

Post by DanKegel »

No, not for now.

There are a number of bugs that need to be fixed first:
http://bugs.winehq.org/buglist.cgi?quicksearch=wpf
giaur
Level 2
Level 2
Posts: 11
Joined: Sun Jan 09, 2011 12:04 pm

Re: .net framework 4.0 and wpf application - does not work

Post by giaur »

Bump... I just noticed that .net 4.5 in wine appdb has status "working: everything, not working: none, untested: n/a". Does it mean that wpf is supported and should work with .net 4.5 on wine?
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: .net framework 4.0 and wpf application - does not work

Post by dimesio »

IMO, that particular test report never should have been accepted because it doesn't have enough detail. However, the previous test is from the maintainer, and it says:
WPF applications are mostly now working thanks to recent client side window rendering code.
giaur500
Level 1
Level 1
Posts: 5
Joined: Sat Oct 19, 2013 2:52 pm

Re: .net framework 4.0 and wpf application - does not work

Post by giaur500 »

I can confirm wpf works quite good. But, regarding to my previous sample (Fluent Ribbon). It doesn't work:

Code: Select all

Unhandled Exception: System.IO.IsolatedStorage.IsolatedStorageException: Unable to create the store directory. (Exception from HRESULT: 0x80131468)
   at System.IO.IsolatedStorage.IsolatedStorageFile.GetRootDir(IsolatedStorageScope scope, StringHandleOnStack retRootDir)
   at System.IO.IsolatedStorage.IsolatedStorageFile.InitGlobalsNonRoamingUser(IsolatedStorageScope scope)
   at System.IO.IsolatedStorage.IsolatedStorageFile.GetRootDir(IsolatedStorageScope scope)
   at System.IO.IsolatedStorage.IsolatedStorageFile.GetGlobalFileIOPerm(IsolatedStorageScope scope)
   at System.IO.IsolatedStorage.IsolatedStorageFile.Init(IsolatedStorageScope scope)
   at System.IO.IsolatedStorage.IsolatedStorageFile.GetUserStoreForAssembly()
   at Fluent.Ribbon.GetIsolatedStorageFile() in C:\Users\Sergey\Documents\Visual Studio 2008\Projects\Fluent\Fluent\Ribbon.cs:line 1754
   at Fluent.Ribbon.LoadState() in C:\Users\Sergey\Documents\Visual Studio 2008\Projects\Fluent\Fluent\Ribbon.cs:line 1732
   at Fluent.Ribbon.OnJustLayoutUpdated(Object sender, EventArgs e) in C:\Users\Sergey\Documents\Visual Studio 2008\Projects\Fluent\Fluent\Ribbon.cs:line 1701
   at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.UIElement.UpdateLayout()
   at Fluent.RibbonTabControl.UpdateSelectedContent() in C:\Users\Sergey\Documents\Visual Studio 2008\Projects\Fluent\Fluent\RibbonTabControl.cs:line 522
   at Fluent.RibbonTabControl.OnSelectionChanged(SelectionChangedEventArgs e) in C:\Users\Sergey\Documents\Visual Studio 2008\Projects\Fluent\Fluent\RibbonTabControl.cs:line 372
   at System.Windows.Controls.Primitives.Selector.InvokeSelectionChanged(List`1 unselectedItems, List`1 selectedItems)
   at System.Windows.Controls.Primitives.Selector.SelectionChanger.End()
   at System.Windows.Controls.Primitives.Selector.SelectionChanger.SelectJustThisItem(Object item, Boolean assumeInItemsCollection)
   at System.Windows.Controls.Primitives.Selector.OnSelectedIndexChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
   at Fluent.Ribbon.OnLoaded(Object sender, RoutedEventArgs e) in C:\Users\Sergey\Documents\Visual Studio 2008\Projects\Fluent\Fluent\Ribbon.cs:line 1471
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at MS.Internal.LoadedOrUnloadedOperation.DoWork()
   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
   at System.Windows.Interop.HwndTarget.OnResize()
   at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.HwndSubclass.DefWndProcWrapper(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at Fluent.NativeMethods.SetWindowRgn(IntPtr hWnd, IntPtr hRgn, Boolean bRedraw)
   at Fluent.RibbonWindow.SetRoundingRegion(Nullable`1 wp) in C:\Users\Sergey\Documents\Visual Studio 2008\Projects\Fluent\Fluent\RibbonWindow.cs:line 1022
   at Fluent.RibbonWindow.UpdateFrameState(Boolean force) in C:\Users\Sergey\Documents\Visual Studio 2008\Projects\Fluent\Fluent\RibbonWindow.cs:line 888
   at Fluent.RibbonWindow.ApplyCustomChrome() in C:\Users\Sergey\Documents\Visual Studio 2008\Projects\Fluent\Fluent\RibbonWindow.cs:line 548
   at Fluent.RibbonWindow.OnSourceInitialized(EventArgs e) in C:\Users\Sergey\Documents\Visual Studio 2008\Projects\Fluent\Fluent\RibbonWindow.cs:line 466
   at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
   at System.Windows.Window.CreateSourceWindowDuringShow()
   at System.Windows.Window.SafeCreateWindowDuringShow()
   at System.Windows.Window.ShowHelper(Object booleanBox)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at System.Windows.Application.Run(Window window)
Is there any workaround for Isolated Storage support in wine?
Locked