Unexpected XML declaration error at install

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.
6/24/2009 12:41:22 PM
Gravatar
Total Posts 20

Unexpected XML declaration error at install

Joe:

I keep getting this error when I install mojoportal-2-3-0-8-mssql on a Win server.  I deleted all files and reloaded them using Filezilla... no upload errors.  Deleted MSSQL file and recreated it... changing the user.config file.  CHecked permissions for data folder. 

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: Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 10, position 6.

Source Error:

Line 8: <!-- 3.5 .NET -->
Line 9: <sectionGroup name="system.web"></sectionGroup>
Line 10: <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
Line 11: <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
Line 12: <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />


Source File: D:\inetpub\betterworldrealtyservices\web.config Line: 10

Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

2009-06-24 10:25:22,595 ERROR mojoPortal.Web.Global - 71.225.85.190-en-US - /Setup/Default.aspx
System.Xml.XmlException: Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 10, position 6.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParsePI(BufferBuilder piInDtdStringBuilder)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Configuration.AppSettingsSection.DeserializeElement(XmlReader reader, Boolean serializeCollectionKey)
at System.Configuration.ConfigurationSection.DeserializeSection(XmlReader reader)
at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSectionImpl(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSectionWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSection(Boolean inputIsTrusted, RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
at System.Configuration.RuntimeConfigurationRecord.CreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)
at System.Configuration.BaseConfigurationRecord.CallCreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader, String filename, Int32 line)

I appreciate any help you can give me.  Thank you so much.

Paul

6/24/2009 1:29:17 PM
Gravatar
Total Posts 18439

Re: Unexpected XML declaration error at install

I think the server does not have .NET 3.5 SP1 installed.

Hope it helps,

Joe 

6/24/2009 9:00:17 PM
Gravatar
Total Posts 20

Re: Unexpected XML declaration error at install

Thanks Joe! 

This is very odd.  I switched back to the previous version 2-3-0-4b build which is stable on my host service for two other installations.  Same problem with XML exception error.  I have the host checking now.  They aren't finding any issues on their end.  Been on the phone two hours trying different options.  Running ASP.Net 3.5 SP2 full trust.  Same server as one other installation.  We tried a different server to see if there was any success... nope.  I downloaded the build again and uploaded to the server from a different computer and the same problem.

Not sure how to continue trouble shooting.  No one else indicates this problem as well on your forums.

Sad guy

 

6/25/2009 5:48:29 AM
Gravatar
Total Posts 18439

Re: Unexpected XML declaration error at install

I would try uploading the Web.config file again in case it got partially corrupted during upload.

Hope it helps,

Joe 

8/14/2009 3:30:09 PM
Gravatar
Total Posts 1

Re: Unexpected XML declaration error at install

I am getting this same error.  On a server with 2 other running installations of MojoPortal.

 

Windows 2003 Server

MS SQL

Mojo 2.3.1.3

 

Both other installs are the same version.

8/17/2009 10:02:12 AM
Gravatar
Total Posts 20

Re: Unexpected XML declaration error at install

Hi:

I would try uploading a new Web.config file.  Most of my problems were ftp errors corrupting the web.config file as well as other corrupted file transfers.  Are you using filezilla?  This is a helpful ftp program that tells you whether or not files were uploaded/downloaded successfully.

Paul

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