Some times we usually get time out exception while accessing/updating term store(Managed metadata store).
There are several reasons behind this, if you are getting this error on random basis, then it might be due to following reason:
Sharepoint farm is spread across different servers like WFE, APP servers or we can call it as multi tier architecture. In this type of scenario usually network team recommend to keep WFE in different DMZ(public network) and APP servers in private network, and if the code is executing in WFE for any reason(it might be due to some design constraint or architecture of farm is like that) in that there will be delay in while accessing service( prod server should be capable of handling this issue) may be network failure or any other reason, it will throw the below exception:
System.TimeoutException: The request channel timed out while waiting for a reply after 00:00:30. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.
In order to fix these type of issue we need to increase the time out value in below places where metadata service is provisioned:
C:\Program Files\Microsoft Office Servers\15.0\WebClients\Metadata
Open client config file and increase the value from 30 seconds to 1 minute or may be 3 minutes
C:\Program Files\Microsoft Office Servers\15.0\WebServices\Metadata
Open web config file and increase the value from 30 seconds to 1 minute or may be 3 minutes
Now do an IISRESET in the server where you have done these changes
Going forward we should not get this error.
Cause:
1) Network issue
2) When we perform an bulk operation in term store and it wont be handle such large object in specified time duration
3) Password change(this is very very rare scenario usually admin team keep password of these service account not expired)
There is detailed article from MSDN about this but in my case I have solved the problem with above steps/checks
https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-server-2010/gg681889(v=office.14)#timeoutexception
There are several reasons behind this, if you are getting this error on random basis, then it might be due to following reason:
Sharepoint farm is spread across different servers like WFE, APP servers or we can call it as multi tier architecture. In this type of scenario usually network team recommend to keep WFE in different DMZ(public network) and APP servers in private network, and if the code is executing in WFE for any reason(it might be due to some design constraint or architecture of farm is like that) in that there will be delay in while accessing service( prod server should be capable of handling this issue) may be network failure or any other reason, it will throw the below exception:
System.TimeoutException: The request channel timed out while waiting for a reply after 00:00:30. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.
In order to fix these type of issue we need to increase the time out value in below places where metadata service is provisioned:
C:\Program Files\Microsoft Office Servers\15.0\WebClients\Metadata
Open client config file and increase the value from 30 seconds to 1 minute or may be 3 minutes
C:\Program Files\Microsoft Office Servers\15.0\WebServices\Metadata
Open web config file and increase the value from 30 seconds to 1 minute or may be 3 minutes
Now do an IISRESET in the server where you have done these changes
Going forward we should not get this error.
Cause:
1) Network issue
2) When we perform an bulk operation in term store and it wont be handle such large object in specified time duration
3) Password change(this is very very rare scenario usually admin team keep password of these service account not expired)
There is detailed article from MSDN about this but in my case I have solved the problem with above steps/checks
https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-server-2010/gg681889(v=office.14)#timeoutexception