default page for non-authenticated users

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
9/7/2012 5:27:28 AM
Gravatar
Total Posts 13

default page for non-authenticated users

Hello,

 

when I am signed in and I use the site url (http://intranet2) the portal show my own default page with blog. But when I am not signed in I received en error that /login.aspx doesn't exist. But when I type url with Default.aspx it shows my default blog page.

I am not sure where I made a mistake. Maybe I have a problem with friendly URL. There is only one
http://intranet2/home.aspx maps to http://intranet2/Default.aspx?pageid=4 

Could you help me?

Thank You

R

9/7/2012 5:40:48 AM
Gravatar
Total Posts 108
Community Expert

Re: default page for non-authenticated users

The default path for the login page is  mylocalsite/Secure/Login.aspx make sure the login files are in place

9/7/2012 5:47:15 AM
Gravatar
Total Posts 13

Re: default page for non-authenticated users

but i don't want to show login page. I want show my blog for anonymous users.

9/7/2012 5:57:49 AM
Gravatar
Total Posts 108
Community Expert

Re: default page for non-authenticated users

If you want all users, even anonymous one can see your page, you have to change the security settings and put roles that can see this page to all users.

But even if you do this, you have to check that all files are in proper place, and the install is fine, please review your log file in http://intranet2/Admin/ServerLog.aspx for more info about posible errors

9/7/2012 6:55:13 AM
Gravatar
Total Posts 13

Re: default page for non-authenticated users

2012-09-07 13:45:25,558 ERROR 192.168.57.50 - en-US - /login.aspx?ReturnUrl=%2fError.htm%3faspxerrorpath%3d%2flogin.aspx&aspxerrorpath=/login.aspx - mojoPortal.Web.Global - 192.168.57.50 /login.aspx?ReturnUrl=%2fError.htm%3faspxerrorpath%3d%2flogin.aspx&aspxerrorpath=/login.aspx Referrer(http://intranet2/Secure/Login.aspx?returnurl=/AccessDenied.aspx) useragent Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
System.Web.HttpException (0x80004005): The file '/login.aspx' does not exist.
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2012-09-07 13:45:25,651 ERROR 192.168.57.50 - en-US - /login.aspx?ReturnUrl=%2fData%2fSites%2f1%2fskins%2fartisteer31-hovermenu%2fimages%2fbutton.png - mojoPortal.Web.Global - 192.168.57.50 /login.aspx?ReturnUrl=%2fData%2fSites%2f1%2fskins%2fartisteer31-hovermenu%2fimages%2fbutton.png Referrer(http://intranet2/Secure/Login.aspx?returnurl=/AccessDenied.aspx) useragent Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
System.Web.HttpException (0x80004005): The file '/login.aspx' does not exist.
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2012-09-07 13:45:25,667 ERROR 192.168.57.50 - en-US - /login.aspx?ReturnUrl=%2fError.htm%3faspxerrorpath%3d%2flogin.aspx&aspxerrorpath=/login.aspx - mojoPortal.Web.Global - 192.168.57.50 /login.aspx?ReturnUrl=%2fError.htm%3faspxerrorpath%3d%2flogin.aspx&aspxerrorpath=/login.aspx Referrer(http://intranet2/Secure/Login.aspx?returnurl=/AccessDenied.aspx) useragent Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
System.Web.HttpException (0x80004005): The file '/login.aspx' does not exist.
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

It worked before. But I create the new installation with connection to old database. But for test I created a new one database and the problem is the same. I used there rights NETWORK SERVICE read (only for App_Data and Data can be write) and domain admin has FullRights. When I use http://intranet2 it was redirected to http://intranet2/login.aspx?ReturnUrl=%2fError.htm%3faspxerrorpath%3d%2flogin.aspx&aspxerrorpath=/login.aspx . But when i used http://intranet2/Default.aspx it works as I want. I know, that somewhere is my small stupid mistake, but I am not sure where.

9/7/2012 7:04:18 AM
Gravatar
Total Posts 108
Community Expert

Re: default page for non-authenticated users

It's seems like a problem with the default document in your IIS configuration, make sure that the first default document in your IIS site configuration is default.aspx

Also you have some misconfiguration in the Authentication section because the redirection must redirect to

http://intranet2/Secure/Login.aspx no http://intranet2/Login.aspx

 

9/7/2012 7:40:08 AM
Gravatar
Total Posts 13

Re: default page for non-authenticated users

I had Default.aspx as first. I changed Forms Authentication path to Secure/Login.aspx. Now I have login page without error, thank you.

But somewhere I have a bug. I don't want redirect default page to login page.  

9/7/2012 8:13:23 AM
Gravatar
Total Posts 18439

Re: default page for non-authenticated users

Login, then vist your home page, then click the link for Page Settings, set the view roles to "All Users"

The only reason it redirects unauthenticated users to login is because the home page is protected by roles so th euser must login first so we can know if he is in an allowed view role. By setting it to allow All Users then it should not redirect to login.

9/7/2012 12:20:48 PM
Gravatar
Total Posts 13

Re: default page for non-authenticated users

Joe I see, that the options All users is checked in Page Settings. I triyed uncheck it -> save -> and check again, but the problem still remains. I did it for http:\\intranet2\ and http:\\intranet2\Default.aspx for sure, but it is the same page.

9/11/2012 12:18:28 AM
Gravatar
Total Posts 13

Re: default page for non-authenticated users

maybe I forgot set something on IIS because I installed the site manually. When I use the URL http://intranet2 it is redirected to http://intranet2/Secure/login.aspx?ReturnUrl=%2f but when I use http://intranet2/Default.aspx it show the right page with blog. As I sad the Default.aspx is first document in IIS site and type is "Local".

9/17/2012 5:31:20 AM
Gravatar
Total Posts 13

Re: default page for non-authenticated users

Hi all,

I will try to reinstal the site throught MS platform installer, but is a possible to install it without installing SQL Server Express? There is no choice to install it without the Express version. :(

You must sign in to post in the forums. This thread is closed to new posts.