manaloaa
06-06-2005, 10:08 AM
Hello folks! Can anybody help with my problem?
My website'sdefault/home pagecontainsthe main menu options (uses menucontrol object getting data fromSiteMapDataSource/web.sitemap). On the same page is the login object where users must login first before they can access other pages located in the "membersOnly" folder (this folder cannot be viewed by anonymous users).
My web.sitemap configuration is:
<siteMap>
<siteMapNode title="Home" description="" url="~/default.aspx" >
<siteMapNode title="Family Tree" description="" url="~/membersOnly/familyTree.aspx"> </siteMapNode>
<siteMapNode title="Personal Info" description="" url="a.aspx"></siteMapNode>
<siteMapNode title="Photo Album" description="" url="b.aspx"></siteMapNode>
<siteMapNode title="Directory" description="Contacts Directory" url="c.aspx"></siteMapNode>
</siteMapNode>
</siteMap>
My question is: How doI redirect unauthenticated users to display a separate page containing the sign-up form, and therefore eliminatetheerror message that says:
Server Error in '/family' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /family/login.aspx
Version Information:Microsoft .NET Framework Version:2.0.50215.44; ASP.NET Version:2.0.50215.44
Please help me... Thanks in advance..!
<!--
[HttpException]: The file '/family/login.aspx' does not exist.
at System.Web.UI.Util.CheckVirtualFileExists(String virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildR esultInternal(String virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildR esultWithNoAssert(HttpContext context, String virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String requestType, String virtualPath, String path)
at System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String requestType, String path, String pathTranslated, Boolean useAppConfig)
at System.Web.HttpApplication.MapHandlerExecutionStep .System.Web.HttpApplication.IExecutionStep.Execute ()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously)
-->
My website'sdefault/home pagecontainsthe main menu options (uses menucontrol object getting data fromSiteMapDataSource/web.sitemap). On the same page is the login object where users must login first before they can access other pages located in the "membersOnly" folder (this folder cannot be viewed by anonymous users).
My web.sitemap configuration is:
<siteMap>
<siteMapNode title="Home" description="" url="~/default.aspx" >
<siteMapNode title="Family Tree" description="" url="~/membersOnly/familyTree.aspx"> </siteMapNode>
<siteMapNode title="Personal Info" description="" url="a.aspx"></siteMapNode>
<siteMapNode title="Photo Album" description="" url="b.aspx"></siteMapNode>
<siteMapNode title="Directory" description="Contacts Directory" url="c.aspx"></siteMapNode>
</siteMapNode>
</siteMap>
My question is: How doI redirect unauthenticated users to display a separate page containing the sign-up form, and therefore eliminatetheerror message that says:
Server Error in '/family' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /family/login.aspx
Version Information:Microsoft .NET Framework Version:2.0.50215.44; ASP.NET Version:2.0.50215.44
Please help me... Thanks in advance..!
<!--
[HttpException]: The file '/family/login.aspx' does not exist.
at System.Web.UI.Util.CheckVirtualFileExists(String virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildR esultInternal(String virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildR esultWithNoAssert(HttpContext context, String virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String requestType, String virtualPath, String path)
at System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String requestType, String path, String pathTranslated, Boolean useAppConfig)
at System.Web.HttpApplication.MapHandlerExecutionStep .System.Web.HttpApplication.IExecutionStep.Execute ()
at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously)
-->