.NET Framework 4.0

Category: Main > Programming / Software Engineering > .NET Framework > 4.0

Name.NET Framework
License Free to use
Votes 6
Wine Version1.7.47
Free Download Microsoft .NET Framework 4 (Standalone Installer) (48.1 MB)Direct download
Free Download Microsoft .NET Framework 4 (Web Installer) (868 KB)
Free Download Microsoft .NET Framework 4 (Standalone Installer)
Maintainers of this version:

­The Microsoft .NET Framework version 4.0 redistributable package (released ­2010-04-12)
installs the .NET Framework runtime and associated file­s 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 .N­ET 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

  • Installation
  • Programs needing .NET 4.0 (Client Profile does work too)

What does not

What was not tested
There are many untested .NET 4.0 programs that maybe don't work, development with .NET 4.0 wasn't tested at all.

Additional Comments

You need to install msxml3 through winetricks before or the setup will crash
Test Results
DistributionTest dateWine versionInstalls?Runs?RatingSubmitter
CurrentMac OS X 10.10 "Yosemite"Aug 17 20151.7.47 Yes Yes Gold Michael Armbruster 
ShowUbuntu 14.04 "Trusty" i386 (+ variants like Kubuntu)Dec 07 20141.7.31 No, but has workaround Yes Bronze an anonymous user 
ShowLinux Mint 17 "Qiana" x86_64Jul 21 20141.7.19 Yes Yes Gold LinuxSupahFly 
ShowDebian GNU/Linux 8.x "Jessie"May 05 20151.6.2 Yes Yes Gold raydi 
ShowMac OS X 10.6 "Snow Leopard"Oct 26 20141.6.1 Yes Yes Gold an anonymous user 

Known bugs
Bug # Description Status Resolution Other apps affected
12401 NET Framework 2.0, 3.0, 4.0 installers and other apps that make use of GAC API for managed assembly installation need reparse point/junction API support, i.e. DeviceIoCtl(FSCTL_SET_REPARSE_POINT/FSCTL_GET_REPARSE_POINT) STAGED View
15670 .NET applications that make use of System.IO.IsolatedStorage crash (missing "HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList\" registry subkey) STAGED View
30076 .NET Framework 4.x with WinVer setting "Windows 7" spams terminal with "LocaleNameToLCID/LCIDToLocaleName unsupported flags 8000000" (LOCALE_ALLOW_NEUTRAL_NAMES) STAGED View
32323 Netflix (Silverlight 4.x) and several .NET Framework 3.x/4.0 WPF apps require either Arial or Verdana to be installed STAGED View
33506 Microsoft Expression Design 4 (Free Version) crashes when quickly populating main menu items (dropdown sub-menu drawing) NEW View
36461 Multiple .NET 4.0 applications fail on startup, WPF message dispatcher unexpectedly receives messages during 'CoWaitForMultipleHandles' call with 'COWAIT_ALERTABLE' flag (Visual Studio 2010, BgmHkClient) NEW View

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 Fr­amework. Win­etricks will take care of all needed installation prerequisites and work around some problems.

$ ­wget

$ bash winetricks dotnet40 corefonts

­For a fully silent install (no gui) use following command:

$ bash winetricks -q dotnet40 corefonts


Installation by Application

Some Applications bundle the .NET Framework Redistributables and try to install it on their own if not present.­

This is supported only with recent Wine 1.7.x versions. Also make sure you properly uninstall Mono first!

Manually trigger rebuild of the Global Assembly Cache (GAC) after .NET Framework installation

Use the following command to manually trigger GAC rebuild after .NET Framework installation (or if WINEPREFIX changed due to Wine update):

$ wine "c:\\windows\\Microsoft.NET\\Framework\\v4.0.30319\\ngen.exe" update

Some errors while loading dependent modules that are not GAC'd yet are expected and can be ignored.­

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.

$ wine uninstaller --remove '{E45D8920-A758-4088-B6C6-31DBB276992E}'


You don't need this step if you use 'winetricks' to install Microsoft .NET Frameworks.

Same or higher version of .NET Framework 4 has already been installed on this computer.

This happens if you run 'winetricks' recipe on existing/created 64-bit WINEPREFIX.

Winetricks and 64-bit WINEPREFIXes are not supported.

You have to create a pure 32-bit WINEPREFIX through WINEARCH=win32 environment variable before running winetricks script!

Verify .NET Framework installation using .NET Framework Setup Verification Tool (Microsoft)

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.

Website and download here­

Select the .NET Framework you want to verify and evaluate the log file manually if verification failed.

To run this application, you first must install one of the following versions of the .NET Framework: .NETFramework,Version=v4.0

If you encounter this error, the .NET4 app basically requests .NET 4.0 Full Framework. The default for .NET 4.0 Framework is "Client Profile".

Workaround: If your .NET4 application is called "foo.exe", rename "foo.exe.config" to something different and run again.

If this file is missing the CLR assume that your app is targeting NET4 Client Profile by default (which should work out in most cases).­

This links explains the differences and implications: Microsoft MSDN blog

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
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!

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!

fixme:shell:URL_ParseUrl failed to parse ...

URL_ParseUrl FIXME messages on console when running/installin­g .NET apps are harmless and can be safely ignored. Example console output:

fixme:shell:URL_ParseUrl failed to parse L"mscorlib"

/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.


   << Back

Page loaded in 0.02623 seconds.