Mojo No Go

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.
4/21/2009 6:06:06 PM
Gravatar
Total Posts 6

Mojo No Go

After installing Mojo on my Windows Vista Ultimate workstation and adding it to IIS as an application, I followed the instructions and setup the database connection. In addition to ensure proper access to the IUSR account, I gave EVERYONE full control on the host directory. When I try to go to mojo/setup, I get the following error.

 

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information
Module RequestFilteringModule
Notification BeginRequest
Handler StaticFile
Error Code 0x80070021
Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".

There is no useful data on this error on the Microsoft website. Has anyone else seen this error and can they provide guidance on resolving this issue?

Thanks

Richard

4/21/2009 6:16:49 PM
Gravatar
Total Posts 18439

Re: Mojo No Go

Hi,

Assuming you have .NET 3.5 SP1 installed, the most likely cause of that kind of error,  is you have mojoportal running at http://localhost/mojoportal or some virtual folder beneath http://localhost, but there is another .NET app running at the root folder http://localhost and the Web.config file there is interfering.

If you do some googling you'll find there is usually a way around it by configuring the conflicting web.config section/setting using a <location> tag.

Hope it helps,

Joe

4/21/2009 7:45:51 PM
Gravatar
Total Posts 6

Re: Mojo No Go

Sorry Joe, but no joy. Mojo is the root application. The URL is http://mojo. Might it make a difference if I remove all other applications on the server? While this would not reflect a production environment, it would help in dev if I could at least get it running.

Thanks

Richard 

4/22/2009 6:31:31 AM
Gravatar
Total Posts 18439

Re: Mojo No Go

Hi Richard,

The next steps I would try is grant read permission on the mojoportal root folder to the "Network Service" user and then grant the same user full control on the /Data folder.

How are you resolving the hostname "mojo"? Can you try running it just as http://localhost?

Usually on Vista you only have 1 root web site, the Default Web Site which runs at http://localhost, and you either run a .NET app at the root of that site as http://localhost or you run it as virtual directory application and the url is http://localhost/appname.

If you have a .NET app running in the root web site and .NET app(s) running as virtual directories there can be conflicts between web.config files. Usually its the apps in the virtual directories which get broken because the settings in the root app are overriding the web.config in the virtual directory.  It can be resolved by pointing the root web site somewhere else like an empty folder where there is no Web.confiog file.

Other things you can try are changing the Application Pool from "Integrated" to "Classic".

Removing the <system.webServer> and <system.web.extensions> and <system.serviceModel> sections completely from the mojoportal Web.config (back it up first in case that doesn't solve it).

Hope it helps,

Joe

4/22/2009 10:29:02 AM
Gravatar
Total Posts 6

Re: Mojo No Go

Hi Joe

I made it work. There were a two things I had to do.

1. Comment out the following in the web.config. I am not sure what it does, but it does not play well on Vista.

<!-- <security>
<requestFiltering>
<requestLimits maxAllowedContentLength="3000000000" />
</requestFiltering>
</security>
-->  

2. Find the applicationhost.config file in c:\windows... and give everyone Full Control over the folder, not just the file. I suspect this allows mojo to make changes.

Thanks

Richard

4/22/2009 10:40:05 AM
Gravatar
Total Posts 18439

Re: Mojo No Go

Hi Richard,

Glad to hear you got it working!

I work on Vista every day so I suspect it is just some configuration difference or it could be if your machine is part of domain it may push down some settings via group policy that prevent some settings from being overridden in Web.config

Or it could also be that you don't have the IIS Request Filtering Module installed. If you go to control panel add/remove programs > Turn Windows Features on or off, and branch down the IIS node, on mine I have this:

IIS Request filerting install screen shot

Not sure, maybe I should comment that out by default, I'm not sure if Request Filtering is installed by default with IIS 7 or not, if not I may get more reports of this issue. I think I only added that setting recently while troubleshooting a problem with NeatUpload.

Best,

Joe

 

4/22/2009 10:45:59 AM
Gravatar
Total Posts 18439

Re: Mojo No Go

btw, mojoportal does not touch any appconfig file down under the windows folder so I don't think that should be needed to give full control to everyone there, I would not recommend that. The runtime reads that file I'm sure but mojoPortal code has no requirement to touch it and no code that touches it.

mojoportal code also does not modify the web.config, it only needs read permission on it. The only files mojoportal ever modifies live in the /Data folder like logs, file uploads and such, so only the /Data folder needs to be writable by the web process user.

Best,

Joe

4/22/2009 11:34:21 AM
Gravatar
Total Posts 6

Re: Mojo No Go

I don't think the ApplicationHost.config issue is mojo specific. I see tons of posts on the Internets about this issue.

Thanks

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