404 error for default.aspx on installation

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.
10/23/2009 11:33:46 AM
Gravatar
Total Posts 3

404 error for default.aspx on installation

I have today downloaded mojoportal and it's my first attempt at setting it up. I've followed all of the steps in the readme file and changed the db settings and dlls for mysql. However, when I come to visit the setup/default.aspx page I get a 404 error  (http://www.ukmobilephonedeals.co.uk/mojoportal/Setup/default.aspx).

I've double checked that the file is there and it is, correctly named. Is it because I'm using a sub-folder rather than the root folder? (I want to test it out in a sub folder to get familiar with it before starting to build a new website).

Sorry if this is a very stupid question, as I said I'm very much a beginner at this. Any help would be appreciated. Thanks.

10/23/2009 12:20:01 PM
Gravatar
Total Posts 2254

Re: 404 error for default.aspx on installation

Make sure your directory is set as an application (virtual directory) inside IIS and then make .NET is enabled on that virtual directory.

You may want to create a sub-domain instead of using a sub-directory. The reason being, it is easier to move a sub-domain site to a root domain site than a virtual directory site to a root directory site.

HTH,
Joe D.

10/24/2009 6:29:53 AM
Gravatar
Total Posts 3

Re: 404 error for default.aspx on installation

Thanks Joe. I feel like I'm making some progress now! I've followed your steps however I now get a runtime error. I've entered the code it told me to on the page (http://www.ukmobilephonedeals.co.uk/mojoportal/Setup/Default.aspx) to determine the error and this is the result (NB Line 8 was in RED before I pasted it here):

 

Server Error in '/mojoportal' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Only one <configSections> element allowed per config file and if present must be the first child of the root <configuration> element.

Source Error:

Line 6:      </system.web>
Line 7:  
Line 8:          <configSections>
Line 9:      <!-- Comment this out in Medium Trust -->
Line 10:     <section allowLocation="true" />


Source File: e:\Domains\ukmobilephonedeals.co.uk\wwwroot\mojoportal\web.config    Line: 8


Show Additional Configuration Errors:

Sections must only appear once per config file.  See the help topic  for exceptions. (e:\Domains\ukmobilephonedeals.co.uk\wwwroot\mojoportal\web.config line 983)
Unrecognized configuration section neatUpload. (e:\Domains\ukmobilephonedeals.co.uk\wwwroot\mojoportal\web.config line 1013)
Unrecognized configuration section system.web.extensions. (e:\Domains\ukmobilephonedeals.co.uk\wwwroot\mojoportal\web.config line 1115)
Unrecognized configuration section system.serviceModel. (e:\Domains\ukmobilephonedeals.co.uk\wwwroot\mojoportal\web.config line 1125)

I hope this makes more sense to you than it does to me. Any more help would be greatly appreciated.

Thanks,

Tony

 

10/24/2009 8:19:31 AM
Gravatar
Total Posts 18439

Re: 404 error for default.aspx on installation

I suspect that your site is not configured for the correct version of ASP.NET, possibly it is configured for 1.1 .NET. mojoPortal requires .NET 3.5 SP1, but in IIS it will not list it as version 3.5 but version 2.0 because really 3.5 is a superset of 2.0.

Note also that if you have .NET 1.1 apps running on the same machine, you must use a different application pool for 2.0/3.5 apps, you cannot have both 1.1 apps and 2.0 apps using the same application pool. You would create a new application pool and use it for the 2.0/3.5 apps.

Hope it helps,

Joe

10/25/2009 10:48:18 AM
Gravatar
Total Posts 3

Re: 404 error for default.aspx on installation

Thanks Joe. I got my server host to move the site to a different server supporting 3.5 framework and it is now installed and up and running.

The quick start video tutorial was also very helpful. The whole package looks very intuitive and much easier to use than others I've seen and/or tried.

Looking forward to getting started and building my new site/s.

Thanks again.

8/27/2010 6:00:10 AM
Gravatar
Total Posts 8

Unrecognized configuration section system.web.extensions.

I'm currently experiencing this issue too.

Just reformatted my machine from 32-bit edition of Windows 7 to 64-bit variant. I've installed IIS and .NET Framework 3.5 with SP1 through the "Turn Windows Features On or Off"(so basically I didn't installed it with a separate installer and used the bundled .NET Framework 3.5 SP1 with Win7), then installed MSVS2010 with VisualHG and TortoiseHG(for mercurial) and PostgreSQL 8.4(then configure it). I downloaded the lastest source code of Mojo Portal(through Mercurial repository) and opened the solution for .NET 3.5. Using the configuration 'debug - pgsql'; I executed the project through 'ASP.NET Development Server'(bundled with Visual Studio and not using IIS7) and the result is an error page with 'Unrecognized configuration section system.web.extensions'. I did make sure that it is running on .NET Framework 3.5 and yes, it is.

Do I need to install additional library for this? Based on what I've read, it is part of ASP.NET Futures then later, became part of the .NET Framework 3.5 SP1. I don't want to touch the original source code because I'm going to develop several modules for our site and I want to update the base codes regularly to get the latest features/fixes serve them(if applicable) to our users.

Thanks for your hard work and continous support. I'm starting to become a fan of Mojo Portal. I hope I can contribute. ;)

8/27/2010 6:30:06 AM
Gravatar
Total Posts 18439

Re: 404 error for default.aspx on installation

The main Web.config file is configured for .NET 4, to use .NET 3.5 you need to copy the contents of the Web.net35.config file into the Web.config file replacing the current content.

This is documented in the READMEVisualStudio.txt file in the root of the source code and also here:

http://www.mojoportal.com/the-net-4-transition-plan-for-mojoportal.aspx

Also make sure you rebuild the entire solution before you launch the debugger on the web project.

Hope it helps,

Joe

8/27/2010 6:48:50 AM
Gravatar
Total Posts 8

Re: 404 error for default.aspx on installation

Thanks! It worked.

I thought the configuration manager can handle the auto-loading of config file. It should be done manually.

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