Running .Net 2.0 SP1 application Zalktis

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
siicis
Level 1
Level 1
Posts: 6
Joined: Mon May 24, 2010 12:24 pm

Running .Net 2.0 SP1 application Zalktis

Post by siicis »

Hello!
I am trying to run Latvian accounting software Zalktis (free demo http://www.zalktis.lv/faili.htm) on Wine.
It requires MS .Net Framework 2.0 Service Pack 1 and MS MDAC Refresh 2.8
I am running latest Wine (wine-1.2-rc1), installed dotnet20 and mono trough winetricks. Operating system:ubuntu 10.04
This program installs fine, but then I want to run it crashes (with send and don`t send error)
Here is terminal output:

Code: Select all

fixme:actctx:parse_manifest_buffer root element is L"asmv1:assembly", not <assembly>
fixme:sync:CreateMemoryResourceNotification (0) stub
err:ole:CoGetContextToken apartment not initialised
fixme:shell:URL_ParseUrl failed to parse L"System"
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"Microsoft.VisualBasic"
fixme:shell:URL_ParseUrl failed to parse L"System.Windows.Forms"
fixme:shell:URL_ParseUrl failed to parse L"System.Drawing"
fixme:shell:URL_ParseUrl failed to parse L"Accessibility"
fixme:shell:URL_ParseUrl failed to parse L"System.Runtime.Remoting"
fixme:advapi:LsaOpenPolicy ((null),0x32f14c,0x00000800,0x32f0f4) stub
fixme:advapi:LsaClose (0xcafe) stub
fixme:advapi:LsaOpenPolicy ((null),0x32f0bc,0x00000800,0x32f064) stub
fixme:advapi:LsaClose (0xcafe) stub
fixme:imm:ImmDisableIME (-1): stub
fixme:thread:NtQueryInformationThread Cannot get kerneltime or usertime of other threads
fixme:thread:NtQueryInformationThread info class 9 not supported yet
fixme:thread:NtQueryInformationThread info class 9 not supported yet
fixme:thread:NtQueryInformationThread info class 9 not supported yet
fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime 2.0 Error Reporting"): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00001388,(nil),0x000b,0x000000fe,0x3009b09c,0x5dc624): stub
err:eventlog:ReportEventW L"clr20r3"
err:eventlog:ReportEventW L"zalktis.exe"
err:eventlog:ReportEventW L"2010.1.135.36624"
err:eventlog:ReportEventW L"4b62223b"
err:eventlog:ReportEventW L"mscorlib"
err:eventlog:ReportEventW L"2.0.0.0"
err:eventlog:ReportEventW L"471ebc5b"
err:eventlog:ReportEventW L"5342"
err:eventlog:ReportEventW L"61"
err:eventlog:ReportEventW L"n51cffzwz1gffvslvrub5uxq1gvd0txu"
err:eventlog:ReportEventW L"NIL"
fixme:advapi:DeregisterEventSource (0xcafe4242) stub
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
fixme:richedit:ME_HandleMessage EM_SETMARGINS: stub
fixme:richedit:ME_HandleMessage EM_SETMARGINS: stub
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
fixme:richedit:ME_HandleMessage EM_SETMARGINS: stub
fixme:richedit:ME_HandleMessage EM_SETMARGINS: stub
err:ole:CoUninitialize Mismatched CoUninitialize
err:ole:CoUninitialize Mismatched CoUninitialize
err:ole:CoUninitialize Mismatched CoUninitialize
err:ole:CoUninitialize Mismatched CoUninitialize

Unhandled Exception: System.Security.Principal.IdentityNotMappedException: Some or all identity references could not be translated.
   at System.Security.Principal.NTAccount.Translate(IdentityReferenceCollection sourceAccounts, Type targetType, Boolean forceSuccess)
   at System.Security.Principal.NTAccount.Translate(Type targetType)
   at System.Security.AccessControl.CommonObjectSecurity.ModifyAccess(AccessControlModification modification, AccessRule rule, Boolean& modified)
   at System.Security.AccessControl.CommonObjectSecurity.AddAccessRule(AccessRule rule)
   at System.Security.AccessControl.EventWaitHandleSecurity.AddAccessRule(EventWaitHandleAccessRule rule)
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
   at DR1YupkWQDkW99sGOc.vT7T7WMaYnPDSYkoAX.RICY3hany(String[] )
   at <PrivateImplementationDetails>{3007457E-23E8-4569-B26F-B2C339297B65}.Main(String[] Args)
wine: Unhandled exception 0xe0434f4d at address 0x7b836812 (thread 0009), starting debugger...
Unhandled exception: 0xe0434f4d in 32-bit code (0x7b836812).
Register dump:
 CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
 EIP:7b836812 ESP:0032f04c EBP:0032f0b0 EFLAGS:00000246(   - --  I  Z- -P- )
 EAX:7b826691 EBX:7b883ff4 ECX:00000000 EDX:e0434f4d
 ESI:e0434f4d EDI:001316e0
Stack dump:
0x0032f04c:  0032f0e8 00000004 0000003c e0434f4d
0x0032f05c:  00000001 00000000 7b836812 00000001
0x0032f06c:  80131501 02000038 0032f088 79e7b494
0x0032f07c:  0032f094 02000038 00000001 0032f098
0x0032f08c:  79e7e17f 0000012f 003f0544 0032f0a8
0x0032f09c:  79f07282 04536de4 7b8367ca e0434f4d
Backtrace:
=>0 0x7b836812 in kernel32 (+0x26812) (0x0032f0b0)
  1 0x79f071ac in mscorwks (+0x971ab) (0x0032f110)
  2 0x79f0a629 in mscorwks (+0x9a628) (0x0032f1d4)
  3 0x05db7216 (0x0032f210)
  4 0x05db6f90 (0x01dadd1c)
  5 0x01dadbd4 (0x0453658c)
  6 0x0000000c (0x020c0000)
0x7b836812: subl	$4,%esp
Modules:
Module	Address			Debug info	Name (86 modules)
PE	  400000- 1502000	Deferred        zalktis
PE	 5f30000- 5fbd000	Deferred        diasymreader
ELF	20000000-20027000	Deferred        libexpat.so.1
ELF	20027000-200c9000	Deferred        winex11<elf>
  \-PE	20040000-200c9000	\               winex11
ELF	200c9000-200cf000	Deferred        libxdmcp.so.6
ELF	200cf000-200d9000	Deferred        libxrender.so.1
ELF	200d9000-200e1000	Deferred        libxrandr.so.2
ELF	200e1000-200fa000	Deferred        imagehlp<elf>
  \-PE	200f0000-200fa000	\               imagehlp
ELF	200fa000-20137000	Deferred        rsaenh<elf>
  \-PE	20100000-20137000	\               rsaenh
ELF	20137000-20150000	Deferred        version<elf>
  \-PE	20140000-20150000	\               version
ELF	20fd6000-20fe0000	Deferred        libxcursor.so.1
ELF	228c4000-228f8000	Deferred        uxtheme<elf>
  \-PE	228d0000-228f8000	\               uxtheme
ELF	255ab000-255b1000	Deferred        libxxf86vm.so.1
ELF	29eac000-29eb0000	Deferred        libxinerama.so.1
ELF	2a69a000-2a72e000	Deferred        crypt32<elf>
  \-PE	2a6a0000-2a72e000	\               crypt32
ELF	2de9a000-2defc000	Deferred        shlwapi<elf>
  \-PE	2deb0000-2defc000	\               shlwapi
ELF	3058e000-3059e000	Deferred        libxext.so.6
ELF	33cb7000-33cbb000	Deferred        libxcomposite.so.1
ELF	344c1000-344d5000	Deferred        lz32<elf>
  \-PE	344d0000-344d5000	\               lz32
ELF	34812000-34818000	Deferred        libxfixes.so.3
ELF	38954000-38958000	Deferred        libxau.so.6
ELF	398e4000-39a01000	Deferred        libx11.so.6
ELF	3c873000-3c95c000	Deferred        comctl32<elf>
  \-PE	3c880000-3c95c000	\               comctl32
ELF	3de1f000-3de39000	Deferred        libxcb.so.1
ELF	3f083000-3f0b3000	Deferred        libfontconfig.so.1
ELF	3f8c4000-3f9c4000	Deferred        ole32<elf>
  \-PE	3f8e0000-3f9c4000	\               ole32
ELF	43988000-439e2000	Deferred        advapi32<elf>
  \-PE	43990000-439e2000	\               advapi32
ELF	4a9ea000-4a9ff000	Deferred        libz.so.1
ELF	4c3fd000-4c41f000	Deferred        imm32<elf>
  \-PE	4c400000-4c41f000	\               imm32
ELF	5346b000-53481000	Deferred        psapi<elf>
  \-PE	53470000-53481000	\               psapi
ELF	55084000-550fa000	Deferred        libfreetype.so.6
ELF	58ce3000-58eb3000	Deferred        shell32<elf>
  \-PE	58cf0000-58eb3000	\               shell32
ELF	5cb74000-5cbff000	Deferred        gdi32<elf>
  \-PE	5cb80000-5cbff000	\               gdi32
PE	5e410000-5e4b8000	Deferred        microsoft.visualbasic
PE	60000000-60008000	Deferred        accessibility
PE	64020000-64033000	Deferred        mscorsec
ELF	64b76000-64b8f000	Deferred        libice.so.6
PE	67770000-677bc000	Deferred        system.runtime.remoting
ELF	67949000-67a79000	Deferred        user32<elf>
  \-PE	67960000-67a79000	\               user32
ELF	68000000-6801d000	Deferred        ld-linux.so.2
ELF	6801d000-6815d000	Deferred        libwine.so.1
ELF	6815d000-68176000	Deferred        libpthread.so.0
ELF	68176000-682d0000	Deferred        libc.so.6
ELF	682d0000-682d4000	Deferred        libdl.so.2
ELF	682d4000-682fa000	Deferred        libm.so.6
ELF	682fa000-68302000	Deferred        libnss_compat.so.2
ELF	68302000-68319000	Deferred        libnsl.so.1
ELF	68319000-68325000	Deferred        libnss_files.so.2
ELF	6d9ef000-6da21000	Deferred        wintrust<elf>
  \-PE	6da00000-6da21000	\               wintrust
ELF	70b68000-70b72000	Deferred        libnss_nis.so.2
ELF	71948000-719c9000	Deferred        msvcrt<elf>
  \-PE	71960000-719c9000	\               msvcrt
ELF	71c83000-71c8c000	Deferred        libsm.so.6
ELF	721e1000-721e6000	Deferred        libuuid.so.1
ELF	73f1c000-73f90000	Deferred        rpcrt4<elf>
  \-PE	73f30000-73f90000	\               rpcrt4
PE	78130000-781cb000	Deferred        msvcr80
PE	79000000-79046000	Deferred        mscoree
PE	79060000-790b6000	Deferred        mscorjit
PE	790c0000-79500000	Deferred        mscorlib
PE	79e70000-7a3ff000	Export          mscorwks
PE	7a440000-7a732000	Deferred        system
PE	7ade0000-7ae7e000	Deferred        system.drawing
PE	7afd0000-7b4e6000	Deferred        system.windows.forms
ELF	7b800000-7b93c000	Export          kernel32<elf>
  \-PE	7b810000-7b93c000	\               kernel32
ELF	7bc00000-7bcb8000	Deferred        ntdll<elf>
  \-PE	7bc10000-7bcb8000	\               ntdll
ELF	7bf00000-7bf04000	Deferred        <wine-loader>
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) C:\Program Files\Zalktis\Zalktis.exe
	0000001a    2
	00000019    0
	00000009    0 <==
0000000e services.exe
	00000014    0
	00000010    0
	0000000f    0
00000011 winedevice.exe
	00000018    0
	00000016    0
	00000013    0
	00000012    0
0000001b explorer.exe
	0000001c    0
Backtrace:
=>0 0x7b836812 in kernel32 (+0x26812) (0x0032f0b0)
  1 0x79f071ac in mscorwks (+0x971ab) (0x0032f110)
  2 0x79f0a629 in mscorwks (+0x9a628) (0x0032f1d4)
  3 0x05db7216 (0x0032f210)
  4 0x05db6f90 (0x01dadd1c)
  5 0x01dadbd4 (0x0453658c)
  6 0x0000000c (0x020c0000)
fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x000003ff,(nil),0x0001,0x00000000,0x32eb9c,(nil)): stub
err:eventlog:ReportEventW L".NET Runtime version 2.0.50727.1433 - Fatal Execution Engine Error (79F071BC) (80131506)"
fixme:advapi:DeregisterEventSource (0xcafe4242) stub
Here is Zalktis error message:
Image
Can anyone please help me with this siftware?
qwertymn
Level 4
Level 4
Posts: 236
Joined: Thu Mar 27, 2008 3:42 am

Post by qwertymn »

That looks like bug http://bugs.winehq.org/show_bug.cgi?id=16418

You could try patch http://bugs2.winehq.org/attachment.cgi?id=26958 see if it works around the bug
siicis
Level 1
Level 1
Posts: 6
Joined: Mon May 24, 2010 12:24 pm

Post by siicis »

Thank you for quick answer!
Sorry for silly question, but how do I apply this path?
User avatar
dimesio
Moderator
Moderator
Posts: 13202
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

siicis wrote:Thank you for quick answer!
Sorry for silly question, but how do I apply this path?
http://wiki.winehq.org/FAQ#head-7ed3c31 ... 53dc41817b
siicis
Level 1
Level 1
Posts: 6
Joined: Mon May 24, 2010 12:24 pm

Post by siicis »

Hello! Patch worked for me and program is now starting, but I have error messages in it.
First then I start it this message appears:
Image
Then I press continue program starts but crappy.
Full text that appears in the error box:

Code: Select all

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NotImplementedException: Not implemented.
   at System.Drawing.Drawing2D.LinearGradientBrush.TranslateTransform(Single dx, Single dy, MatrixOrder order)
   at System.Drawing.Drawing2D.LinearGradientBrush.TranslateTransform(Single dx, Single dy)
   at System.Windows.Forms.ToolStripProfessionalRenderer.RenderBackgroundGradient(Graphics g, Control control, Color beginColor, Color endColor, Orientation orientation)
   at System.Windows.Forms.ToolStripProfessionalRenderer.RenderMenuStripBackground(ToolStripRenderEventArgs e)
   at System.Windows.Forms.ToolStripProfessionalRenderer.OnRenderToolStripBackground(ToolStripRenderEventArgs e)
   at System.Windows.Forms.ToolStripRenderer.DrawToolStripBackground(ToolStripRenderEventArgs e)
   at System.Windows.Forms.ToolStrip.OnPaintBackground(PaintEventArgs e)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.MenuStrip.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Zalktis
    Assembly Version: 2010.1.135.36624
    Win32 Version: 2010.1.135
    CodeBase: file:///C:/Program%20Files/Zalktis/Zalktis.exe
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
May someone can help me with this?
qwertymn
Level 4
Level 4
Posts: 236
Joined: Thu Mar 27, 2008 3:42 am

Post by qwertymn »

try 'winetricks gdiplus'
siicis
Level 1
Level 1
Posts: 6
Joined: Mon May 24, 2010 12:24 pm

Post by siicis »

Nice! It is working like a charm! Thank you for you help!
Additionally to run database of this software I installed "winetricks jet40" and "winetricks dotnet20"
Thank you once again!
:D
Locked