Upgrading Mojoportal - Invalid Character - XML 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.
9/22/2009 8:34:19 AM
Gravatar
Total Posts 10

Upgrading Mojoportal - Invalid Character - XML Error

When I installed EventCalendar Pro on my site, visiting /Setup/Default.aspx gave me this error:

Probing system...

File system permissions ok.

MSSQL database connection ok.

database permissions are sufficient to alter schema.

database initial schema already exists.

database core schema is up to date.

3 site(s) found.

Configuring feature Html Content - 00:00:00.2880000

Configuring feature Site Statistics - 00:00:00.3950000

Configuring feature Web Part - 00:00:00.4640000

Configuring feature Blog - 00:00:00.5230000

Configuring feature Contact Form - 00:00:01.2810000

Configuring feature Event Calendar - 00:00:01.3740000

Configuring feature Feed Manager - 00:00:01.5170000

Configuring feature Flickr Slide Show - 00:00:01.8130000

Configuring feature Image Gallery (Simple Folder Version) - 00:00:01.9140000

Configuring feature Forums - 00:00:01.9790000

Configuring feature Google Map - 00:00:02.0860000

Configuring feature Html Fragment Include - 00:00:02.2210000

Configuring feature Image Gallery - 00:00:02.2580000

Configuring feature Links - 00:00:02.5240000

Configuring feature Live Messenger Chat - 00:00:02.7570000

Configuring feature Poll - 00:00:02.8610000

Configuring feature Shared Files - 00:00:02.9000000

An Error Occurred:Invalid character in the given encoding. Line 1, position 38.

Source:System.Xml

Stack Trace at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res) at System.Xml.XmlTextReaderImpl.InvalidCharRecovery(Int32& bytesCount, Int32& charsCount) at System.Xml.XmlTextReaderImpl.GetChars(Int32 maxCharsCount) at System.Xml.XmlTextReaderImpl.ReadData() at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.Load(String filename) at mojoPortal.Web.ContentFeatureConfiguration.GetConfig(String applicationFolderName) at mojoPortal.Web.UI.Pages.SetupHome.SetupFeatures(String applicationName) at mojoPortal.Web.UI.Pages.SetupHome.RunSetup() 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)

 

Things I have tried:

  • Upgrading MojoPortal to the Latest Version (same error)
  • Reinstalling EventCalendar Pro (same error)
  • Resetting Permissions on all directories (same error)
Am I missing something?  BTW, I love the product!
Tony

9/22/2009 8:46:14 AM
Gravatar
Total Posts 18439

Re: Upgrading Mojoportal - Invalid Character - XML Error

What tool are you using to deploy the files? I recommend FileZilla.

I've seen cases where xml files were getting mangled during upload using some tools.

I would look at the file on the server: /Setup/applications/STS_EventCalendar/FeatureDefinitions/40000_EventCalendarModule.config

and verify if it is well formed xml or not, compare the copy on the server vs the copy in the Event Calendar Pro package. Is it getting changed somehow during upload?

You might also check the file /Setup/applications/sharedfiles/FeatureDefinitions/90000_SharedFilesModule.config

Its not clear to me if the error is happening for that feature or the feature it tries to configure next, which is probably Event Calendar Pro.

Hope it helps,

Joe

9/22/2009 10:42:48 AM
Gravatar
Total Posts 10

Re: Upgrading Mojoportal - Invalid Character - XML Error

I'm actually on the box itself.  The XML itself looks okay to me.  I was able to determine that it it definitely EventCalendar Pro causing the issue by messing up the config for ShareFiles, running setup and seeing it fail before ShareFiles Configuration.  Also I forgot to post what I am using mojoportal on:

 

- Windows 2008 Server

- SQL Express 2008

- MojoPortal 2.3.1.7

I just tried taking out STS_EventCalendar from the /Setup/Applications directory.  Everything came out okay.  So it's definitely ECP.  

9/22/2009 10:57:51 AM
Gravatar
Total Posts 18439

Re: Upgrading Mojoportal - Invalid Character - XML Error

I just tried a clean installation of mojoPortal 2.3.1.7 and then installed the latest Event Calendar Pro and it worked fine for me.

Can you try the Event Calendar Pro package I just emailed to you and let me know if it works any better.

Best,

Joe

9/22/2009 11:24:04 AM
Gravatar
Total Posts 10

Re: Upgrading Mojoportal - Invalid Character - XML Error

I'm trying a fresh install now.  Might it have anything to do with the fact that the site is in a subfolder off of wwwroot?  Just curious.  The path is C:\inetpub\wwwroot\biop\

 

Thanks!

 

Tony

9/22/2009 11:31:10 AM
Gravatar
Total Posts 18439

Re: Upgrading Mojoportal - Invalid Character - XML Error

It should work fine either as a root web site or as a virtual directory 1 level deep. And any file system folder can be used. If for example http://localhost maps to wwwroot then biop is a virtual directory below it mojoportal should run fine at http://localhost/biop/.

In that case copy the content from the wwwroot folder of the ECP package into the  biop folder not the wwwroot folder, since the biop folder is the root folder for the mojoportal installation in this case.

Note that the biop folder could actually exist anywhere in the file system, it may naturally live directly under wwwroot in your setup but IIS lets you map virtual directories regardless of their parent path. They don't really have to be child folders of the folder where the root web site is pointed, though its fairly common to nest the folders like that.

Hope it helps,

Joe

9/22/2009 11:42:24 AM
Gravatar
Total Posts 10

Re: Upgrading Mojoportal - Invalid Character - XML Error

That did it.  A fresh install while copying the Data directory from the previous installation seemed to do it.  

Thanks for all your help Joe.  I really like the product.  As soon as the site goes live I'll post a link.

Take Care,

Tony

9/22/2009 11:45:50 AM
Gravatar
Total Posts 18439

Re: Upgrading Mojoportal - Invalid Character - XML Error

Thanks Tony,

Glad its working for you.

Best,

Joe

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