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

12/5/2012 2:52:48 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

Hi Joe

RE the line number - I'd figured that as it wasn't too descriptive. I've managed to nail it down to the user config file but liertally cannot see a thing wrong with it - i've used the out of the box one and just added connection strings. I may be missing something obvious but i've just taken a fresh one from a download, typed in my connection details and got the same issue.

The web.cofig dies when it tries to reference user.config.

Thanks

Mark

12/5/2012 2:55:37 PM
Gravatar
Total Posts 18439

Re: Installation Error

Hi Mark,

I don't know what else to suggest. I know the files as shipped are correct so something you are doing is a factor, sometimes xml files can get corrupted during ftp.

Maybe get the files from the package again and rename the user.config.sample file as user.config and upload them both again.

I also know that the package included the empty folder /Data/Sites/1/systemfiles but if you use a tool like Winzip to extract it instead of the windows extraction utility it may leave out empty folders depending on winzip configuration.

Best,

Joe

12/5/2012 3:02:48 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

Thanks Joe

Just tried that - same issue. I'm going to delete the entire thing and start again just to be sure.

Thanks for the time on looking into it, I appreciate it.

Mark

12/10/2012 7:14:06 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

Hey Joe

Still really struggling with this. Deleted the entire system from the server, downloaded fresh and still get the same issue.

We've literally just changed the connection string in user.config - nothing else at all, checked, checked and checked again and the install still falls over when it tries to call to user.config.

Now, when we take out the reference to user.config from <appsettings> in web.config, it tries to install and says:

Could not find a part of the path 'C:\Inetpub\vhosts\hickton.co.uk\httpdocs\Data\Sites\1\systemfiles\test.config'.

Which of course it cannot find that as that site hasn't even been created yet as the install hasn't run. Never come across this before in all the installs we've done on this server and really struggling to find anything.

Thanks

Mark

12/10/2012 9:56:38 AM
Gravatar
Total Posts 18439

Re: Installation Error

The Setup page tests to make sure the file system is writable by trying to create files in specific locations such as

/Data/Sites/1/systemfiles it tries to create the file test.config

However the error is indicating that the folder does not exist so I would try creating that folder. Again the mojoPortal package ships with that folder as an empty folder but some file extraction tools may leave out the empty folders when the zip is extracted.

12/10/2012 10:04:17 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 - it's very odd as we've used all of the same software as we always have.

Any ideas on the user.config error? That's the real issue it seems.

Thanks

Mark

12/10/2012 11:18:38 AM
Gravatar
Total Posts 18439

Re: Installation Error

I really have no idea what could cause the user.config problem other than a typo or file corruption of the user.config file

Maybe try uploading a new user.config but not named user.config, name it my.config before uploading it then set

<appSettings file="my.config">

The only other suggestion I can think of is to re-install the .NET 4 framework, I have seen cases where a particular machine had a funky installation. In fact just recently when I submitted the mojoPortal 2.3.9.4 release to the web app gallery they rejected it and said it failed to run under medium trust. I was not able to get any error under medium trust using the same package and I also tested using the source code under medium trust. Finally they got back to me and said the .net 4 installation on their test machine was funky and after re-installing it it worked fine for them under medium trust. Though the error they were getting was a security error not the same error you are getting.

Best,

Joe

 

12/11/2012 5:32:48 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

Thanks for this, much appreciated. We're onto the hosting company to make sure our server has the best install of the framework, and we've tried 4 unzip programs and also 3 versions of the mojoPortal download and the files (systemfiles) are still missing.

As a workaround, I wonder if you have a list of all of the empty folders and their locations that mojoPortal ships with so that we can try manually recreatign just to confirm that diagnosis please?

Got 4 sites to launch and this is holding them all up, so odd as we've had the same process for a few years for doing this and it's only come up this week.

Thanks

Mark

12/11/2012 10:01:43 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

An update here: I took the file system from another site and uploaded; swapping out the user.config (same mojoPortal version) for our new one to connect to a fresh database and it threw the same error.

Hosts can't find anything wrong with the .net framework either.

Thanks

Mark

12/11/2012 10:11:23 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

Another update:

We keep the old mojoPortal downladed files from Codeplex on our server. I've checked the previous release (2.3.9.3) and that has all files intact, empty folders and all.

I've then checked 2.3.9.4 and done fully fresh downloads on Mac and Windows, and extracted with both sets of built in file extractors and 3rd party extraction tools and on each OS and with each tool the empty folders such as Data/Sites/1/systemfiles are missing.

Thanks

Mark

12/11/2012 10:34:33 AM
Gravatar
Total Posts 18439

Re: Installation Error

The only empty folders in a new installation are:

/Data/Sites/1/index

/Data/Sites/1/systemfiles

/Data/Sites/1/SharedFiles

/Data/Sites/1/SharedFiles/History

However the Setup page code also checks for the existence of those folders and tries to create them if they do not exist. Only file system permission problems would prevent that.

You do have other working installations of the same version right? So that means there is nothing wrong with the package. Lots of people are using this version.

"Hosts can't find anything wrong with the .net framework either."

I don't know what that means. If the framework is not working as expected one should try re-installing it, doesn't sound like they want to try that. There is no one thing I know of to check for a funky installation of .NET but if it isn't working as it should it seems that is a good possibility that something is funky in the framework installation. The fact that it works everywhere else indicates some kind of problem in this specific hosting installation.

You could try installing version 2.3.9.3 to see if you get the same problems in this hosting.

Best,

Joe

1/7/2013 7:36:42 AM
Gravatar
Total Posts 18439

Re: Installation Error

Hi Mark,

One update on this that "may" be relevant. Web.config and user.config files should use utf8 encoding but somehow some of them were changed to ansi encoding, I'm not sure how or when. I'm not sure that could cause the error you've had but its possible so I would check those files with a text editor like Notepad++ or TextPad and if the encoding of the file is not utf8 then change it to utf8.

Hope that helps,

Joe

1/7/2013 7:39:26 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 take a look...

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