.Net error when wine from home

Questions about Wine on Linux
Locked
morlowski
Newbie
Newbie
Posts: 1
Joined: Mon Aug 03, 2015 5:20 am

.Net error when wine from home

Post by morlowski »

Hello, I'm new in wine but know something already.

I've configured it to WINEARCH=win32 at default prefix ~/.wine
Then I've installed dotnet45 by winetricks and to that point everything is good.

I also wrote my Console Application in Visual Studio using .NET Framework 4.5, packed it with InstallShield and install this package on Ubuntu without any problems.

Now from terminal - I can do thing:

Code: Select all

cd .wine/drive_c/Program\ Files/MyApplication/
wine MyApp.exe
and it's work fine, but when I'm trying to do:

Code: Select all

wine .wine/drive_c/Program\ Files/MyApplication/MyApp.exe
or even:

Code: Select all

wine C:/Program\ Files/MyApplication/MyApp.exe
it's returning:

Code: Select all

fixme:process:SetProcessDEPPolicy (1): stub
fixme:wer:WerSetFlags (2) stub!
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:process:SetProcessShutdownParameters (00000380, 00000000): partial stub.
fixme:process:GetNumaHighestNodeNumber (0x32fb88): stub
fixme:thread:SetThreadStackGuarantee (0x32fb6c): stub
err:ntdll:NtQueryInformationToken Unhandled Token Information class 29!
err:ntdll:NtQueryInformationToken Unhandled Token Information class 29!
fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x000003fe,0x14eb98,0x0001,0x00000000,0x340e400,(nil)): stub
err:eventlog:ReportEventW L".NET Runtime version 4.0.30319.17929 - There was a failure initializing profiling API attach infrastructure.  This process will not allow a profiler to attach.  HRESULT: 0x800706a9.  Process ID (decimal): 8.  Message ID: [0x2509]."
fixme:advapi:DeregisterEventSource (0xcafe4242) stub
fixme:shell:URL_ParseUrl failed to parse L"System.Xml.Linq"
fixme:shell:URL_ParseUrl 
failed to parse L"System.Xml"
fixme:shell:URL_ParseUrl 
failed to parse L"System.ServiceModel"
fixme:shell:URL_ParseUrl 
failed to parse L"System"
fixme:shell:URL_ParseUrl 
failed to parse L"SMDiagnostics"
fixme:shell:URL_ParseUrl 
failed to parse L"Newtonsoft.Json"
fixme:shell:URL_ParseUrl 
failed to parse L"System.Core"
fixme:shell:URL_ParseUrl 
fixme:advapi:EventRegister {8e9f5090-2d75-4d03-8a81-e5afbf85daf1}, 0x6b418a, (nil), 0x12785e8
fixme:process:FlushProcessWriteBuffers : stub
fixme:advapi:EventUnregister deadbeef: stub
fixme:ole:Context_CC_ContextCallback (0x170a00/0x170a04)->(0x8b7011, 0x340e204, {d7174f82-36b8-4aa8-800a-e963ab2dfab9}, 2, (nil))
fixme:ole:Context_CC_ContextCallback (0x170a00/0x170a04)->(0x8b7011, 0x340e18c, {d7174f82-36b8-4aa8-800a-e963ab2dfab9}, 2, (nil))
fixme:ole:Context_CC_ContextCallback (0x170a00/0x170a04)->(0x8b7011, 0x340e18c, {d7174f82-36b8-4aa8-800a-e963ab2dfab9}, 2, (nil))
fixme:ole:Context_CC_ContextCallback (0x170a00/0x170a04)->(0x8b7011, 0x340e18c, {d7174f82-36b8-4aa8-800a-e963ab2dfab9}, 2, (nil))
fixme:ole:Context_CC_ContextCallback (0x170a00/0x170a04)->(0x8b7011, 0x340e18c, {d7174f82-36b8-4aa8-800a-e963ab2dfab9}, 2, (nil))
Why .NET crash with HRESULT: 0x800706a9? How can I repair it? I wanna turn off profiling in my application, but I coudn't find any option in Visual Studio.
Could you help me?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: .Net error when wine from home

Post by dimesio »

If you don't cd to the directory containing the executable you need to use wine start with the full path, and if you use a unix-style path, it needs to be wine start /unix. http://wiki.winehq.org/FAQ#run_from_terminal
Locked