Top ".net-4.0" questions

Version 4.0 of the .NET Framework.

How do I fix the "compilerVersion" IIS error?

I'm getting this exception: System.Configuration.ConfigurationErrorsException: The value for the 'compilerVersion' attribute in the provider options must be 'v4.0…

asp.net iis .net-4.0
Concurrent Dictionary Correct Usage

Am I right in thinking this is the correct use of a Concurrent Dictionary private ConcurrentDictionary<int,long> …

c# .net multithreading .net-4.0 concurrency
How to open Outlook new mail window c#

I'm looking for a way to open a New mail in Outlook window. I need programically fill: from, to, subject, …

c# email .net-4.0 office-interop outlook-2003
Practical example where Tuple can be used in .Net 4.0?

I have seen the Tuple introduced in .Net 4 but I am not able to imagine where it can be used. …

c# .net vb.net .net-4.0 c#-4.0
Is that possible to send HttpWebRequest using TLS1.2 on .NET 4.0 framework

My application connects to Experian server and Experian will soon stop supporting TLS 1.0 and TLS 1.1. All connectivity using HTTPS must …

c# .net-4.0 httpwebrequest .net-4.5 tls1.2
How do I restart a WPF application?

How can I restart a WPF Application? In windows Forms I used System.Windows.Forms.Application.Restart(); How to do …

c# .net wpf .net-4.0
.Net 4.0 Windows Application crashes in clr.dll under Windows Server 2008

I have a Windows application scheduled to run on a daily basis and fails intermittently due to the following log …

windows .net-4.0 crash clr
How to check a var for null value?

I am using PetaPoco Micro-ORM with C# 4.0. The code below retrieves a single row from the database: var result = db.…

c# .net c#-4.0 .net-4.0 petapoco
How do I use GZipStream with System.IO.MemoryStream?

I am having an issue with this test function where I take an in memory string, compress it, and decompress …

c# .net-4.0 c#-4.0 gzip
Start may not be called on a promise-style task. exception is coming

I am creating a simple wpf desktop application. UI have just a button and code in .cs file like. private …

c# c#-4.0 .net-4.0