MojoPortal Setup Error

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.
8/9/2011 1:31:39 PM
Gravatar
Total Posts 18439

Re: MojoPortal Setup Error

although actually any typo in Web.config could cause that error and the message could be misleading

8/9/2011 1:58:59 PM
Gravatar
Total Posts 22

Re: MojoPortal Setup Error

Replace Web.config and user.config with new clean copies.

 

Get this error now.  Also made sure that SP1 was installed.

 

Module IIS Web Core
Notification BeginRequest
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
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". 
Config File \\?\C:\Websites\domain\web.config
Requested URL http://www.domain.com:80/
Physical Path C:\Websites\Domainname
Logon Method Not yet determined
Logon User Not yet determined
Config Source
1091:     <!-- Handlers for IIS 7.0 Integrated mode -->
1092:     <handlers>
1093:       <remove name="WebServiceHandlerFactory-Integrated"/>
Links and More InformationThis error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.
View more information »

8/9/2011 2:16:37 PM
Gravatar
Total Posts 22

Re: MojoPortal Setup Error

user.config connection string.

 

<add key="SqliteConnectionString" value="version=3,URI=file:C:\\Websites\Domain Name\Data\sqlitedb\mojoportal.db" />
 

  <add key="SqliteConnectionString" value="defaultdblocation" />

 

Web.config

<add key="SqliteConnectionString" value="defaultdblocation"/>
    <!--
   you can use a fully qualified file path as shown below
   or if you are using the default db at /Data/sqlitedb/mojo.db.config
   just leave this set to "defaultdblocation"
  <add key="SqliteConnectionString" value="version=3,URI=file:C:\\Projects\mojoportal\Web\Data\sqlitedb\mojoportal.db" />
  -->

8/9/2011 2:44:15 PM
Gravatar
Total Posts 18439

Re: MojoPortal Setup Error

If there is another Web.config file in the C:\Websites folder I would try removing it as it is likely causing a conflict with the one in the Domains subfolder.

Hope that helps,

Joe

8/9/2011 3:11:13 PM
Gravatar
Total Posts 22

Re: MojoPortal Setup Error

There is only one user.config file.

IIS 7.5 ASPNET 3.5 SP1

Do the strings in user.config, and web.config look ok?

8/10/2011 1:54:40 PM
Gravatar
Total Posts 22

Re: MojoPortal Setup Error

No takers on this.  Someone has got to know why this set up is causing me issues.

8/10/2011 2:02:43 PM
Gravatar
Total Posts 18439

Re: MojoPortal Setup Error

the most recent error you posted is about a conflict with another Web.config file, as I asked you in my previous post but you responded about user.config which is not what I asked about. user.config can only override the <appSettings section

so you either have another Web.config file in a folder above the site or if not physically above it then above it as a virtual directory somehow by IIS configuration, or you have a machine that has been locked down with very tight settings in machine.config either by direct configuration or if the machine is a member of a windows domain it could be pushed down by group policy.

 

 

8/10/2011 2:06:23 PM
Gravatar
Total Posts 355

Re: MojoPortal Setup Error

I don't work with SqlLite, so I'm not much help there. Question: is Joe's suggestion to try SQL CE viable, or is there a business requirement to use the SqlLite?

8/10/2011 2:30:29 PM
Gravatar
Total Posts 55
mojoPortal Community Expert
Arvixe Web Hosting / mojoPortal Community Liaison Looking for quality mojoPortal hosting? Try Arvixe Check out the MojoPortal Blogs at Arvixe

Re: MojoPortal Setup Error

Hi,

I know less than nothing about sqlLite & this may be irrelevant but I noticed

<add key="SqliteConnectionString" value="version=3,URI=file:C:\\Websites\Domain Name\Data\sqlitedb\mojoportal.db" />

has a double backslash after c: and single backslashes afterwards.

8/10/2011 2:45:45 PM
Gravatar
Total Posts 18439

Re: MojoPortal Setup Error

You are right about the extra backslash, but this error isn't about the database, its a configuration issue with ASP.NET and IIS, it is failing to load the Web.config file and the most recent error sounds like a conflict with another Web.config file is the cause.

Only other thing is I would not use folders with spaces in the name in the path to the web site. It isn't clear to me if the path is C:\WebSites\DomainName, or C:\WebSites\Domain Name which I would not use and could cause a problem.

Best,

Joe

8/10/2011 2:51:22 PM
Gravatar
Total Posts 18439

Re: MojoPortal Setup Error

Actually I think that extra backslash is correct, that is the example in user.config, but you don't really have to specify the path if keeping it under the default location /Data/sqlitedb you can just put

<add key="SqliteConnectionString" value="defaultdblocation" />

what he posted with a path is in comments and not used, or if it is not in comments and is exactly like this:

<add key="SqliteConnectionString" value="version=3,URI=file:C:\\Websites\Domain Name\Data\sqlitedb\mojoportal.db" />


  <add key="SqliteConnectionString" value="defaultdblocation" />

the bottom one wins

Best,

Joe

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