http://bugs.winehq.org/show_bug.cgi?id=30075
Bug #: 30075 Summary: Microsoft .NET Framework 4.5 Developer Preview CLR needs kernel32.dll WerRegisterRuntimeExceptionModule (returning S_OK) to run .NET apps Product: Wine Version: 1.4-rc6 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: focht@gmx.net Classification: Unclassified
Hello,
after upgrading an existing .NET Framework 4.0 WINEPREFIX with .NET Framework 4.5 (dev preview) some simple apps that previously worked failed to run.
I created a simple C# based .NET "hello world" console app using the provided C# compiler (csc.exe) in .NET 4.0 prefix and it fails to execute after .NET 4.5 CLR upgrade:
--- snip --- 002b:Starting process L"C:\windows\Microsoft.NET\Framework\v4.0.30319\hello.exe" (entryproc=0x40233e) ... 002b:Call KERNEL32.GetModuleHandleW(007f8424 L"kernel32.dll") ret=008378ea 002b:Ret KERNEL32.GetModuleHandleW() retval=7b810000 ret=008378ea 002b:Call KERNEL32.GetProcAddress(7b810000,00837968 "WerRegisterRuntimeExceptionModule") ret=008378fe 002b:Ret KERNEL32.GetProcAddress() retval=00000000 ret=008378fe ... 002b:Call KERNEL32.LoadLibraryExW(0032f944 L"C:\windows\Microsoft.NET\Framework\v4.0.30319\mscorrc.dll",00000000,00000002) ret=008e1f58 002b:Ret KERNEL32.LoadLibraryExW() retval=00f00001 ret=008e1f58 ... 002b:Call user32.MessageBoxW(00000000,0032fa20 L"CLR error: 80004005.\n The program will now terminate.",0032f3f0 L"hello.exe - Fatal error",00002010) ret=00ace3f9 ... --- snip ---
It seems there is an improved integration of error reporting with WER.
MSDN: http://msdn.microsoft.com/en-us/library/windows/desktop/dd408167%28v=vs.85%2...
Adding a stub returning E_NOTIMPL doesn't make the CLR happy:
--- snip --- 002b:Call KERNEL32.GetModuleHandleW(007f8424 L"kernel32.dll") ret=008378ea 002b:Ret KERNEL32.GetModuleHandleW() retval=7b810000 ret=008378ea 002b:Call KERNEL32.GetProcAddress(7b810000,00837968 "WerRegisterRuntimeExceptionModule") ret=008378fe 002b:Ret KERNEL32.GetProcAddress() retval=7b825418 ret=008378fe 002b:Call KERNEL32.WerRegisterRuntimeExceptionModule(0032f88c L"C:\windows\Microsoft.NET\Framework\v4.0.30319\mscordacwks.dll",00740000) ret=00837915 002b:fixme:wer:WerRegisterRuntimeExceptionModule (L"C:\windows\Microsoft.NET\Framework\v4.0.30319\mscordacwks.dll", 0x740000) stub! 002b:Ret KERNEL32.WerRegisterRuntimeExceptionModule() retval=80004001 ret=00837915 ... 002b:Call user32.MessageBoxW(00000000,0032fa20 L"CLR error: 80004005.\n The program will now terminate.",0032f3f0 L"hello.exe - Fatal error",00002010) ret=00ace3f9 --- snip ---
You have to return S_OK to please the CLR. With that change "hello world" runs again. Yay!
Regards
http://bugs.winehq.org/show_bug.cgi?id=30075
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, download, Installer URL| |http://www.microsoft.com/do | |wnload/en/details.aspx?disp | |laylang=en&id=27537 Component|-unknown |kernel32 Depends on| |30074
--- Comment #1 from Anastasius Focht focht@gmx.net 2012-03-04 07:58:01 CST --- Hello,
filling fields
Regards
http://bugs.winehq.org/show_bug.cgi?id=30075
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |30076
http://bugs.winehq.org/show_bug.cgi?id=30075
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|wine-bugs@winehq.org |austinenglish@gmail.com
--- Comment #2 from Austin English austinenglish@gmail.com 2012-03-04 16:41:45 CST --- Created attachment 39193 --> http://bugs.winehq.org/attachment.cgi?id=39193 stub
Will send after 1.4.
http://bugs.winehq.org/show_bug.cgi?id=30075
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Microsoft .NET Framework |Microsoft .NET Framework |4.5 Developer Preview CLR |4.x CLR needs kernel32.dll |needs kernel32.dll |WerRegisterRuntimeException |WerRegisterRuntimeException |Module (returning S_OK) to |Module (returning S_OK) to |run .NET apps |run .NET apps |
--- Comment #3 from Anastasius Focht focht@gmx.net 2012-03-11 13:22:19 CDT --- Hello,
refining summary to target .NET 4.x CLR (not only 4.5 preview).
"Microsoft Robotics Developer Studio 4" installer (http://www.microsoft.com/download/en/details.aspx?id=29081) is also affected by this. Needs 'winetricks -q dotnet40' prerequisite.
$ du -sh Microsoft\ Robotics\ Developer\ Studio\ 4.exe 290M Microsoft Robotics Developer Studio 4.exe
$ sha1sum Microsoft\ Robotics\ Developer\ Studio\ 4.exe 68db5e34f930a57d5710301fb6f0fa8f65b13a0d Microsoft Robotics Developer Studio 4.exe
$ wine --version wine-1.4-78-g94953f1
Regards
http://bugs.winehq.org/show_bug.cgi?id=30075
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
http://bugs.winehq.org/show_bug.cgi?id=30075
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |f135f18b58cd6e7d6704a437c18 | |3df9806fb1d25 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #4 from Austin English austinenglish@gmail.com 2012-03-13 14:04:50 CDT --- http://source.winehq.org/git/wine.git/commitdiff/f135f18b58cd6e7d6704a437c18...
http://bugs.winehq.org/show_bug.cgi?id=30075
Bug 30075 depends on bug 30074, which changed state.
Bug 30074 Summary: Microsoft .NET Framework 4.5 Developer Preview installer needs stub wusa.exe http://bugs.winehq.org/show_bug.cgi?id=30074
What |Old Value |New Value ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
http://bugs.winehq.org/show_bug.cgi?id=30075
--- Comment #5 from Alexandre Julliard julliard@winehq.org 2012-03-16 14:08:32 CDT --- Closing bugs fixed in 1.5.0.
http://bugs.winehq.org/show_bug.cgi?id=30075
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org 2012-03-16 17:11:07 CDT --- Really closing bugs fixed in 1.5.0.
https://bugs.winehq.org/show_bug.cgi?id=30075
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|austinenglish@gmail.com |wine-bugs@winehq.org
https://bugs.winehq.org/show_bug.cgi?id=30075
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.microsoft.com/do |https://web.archive.org/web |wnload/en/details.aspx?disp |/20111102145842/http://down |laylang=en&id=27537 |load.microsoft.com/download | |/D/3/0/D30186E3-C7E0-4FD2-8 | |775-FC3B90062B49/dotNetFx45 | |_Full_x86_x64.exe