Error while publishing the page and it continues for those pages.

Dec 14, 2009 at 9:28 AM
Hello Again,

I am recieving this strange error these days! Please see the stack trace below:

Only those pages for which this error cam while publishing it continues to come during normal access while for all other pages there is no such error while accessing.

I debugged the code but did not find anything. I recreated the site and all but it still came for some pages.

I will continue finding solution for this but let me know if you know the workaround, because I do not want to loose the pages which are already created.


[NullReferenceException: Object reference not set to an instance of an object.]
CompleteSharepoint.NET.Repositories.DefaultSiteRepository.SetPageDetails(SPWeb parentWeb, SPListItem page, PublishingPageEntity& publishingPage) +1706
CompleteSharepoint.NET.Repositories.DefaultSiteRepository.GetPublishingPage(String absoluteUrl, Boolean defaultPage) +606
CompleteSharepoint.NET.Core.DefaultSiteController.GetPublishingPage(String absoluteUrl, Boolean defaultPage) +81
CompleteSharepoint.NET.Core.DefaultSiteController.GetPublishingPage(String absoluteUrl) +45
CompleteSharepoint.NET.Services.DefaultSiteService.PublishingPageExists(String absolutePath) +53
CompleteSharepoint.NET.Web.PublishingPagePathProvider.FileExists(String virtualPath) +111
System.Web.Hosting.VirtualPathProvider.FileExists(VirtualPath virtualPath) +23
System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) +24
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +113
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +101
System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +126
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +62
System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +33
System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +160
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155