When trying to connect to SharePoint, Sharegate displays the following error:
The connection with the SharePoint site 'http://mySharePointSite/' failed. This is often due to a wrong configuration of the Alternate Access Mappings.
|Any error code ending with: -046|
This error occurs when the connection with the SharePoint server can be established, but then the SharePoint site is not found. The most common cause for this error is a wrong configuration of the Alternate Access Mappings.
When this happens, it is entirely possible that you will be able to connect to your site in your browser and with SharePoint Designer, because this kind of issue affects only a few services in SharePoint. Sharegate requires those services in order to be able to connect to SharePoint, but your browser and SharePoint Designer do not necessarily need them.
Make sure that the address you used within Sharegate is listed in the Alternate Access Mappings by following this procedure:
- Connect to your SharePoint Central Administration and click on "Application Management".
- Click on "Configure alternate access mappings".
- Make sure the address you are using in Sharegate is listed under "Internal URL". If it is not there, you can click on "Add Internal URLs" to add it. This article gives more details about how this works.