Page Not Found when navigating to localhost/

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
8/23/2011 8:18:18 PM
Gravatar
Total Posts 21

Page Not Found when navigating to localhost/

I have a mojoPortal set as the default website in IIS 7 on a Windows 7 64-bit machine. If I am not logged in to the site and I navigate to localhost/ I receive a 404 Page Not Found error. The page also looks quite terrible. If I click Home at the top it navigates to the same 404 error (the url is: http://localhost/login.aspx?ReturnUrl=%2f). If I click the Site Map link and then click Home in the content area I am taken to the actual localhost/home.aspx page with the mojoPortal Welcome message. However, the page still looks terrible (content areas not aligned, background image not showing, banner image not showing, top menu bar not showing, etc.)

If I login to the site then everything appears as it should. Is this normal? Is it something that I correct while editing the stylesheets?

8/24/2011 9:43:11 AM
Gravatar
Total Posts 1204
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Page Not Found when navigating to localhost/

That's most definitely not normal, and probably not correctable in the skin. I'd recommend you start with the basic troubleshooting document and see if you can diagnose the core problem.

Also, check your IIS default document settings, and make sure default.aspx is in the list.

8/24/2011 10:20:52 AM
Gravatar
Total Posts 18439

Re: Page Not Found when navigating to localhost/

In addition to what Jamie said I think it could be something about how your site is configured in IIS, possibly the authentication settings or if you have impersonation configured or something like that.

Someone else reported a similar problem on this thread and later said it was resolved by IIS configuration but he did not mention what the solution detail was, you might ask on that thread to find out what he did to solve it.

Hope that helps,

Joe

8/25/2011 8:59:51 PM
Gravatar
Total Posts 21

Re: Page Not Found when navigating to localhost/

I checked permissions and I don't believe that there is a problem there. At this point I have everything set to Full Control for Network Service (I know this is not correct and I will change it back once I get this issue resolved).

The log states over and over the following error:

System.Web.HttpException (0x80004005): The file '/login.aspx' does not exist.

If I navigate to localhost/Default.aspx or localhost/home.aspx then I believe the correct page with the Welcome message is appearing. However, if I just type localhost/ into the browser it tries to redirect to the login page. This also occurs if I click the Home link at the top while not logged in.

 

8/25/2011 9:04:49 PM
Gravatar
Total Posts 21

Re: Page Not Found when navigating to localhost/

Ha! Finally found it!

In IIS 7 open Authentication and Edit Forms Authentication. Set the Login URL to Default.aspx.

Thanks everyone for all the help! :)

8/25/2011 9:05:47 PM
Gravatar
Total Posts 2202

Re: Page Not Found when navigating to localhost/

Hi,

Sounds like there is a problem in the 301 redirects. Browse to http://localhost/secure/login.aspx and once logged in, go to http://localhost/Admin/RedirectManager.aspx

Look in the list of redirects for any page being redirected to /login.aspx and then delete the redirect.

If that doesn't work, there is most likely a problem in IIS. Maybe the URL Rewriter?

HTH,
Joe D.

8/25/2011 9:06:32 PM
Gravatar
Total Posts 2202

Re: Page Not Found when navigating to localhost/

Well, okay then. I shouldn't take so long to type a post... :-)

8/25/2011 9:18:59 PM
Gravatar
Total Posts 21

Re: Page Not Found when navigating to localhost/

Hey, Joe! Thanks for taking the time to answer anyway! I really do appreciate all of the excellent help I have received here.

9/1/2011 10:24:43 PM
Gravatar
Total Posts 21

Re: Page Not Found when navigating to localhost/

Ok, there still seems to be a bit of a problem.

I checked the site in IE and Chrome where I was not logged in and I noticed that the images were still not showing up correctly and that certain elements were again misaligned. However, I was no longer getting the 404 error so at least that was still fixed.

I cleared the cookies and current logins from Firefox and navigated back to the site. Sure enough the graphics were askew there, too.

At this point I am thinking that it has to be an authentication issue. Among the steps that I took when trying to fix the problem some time ago I set full permissions on the root directory and all subdirectories for Network Service, Administrator, and the name of my local machine (yes, I know this is unwise).

I checked IIS 7 again in the Authentication settings for the site and I made a change to Anonymous Authentication. Initially it was set to Specific User and I believe the user name was set to something like IUSER. I changed this setting to Application pool identity, which my Application Pool in IIS is set to use Network Service.

Now everything seems to work, even when I clear all cookies, current logins and temporary files from all browsers.

I am aware that I need to go back and reduce the permissions but if anyone has any tips they would like to offer I would certainly appreciate it.

11/11/2011 5:53:35 AM
Gravatar
Total Posts 17

Re: Page Not Found when navigating to localhost/

Hi Joe, Magian

I am having the same problem with rest pages apart from the default.aspx .Only default page is running rest pages causes error page not found 404 error after creating a virtual directory in IIS after giving all permissions as directed in the forums.

In my local machine same published code is working perfectly all links are perfectly working. But on the server same published site is not working except default.aspx.

What I have done as follows:

I have created the virtual directory in IIS win server2003.

Restored the local db on the server.

created the virtual directory as well.

Server Dertail: Service Pack P2

Dot net Framework 3.5SP1.

Being I forced my company to work with CMS Mojoportal as I really enjoyed and found it very nice, now project is getting delay because not being able to provide the demo for the same.

client demo has got stuck due to this

I will be highly thankful for this.

 

Vijay

Please help.

 

 

 

11/11/2011 7:56:31 AM
Gravatar
Total Posts 18439

Re: Page Not Found when navigating to localhost/

Hi,

Make sure default.aspx is the highest priority default document configured on the site in IIS.

Also make sure that you have not specified default.aspx as the url for any CMS pages in page settings. See How mojoPortal Works and you will understand that default.aspx serves every CMS page.

Hope that helps,

Joe

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