The Microsoft .NET Framework version 4.0 redistributable package (released 2010-04-12)
installs the .NET Framework runtime and associated files that are required to run and develop applications to target the .NET Framework 4.
The Microsoft .NET Framework 4 provides the following new features and improvements:
The .NET Framework 4 works side by side with the Framework version 3.5 SP1. Applications that are based on earlier versions of the Framework will continue to run on that version. Just a subset of functionality is shared by all versions of the Framework.
Innovations in the Visual Basic and C# languages, for example statement lambdas, implicit line continuations, dynamic dispatch, and named/optional parameters.
The ADO.NET Entity Framework, which simplifies how developers program against relational databases by raising the level of abstraction, has many new features. These includes persistence ignorance and POCO support, lazy loading, test-driven development support, functions in model, and new LINQ operators.
Enhancements to ASP.NET:
New JavaScript UI Templates and databinding capabilities for AJAX.
New ASP.NET chart control.
Improvements in WPF:
Added support in Windows Presentation Foundation (WPF) for Windows 7 multi-touch, ribbon controls, and taskbar extensibility features.
Added support in WPF for Surface 2.0 SDK.
o New line-of-business controls including charting control, smart edit, data grid, and others that improve the experience for developers who build data centric applications.
Improvements in performance and scalability.
Visual improvements in text clarity, layout pixel snapping, localization, and interoperability.
Improvements to Windows Workflow (WF) that let developers to better host and interact with workflows. These include an improved activity programming model, an improved designer experience, a new flowchart modeling style, an expanded activity palette, workflow-rules integration, and new message correlation features. The .NET Framework also offers significant performance gains for WF-based workflows.
Improvements to Windows Communication Foundation (WCF) such as support for WCF Workflow Services enabling workflow programs with messaging activities, correlation support, durable two-way communication and rich hosting capabilities. Additionally, .NET Framework 4 provides new WCF features such as service discovery, router service, simplified configuration and a number of improvements to queuing, REST support, diagnostics, and performance.
Innovative new parallel programming features such as parallel loop support, Task Parallel Library (TPL), Parallel LINQ (PLINQ), and coordination data structures which let developers harness the power of multi-core processors.
Selected Test Results (selected in 'Test Results' table below)
What works
Nothing
What does not
Installation crashes
What was not tested
Nothing, as the installer crashes in the beginning
Additional Comments
Installation was attempted both with winetricks and directly running the installer (dotNetFx40_Client_x86.exe) with WINEARCH=win32 and WINEARCH=win64 with the same results:
After the installation packages extracts, .Net logo appears and then wine closes saying "The program Setup.exe has encountered a serious problem and needs to be closed".
The following trace appears in the terminal:
$ winetricks dotnet40
Executing w_do_call dotnet40
Executing load_dotnet40
------------------------------------------------------
dotnet40 does not yet fully work or install on wine. Caveat emptor.
------------------------------------------------------
Executing mkdir -p /home/darkmind/.cache/winetricks/dotnet40
Current wine does not have wine bug 30707, so not applying workaround
Executing w_do_call remove_mono
Executing load_remove_mono
------------------------------------------------------
Mono does not appear to be installed.
------------------------------------------------------
DELETE - HKLM\Software\Microsoft\NET Framework Setup\NDP\v4 (null) 0 0 1
Error: The system was unable to find the specified registry key or value
Executing rm -f /home/darkmind/newwine/dosdevices/c:/windows/system32/mscoree.dll
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:process:SetProcessDEPPolicy (3): stub
fixme:clusapi:OpenCluster ((null)) stub!
fixme:clusapi:ClusterOpenEnum (0xdeadbeef, 4) stub!
fixme:clusapi:ClusterEnum (0xdeadbeef, 0, 0x33f840, 0x126cb0, 261) stub!
fixme:clusapi:ClusterCloseEnum (0xdeadbeef) stub!
fixme:clusapi:CloseCluster (0xdeadbeef) stub!
fixme:advapi:DecryptFileW (L"C:\\26f19c875bb1bfb959a1fce4c76624\\", 00000000): stub
fixme:advapi:RegisterTraceGuidsW (0x6cd15f38, 0x6cd20180, {e2821408-c59d-418f-ad3f-aa4e792aeb79}, 1, 0x33fc90, (null), (null), 0x6cd20188,): stub
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:process:SetProcessDEPPolicy (1): stub
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:thread:SetThreadStackGuarantee (0x33fb48): stub
fixme:advapi:LsaOpenPolicy ((null),0x33f438,0x00000001,0x33f424) stub
fixme:advapi:LsaClose (0xcafe) stub
fixme:msxml:domdoc_putref_schemas (0x740870)->({VT_DISPATCH: 0x7a25e0}): semi-stub
fixme:msxml:domdoc_get_readyState stub! (0x740870)->(0x33f36c)
Invalid XML in file UIInfo.xml.
Parse error:
String for StringID 'IDS_RESTORE' was not found in UiInfo.xmlfixme:advapi:LsaOpenPolicy ((null),0x33c2b8,0x00000001,0x33c2a4) stub
fixme:advapi:LsaClose (0xcafe) stub
wine: Unhandled page fault on execute access to 0x00381001 at address 0x381001 (thread 0034), starting debugger...
Unhandled exception: page fault on execute access to 0x00381001
Microsoft .NET Framework: GAC API for managed assembly installation needs reparse point/junction API support (.NET Framework 2.0, 3.0, 4.0 installers and other apps that make use of GAC API)
.NET applications that make use of System.IO.IsolatedStorage crash (missing "HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList\" registry subkey)
Microsoft .NET Framework 4.0 installation using 'winetricks' (easy way)
Make sure you operate on a clean 32-bit WINEPREFIX (~/.wine)!
Installation by using 'winetricks' script
Use this option for easy installation of .NET 4.0 Framework. Winetricks
will take care of all needed installation prerequisites and work around
some problems.
For a fully silent install (no gui) use following command:
$ bash winetricks -q dotnet40
Installation by Application
Some Applications bundle the .NET Framework Redistributables and try to install it on their own if not present. Don't let the application install .NET Framework 4.0 - this won't work!
Use winetricks to install .NET Framework 4.0 before running the app installer!
Mono uninstallation
Mono (free alternative .NET Implementation) and Microsoft .NET Framework don't mix well in same WINEPREFIX.
If you intend to manually install .NET Frameworks make sure you removed any previous install of 'MONO' package from WINEPREFIX before.
To verify .NET Framework installation(s) in WINEPREFIX you can use the .NET Framework Setup Verification Tool from Aaron Stebner (Microsoft) which checks for proper installation of .NET assemblies and registry entries.
/home/yourlogin/.wine is not owned by you / (Permission denied)
Never run wine as root (su, sudo)! Wine doesn't require to be run as root!
You will screw your WINEPREFIX and possibly other things up. If you have run Wine as root you need to:
$ sudo rm -rf ~/.wine
and then run winecfg to set Wine folder structure back up. If you used winetricks script as root you might also need to:
$ sudo rm -rf ~/.cache/winetricks/
Again: Just run wine as regular user and all should be fine.
System.Window.Markup.XmlParseException when starting .NET apps
If a .NET application exits with the following message in console:
err:secur32:SECUR32_initSchannelSP TLS library not found, SSL connections will fail
err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
fixme:rpc:RpcBindingSetAuthInfoExW unsupported AuthnSvc 10
You are missing the samba/winbind component which is essential for certain Wine functionality.
Please install winbind with your distribution package manager!
The application requested process termination through System.Environment.FailFast
If a .NET application exits with the following message in console:
err:eventlog:ReportEventW ...
Description: The application requested process termination through System.Environment.FailFast(string message).\n
Message: Unrecoverable system error.\n
Stack:\n
at System.Environment.FailFast(System.String)\n
at MS.Internal.Invariant.FailFast...
Some of Wine's truetype fonts are still not in shape of being a
complete replacement for Windows ones, causing errors.
You must use 'winetricks corefonts' recipe to work around this problem!