SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a web application with two access methods:

  1. http://server:22222/ (default zone)
  2. (intranet zone)

This web application has a single SPSite with a single SPWeb. Accessing the site with http://server:22222/ works just fine. However, most pages on the site (all web part pages with a single web part on each) return the usual "An unexpected error has occurred." with

Please note that I can get to the homepage as well as one or two of the web part pages, but not all. To me, this implies that there is some sort of coding error in the web part; however, the web parts work fine when accessed through the default zone.

What about these web parts would work through the default port but not the intranet AAM?

share|improve this question
What web part is it? Is it custom? You don't specify. – RJ Cuthbertson Mar 21 '13 at 0:48
Whenever an "unexpected error occurs," there is usually information in the ULS logs. Check there and post if you can't figure out the error. – Paul Schaeflein Mar 21 '13 at 1:54

Turns out that someone had deleted the host header binding on the web application in IIS. Still not sure why this had broken a few specific web parts, but everything seems to be working now.

Thanks for the input!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.