Error in setting .htm page as welcome page

Oct 27, 2009 at 2:20 PM

Hi Tommy,

                Whenever i load any html or php page and set it as welcome page it shows me the following error

Server Error in '/' Application

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   CompleteSharepoint.NET.Repositories.DefaultSiteRepository.SetPageDetails(SPWeb parentWeb, SPListItem page, PublishingPageEntity& publishingPage) +1687
   CompleteSharepoint.NET.Repositories.DefaultSiteRepository.GetPublishingPage(String absoluteUrl, Boolean defaultPage) +603
   CompleteSharepoint.NET.Core.DefaultSiteController.GetPublishingPage(String absoluteUrl, Boolean defaultPage) +81
   CompleteSharepoint.NET.Core.DefaultSiteController.GetDefaultPublishingPage() +62
   CompleteSharepoint.NET.Web.UserControls.RedirectToDefaultPage.GetAutoRedirectInfo() +47
   CompleteSharepoint.NET.Web.UserControls.RedirectToDefaultPage.OnLoad(EventArgs e) +92
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

 

is it like that we can't only set aspx page as welcome page .....

and 1 more error whenever i load an aspx page (New->Completesharepoint article page ) and loads my aspx page() it shows error

same error but different stack trace .....

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   CompleteSharepoint.NET.Repositories.DefaultSiteRepository.SetPageDetails(SPWeb parentWeb, SPListItem page, PublishingPageEntity& publishingPage) +1687
   CompleteSharepoint.NET.Repositories.DefaultSiteRepository.GetPublishingPage(String absoluteUrl, Boolean defaultPage) +603
   CompleteSharepoint.NET.Core.DefaultSiteController.GetPublishingPage(String absoluteUrl, Boolean defaultPage) +81
   CompleteSharepoint.NET.Core.DefaultSiteController.GetPublishingPage(String absoluteUrl) +44
   CompleteSharepoint.NET.Services.DefaultSiteService.PublishingPageExists(String absolutePath) +53
   CompleteSharepoint.NET.Web.PublishingPagePathProvider.FileExists(String virtualPath) +110
   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