Root Element is missing....

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.
1/14/2008 4:55:34 AM
DeB
Gravatar
Total Posts 6

Root Element is missing....

Hi to all!

i have a little big problem during setup on IIS server, ASP.Net 2...

when calling the wwwsiteroot/setup I have this error:

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: Root element is missing.

Source Error:


[No relevant source lines]

Source File: C:\SitoMicroPc\web.config Line: 0


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

 

why I have this error??? Icannot understand...

Can you help me??

Thank you a lot,

Bye bye!

MArco

1/14/2008 6:36:43 AM
Gravatar
Total Posts 18439

Re: Root Element is missing....

Hi,

Are you sure the wwwsiteroot folder corresponds to the Web folder in the mojoportal package? Did you modify Web.config?

I tested and it worked for me though I got one error because the mssql package was missing an empty folder that should have been there under /Data/Sites/1/ there was missing the GalleryImages folder so I created it and fixed the download but this is a different problem than what you report.

I assume you are using the ms sql release files not source code? Please speicify if this is not correct.

Joe

1/14/2008 12:20:13 PM
DeB
Gravatar
Total Posts 6

Re: Root Element is missing....

Hi Joe,

i'm using MySQL libraries, and yes I'm using the release files not source...

The wwwroot point to web folder, maybe I have to modify more things in web.config, I have only modified the connection string

like this:

 

<add key="mojoProjectMySqlConnectionString" value="Data Source=odbc_sito_canirabbiosi;Database=sito canirabbiosi;User ID=utentedb;Password=pwd" />

odbc_sito_canirabbiosi is a connection ODBC to the database server...

Thankyou very much!

Bye

marco

1/14/2008 12:31:53 PM
Gravatar
Total Posts 18439

Re: Root Element is missing....

Hi Marco,

That is not the right connetion string. The key mojoProjectMySQLConnectionString is for a separate project that never got implemented. You should be using the one named key=MySqlConnectionString

Also odbc connection is not supported, it uses ADO.NET connection provided by MySql.Data.dll which is the MySql connector for .NET. You downloaded the MySql data layer files separately and replaced the mojoPortal.Data.dll with the MySQL version right? And you put the MySql.Data.dll in the bin as well?

I would recommend restore the Web.config as it was fro the original download. Then open user.config.sample in a text editor and save it as user.config and set your connection string there. user.config can be used to override anything in the appSettings section of Web.config and makes it easier to keep your customizations when you upgrade. Be aware the .NET will detect changes to Web.config but not user.config so if you make chages to user.config you need to type a space in web.config and save it. This way .NET detects a change in Web.config and will reload all setings including those in user.config.

Is your web site configured as a root web site or as a virtual driector subfolder like localhost/mojoportal? If a virtual directory subfolder then make sure there is not another Web.config in the folder above it that interferes. Also make sure the folder above it is not configured for 1.1 .NET. From the error I can see that the folder that it is running in is 2.0 .NET but if its nested under a 1.1 app it could cause problems.

Hope it helps,

Joe

1/14/2008 2:09:57 PM
DeB
Gravatar
Total Posts 6

Re: Root Element is missing....

Thankyou!

I wrote for the 10th time the string that at last I get the wrong line...

any way I'll try using user.config

How can I use the ADO.NET mysql connection??

I'm sorry but it's the first time with mojo, asp.net and IIS...and also the servers are not mine but of a friend so I cannot have the direct access everyday...

thankyou!

Bye!

1/14/2008 2:54:10 PM
Gravatar
Total Posts 18439

Re: Root Element is missing....

Hi,

I'm not understanding you very well. Are you still getting the error about no root element?

mojoPortal is already designed to use ADO.NET just set the connection string using the format in the example user.config file. Enter the correct server name, user password, and db name. You cannot use an odbc data source or a named dsn.

Best Regards,

Joe

1/15/2008 11:45:32 AM
DeB
Gravatar
Total Posts 6

Re: Root Element is missing....

Hi Joe,

yes  the error is still there, I cannot find the user.config.sample file... I have searched it a lot of times in the web folder but nothing came out...

For the DB tomorrow morning I will say it to my friend that has direct access on the server.

Thank you a lot!

Bye bye!

Marco

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