Unabletogeterrormessage cannot get error message (6107) (0) Distributed Transaction Tr

Source: Internet
Author: User
Today, I encountered a strange problem. After the business was running for less than one minute, I ran a database error, which was still not fixed. The error content could not be obtained (6107) (0). The English is Unabletogeterrormessage (6107) (0). If you still have this problem, I will help you locate 100% as a result of Distributed Transaction timeout.

Today, I encountered a strange problem. After the business was running for less than one minute, I ran a database error, which was still not fixed. The error content could not be obtained (6107) (0). The English language is Unable to get error message (6107) (0). If you still have this problem, I will help you locate 100% as a result of Distributed Transaction timeout.


Today, I encountered a strange problem. After the business was running for less than one minute, I ran a database error, which was still not fixed. The error content could not be obtained (6107) (0), English is Unable to get error message (6107) (0 ),

If you still have this problem, I will help you identify 100% as a result of Distributed Transaction timeout. Generally, the timeout time needs to be set at the place where the transaction is opened.

 using (TransactionScope transactionScope = new TransactionScope(TransactionScopeOption.Required, new TimeSpan(1, 0, 0)))            {}

My timeout is complicated because there is still a WCF access in the transaction, so the connection timeout of WCF will also affect the distributed transaction and set the WCF time.

           
              
             
  
            
          
 

In addition, you must set the Web. Config Distributed Transaction timeout for this application.

  
   
    
 

Finally, if the Machine is disconnected within 10 minutes, you need to set Machine. Config.

C: \ Windows \ Microsoft. NET \ Framework \ v2.0.50727 \ CONFIG

  
     
    
  
 


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.