There is a sharepoint intranet site http://server_name:port with DNS xyz pointed to server_name.
The issue could be realted to the way i have configured AAM. Here is the background about what was done.
I added new binding in IIS with port 80 and host name xyz.
Configured alternate access mapping for the site collection by adding new mapping for intranet with http://xyz.
There is a search application configured and i had to include http://xyz in the search scope to get the items in the site crawled. The items crawled was 0 when the search scope was default address of the site.
I have not removed http://server_name:port from the scope and hence i get this crawl error.
"This item could not be crawled because the crawler could not connect to the repository"
Now I access the site using http://xyz and try a search query, the result returns nothing! I checked the log it seems the items are getting queried. I also get this error in the LOG
Error getting element ProxyUrl: System.ArgumentNullException: Value cannot be null. Parameter name: xDoc at Microsoft.Office.Server.Search.Administration.LocationConfiguration.getElements(XmlDocument xDoc, String elementName, String nameSpace) at Microsoft.Office.Server.Search.Administration.LocationConfiguration.getElementString(XmlDocument xDoc, String elementName, String nameSpace)
Please let me know how to get over this issue. Thanks!