I ran into the following error while creating a SharePoint library while trying to troubleshoot a completely unrelated problem: “An error occurred while accessing SharePoint AddGallery, Please Try Again”

image

Not very descriptive. A quick look at the event viewer revealed the following Warning:

Alternate access mappings have not been configured.  Users or services are accessing the site http://imapc with the URL http://localhost.  This may cause incorrect links to be stored or returned to users.  If this is expected, add the URL http://localhost as an AAM response URL.  For more information, see: http://go.microsoft.com/fwlink/?LinkId=114854″/>”

image

Of course accessing the site via the correct Url is the easiest way to solve it. If you need to add the Alternate Access Mapping, you can do so from “Central Administration > Application Management > Configure Alternate Access Mappings”

image

digg_url = “https://blog.rafelo.com/2010/01/solution-to-error-occurred-while.html”;digg_title = “Solution to: “An error occurred while accessing SharePoint AddGallery, Please Try Again” on SharePoint 2010”;digg_bgcolor = “#FFFFFF”;digg_skin = “compact”;digg_url = undefined;digg_title = undefined;digg_bgcolor = undefined;digg_skin = undefined;
Advertisements