Installation Error

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.
12/4/2012 10:50:41 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Installation Error

Hey guys

Trying to install the latest version of mojoPortal on a dedicated server and getting the following .net error:

 

Server Error in '/' 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: An error occurred while parsing EntityName. Line 11, position 85.

Source Error: 


Line 9:        <section name="sanitizer" requirePermission="false" type="AjaxControlToolkit.Sanitizer.ProviderSanitizerSection, AjaxControlToolkit" />
Line 10:     </sectionGroup>
Line 11: 
Line 12:     <!-- uncomment this if using AppFabric Caching -->
Line 13:     <!-- 

Source File: C:\Inetpub\vhosts\hfdev.com\httpdocs\web.config    Line: 11 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929 

Any ideas please?

Many thanks

Mark

12/4/2012 12:56:33 PM
Gravatar
Total Posts 18439

Re: Installation Error

I would try uploading the web.config file again, maybe it got corrupted during upload, make sure you use the one that came with the release.

Hope that helps,

Joe

12/5/2012 3:05:19 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Installation Error

Thanks Joe, I'll give that a whirl - never thought to try that to be honest.

Many thanks

Mark

12/5/2012 8:30:08 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Installation Error

Hi Joe

Ok, so i uploaded a new config file and got a bizarre error. So, the error I get now is the following:

Welcome to mojoPortal Setup

Probing system...
File system permissions problems found.
An Error Occurred:Could not find a part of the path 'C:\Inetpub\vhosts\hickton.co.uk\httpdocs\Data\Sites\1\systemfiles\test.config'.
Source:mscorlib
Stack Traceat System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) at System.IO.StreamWriter..ctor(String path, Boolean append) at System.IO.File.CreateText(String path) at mojoPortal.Web.mojoSetup.TouchTestFile(String pathToFile) at mojoPortal.Web.UI.Pages.SetupHome.GetFolderDetailsHtml() at mojoPortal.Web.UI.Pages.SetupHome.ProbeSystem() at mojoPortal.Web.UI.Pages.SetupHome.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Any thoughts appreciated as ever.

Many thanks

Mark

12/5/2012 8:49:47 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Installation Error

BTW the data folder is writable... i've checked that...

12/5/2012 8:54:59 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Installation Error

Here wo go:

This line in web.config causes an error

<appSettings file="user.config">

there's nothing in user.config that has been added otehr than connection parameters.

When I change it to:

<appSettings>

everything works, albeit without the connection to the database - but as I say it does solve the error and gets to the mojoPortal screen...

Thanks

Mark

12/5/2012 9:10:01 AM
Gravatar
Total Posts 18439

Re: Installation Error

If removing the user.config from the appSettings element solved an error it means there is some kind of typo in user.config that is causing an error. I would try to find and fix that problem then put the attribute back, otherwise you have to keep all settings in web.config

For the file system error makes sure all segments of the path exist, ie does /Data/Sites/1 folder exist? does /Data/Sites/1/systemfiles?

Create any folders if they are missing.

Hope that helps,

Joe

12/5/2012 2:38:57 PM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Installation Error

Hey Joe

This is driving me stir crazy...

Here's what I've done:

  • Created Data/Sites/1/systemfiles which didn't exist (never come across that problem before)
  • Used both the web.config and the user.config files from the mojoPortal download
  • Amended just the connection string for MSSQL in user.config and checked, checked and checked again

Now the data folder is writable and writing ok but the install trips up at line 11 of the web.config which is the line that appears before the call to user.config.

When I remove the call to user.config, it runs ok as mentioned before. I add that back in and it trips up again.

As I say, i've literally done exactly as we do on all of our installs and I'm totally baffled.

Here's the error for completeness:

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: An error occurred while parsing EntityName. Line 11, position 85.

Source Error: 
 

Line 9: </sectionGroup> 
Line 10: </configSections>
Line 11: Line 12: Line 13: <!-- application specific settings -->

Thanks

Mark

12/5/2012 2:47:51 PM
Gravatar
Total Posts 18439

Re: Installation Error

Be careful how you add it back. The most common type of mistake that can break web.config is incorrect use of comment syntax (either in web.config or user.config), ie if you wrap a comment around an area that already has a comment you will break it. 

Hope that helps,

Joe

12/5/2012 2:50:09 PM
Gravatar
Total Posts 18439

Re: Installation Error

Note also that the line number reported can be incorrect and misleading when using a user.config file it is combining that file together with web.config so the line numbers it sees at that point are not in sync exactly with line numbers in web.config alone. So take the line number with a large grain of salt when looking for the problem.

12/5/2012 2:50:13 PM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: Installation Error

Sorry Joe I don't follow? I've not touched anything - i've literally just added connection string details...

Thanks

Mark

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