# How to resolve a "Connection timeout" error?

"Connection timeout" is an error that occurs as a result of a script exceeding the maximum timeout value.

The timeout should be added to the following files:

- C:\\Windows\\Microsoft.NET\\Framework\\v4.0.XXXX\\Config\\machine.config
- C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.XXXX\\Config\\machine.config

<p class="callout info">**Note**: The framework version could change. </p>

Check in machine.config if the connection timeout is added at the end, just before the last line.  
If not, add the following lines at the end (before &lt;/configuration&gt; in the machine.config:

*&lt;system.transactions&gt;  
 &lt;defaultSettings distributedTransactionManagerName="" timeout="23:59:00" /&gt; &lt;machineSettings maxTimeout="23:59:00" /&gt;  
&lt;/system.transactions&gt;  
  
So it will look like:*  
![](https://success.mastexsoftware.com/otrs/index.pl?Action=AgentFAQZoom;Subaction=DownloadAttachment;ItemID=247;FileID=321)[![TimeOut2359.png](https://docs.mxsuite.nl/uploads/images/gallery/2025-02/scaled-1680-/timeout2359.png)](https://docs.mxsuite.nl/uploads/images/gallery/2025-02/timeout2359.png)