Entity Framework Error – The transaction associated with the current connection has completed but has not been disposed.

Entity Framework Error – The transaction associated with the current connection has completed but has not been disposed.
 
It is the Error Message of Entity Framework – Transaction Timeout.
The Default Entity Framework Transaction Timeout is 10 minutes.
 
The Full Error Message is as follow.
The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements.
 
Somethings the Error Message is as follow.
System.Data.Entity.Infrastructure.DbUpdateConcurrencyException: Store update, insert, or delete statement affected an unexpected number of rows (0).
 
Solution :
Define Transaction Timeout Value from the .Net Framework machine.conf File.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config

 
  <configuration>
 
    <system.transactions>
      <machineSettings maxTimeout="01:00:00"/>
    </system.transactions>
 
  </configuration>
 

Remarks :
It is not worked to define the Transaction Timeout Value from the Transaction Scope Object from Code.