When attempting to upload a large (45MB) file to a SharePoint 2010 library, you may receive the following error:

"10702 An error occurred in the [SP Service Instance Name] Service Instance. There was an exception running the extensions specified in the config file. ---> Maximum request length exceeded."

Before You Begin

This error can be resolved by modifying the web.config file in the SharePoint server.

How-to Steps

The following steps can be performed to resolve the issue:

1. Navigate to [ProgramFiles]\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI on the SharePoint server
2. Make a backup copy of the web.config 
3. Add the following section in the web.config: 

<location path=”K2SPFiles.asmx”>
        <httpRuntime maxRequestLength=”2097151″ executionTimeout=”240″ />