by Jesper Persson
25. March 2009 22:25
After setting up my Virtual PC with MOSS 2007 I tried to access the site from the host, the address did not get resolved by the DNS so I choose to access it by IP, everything worked great but when I used search I got this error:
Object reference not set to an instance of an object. at Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I found an answer on MSDN you can see it here http://social.technet.microsoft.com/forums/en-US/sharepointsearch/thread/b5afd264-07a8-4f66-9d78-807b11bb6022/ it explained the problem but did'nt really solve it for me because of the DNS issue so I cant use the FQDN.
So the resolution was straight forward I just added the IP in the Alernate Access Mappings.