Setup (new install) 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.
5/17/2010 11:32:45 AM
Gravatar
Total Posts 16

Setup (new install) Root element is missing.

New install. IIS7. ASP.NET 2 db is mySQL 4

Hosted Server. NO IDEA if it is using MediumTrust (but tried uncommenting the line to get MediumTrust to work) but no security exception errors.

Edited user.config and connection string should be good.

customErrors mode="Off" in Web.config (changed RemoteOnly to Off)

http://thinkartfully.com/Setup/Default.aspx gives:

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Root element is missing.

Source Error:


[No relevant source lines]

Source File: /App_GlobalResources/SharedFileResources.it.resx Line: 0

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

 

I do not thing the problem would be my connection string to the db.

I DID use the mssql version of mojoportal and updated (overwrite) with the mySQL files. I do not see my version numbers for mojoportal, but am using the version downloaded yesterday from this site. (remember 1.15 or something, maybe? I remember a note saying the next higher version will require mySQL 5, but the current version was a major revision lower. Like "version 1.16 will require mySQL 5" and the one I downloaded was 1.15 -- or similar)

 

Some thing HUGE and basic is missing in my installation, I am sure. Huge like not having the server recognize Default.aspx as a default file in directories or something (but it's not that...)

 

ANY ideas?

 

5/17/2010 12:08:58 PM
Gravatar
Total Posts 18439

Re: Setup (new install) Root element is missing.

mojoPortal requires .NET 3.5 SP1, it will not run on 2.0 .NET. The last version of mojoPortal to target .NET 2 was version 2.2.7.9 which is quite an old (nov 2008) version but it is still available on the right hand side of the download page.

I recommend get 3.5 .NET hosting so you can use the latest version of mojoPortal.

Hope it helps,

Joe

5/17/2010 12:10:20 PM
Gravatar
Total Posts 16

Re: Setup (new install) Root element is missing.

/Data/currentlog.config  IS being written to, so I do not think I have read or read/write permissions problems anywhere in the wwwroot and subdirectories.

Would it be helpful to post a portion of that error log here? What parts?

5/17/2010 12:39:51 PM
Gravatar
Total Posts 16

Re: Setup (new install) Root element is missing.

that last problem was a missing file. I re-uploaded that one file, and re-ran Setup. Now I AM getting a security exception.

Server Error in '/' Application.

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +58
System.Web.HttpContext.System.IServiceProvider.GetService(Type service) +54
Brettle.Web.NeatUpload.UploadHttpModule.GetCurrentWorkerRequest() +219
Brettle.Web.NeatUpload.UploadHttpModule.Application_BeginRequest(Object sender, EventArgs e) +403
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

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

I uncommented:

 <add key="RunningInMediumTrust" value="true" />

in the user.config, and added a space to Web.config saved both and uploaded both.

Re-ran Setup and still get that same error.

Sounds like a permissions issue.

What do I need to tell my hosting company?

5/17/2010 12:47:24 PM
Gravatar
Total Posts 18439

Re: Setup (new install) Root element is missing.

Hi,

You need to follow the instructions for Medium Trust, but even doing that I cannot promise it will work with MySql unless the host has the smae version of MySql connector installed in the GAC.

Hope it helps,

Joe

5/17/2010 1:12:48 PM
Gravatar
Total Posts 16

Thanks,Joe.

5/17/2010 1:17:02 PM
Gravatar
Total Posts 16

Re: Setup (new install) Root element is missing.

Thanks, Joe.

I spoke with my hosting company and was told that, indeed, all update/upgrades to ASP.NET have been applied on my server.

I was told that ASP.NET 3.5 SP1 is an EXTENSION to 2.0, not a new version.

I was also told to go ahead and open a ticket on my security exception and let then take a look at it. They admitted that they are NOT familiar with mojoportal, but may still be able to help.

I am assuming that people on this forum are very familiar with mojoportal, and pretty darned familiar with IIS. So am not hoping to isolate the problem a bit here, so I can ask intelligent questions in my trouble ticket with the hosting company.

5/17/2010 1:21:41 PM
Gravatar
Total Posts 16

Last entry to currentlog.config

2010-05-17 12:18:30,615 ERROR mojoPortal.Web.Global - 72.83.252.244-en-US - /Setup/Default.aspx
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.CodeAccessPermission.Demand()
at System.Web.HttpContext.System.IServiceProvider.GetService(Type service)
at Brettle.Web.NeatUpload.UploadHttpModule.GetCurrentWorkerRequest()
at Brettle.Web.NeatUpload.UploadHttpModule.Application_BeginRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
The action that failed was:
Demand
The type of the first permission that failed was:
System.Security.Permissions.SecurityPermission
The Zone of the assembly that failed was:
MyComputer 

5/17/2010 1:25:30 PM
Gravatar
Total Posts 18439

Re: Setup (new install) Root element is missing.

The error you posted should be fixed by following the Medium Trust instructions, please follow the instructions then clear your log and see if a different error happens.

5/17/2010 1:45:02 PM
Gravatar
Total Posts 16

Re: Setup (new install) Root element is missing.

Joe, you were completely right about the FullTrust / MediumTrust issue. You are also right about the mySQL connector, it seems.

The Setup  is now proceeding, but threw an error:

This site appears to be running in a secured environment using Medium Trust policy or at least lower than Full Trust.
In order to use MySQL under Medium Trust, The MySQL Connector for .NET must be installed in the Global Assembly Cache on the server. If you see a SecurityException in the error message then the Connector is not installed. You can download the MySql Connector for .NET from here: http://dev.mysql.com/downloads/connector/net/5.0.html

But just  before  that was:

MySQL database connection ok.
database permissions are sufficient to alter schema.

Waiting to see if I see a "SecurityException in the error message" as specified above, but so far it all seems to be working.

5/17/2010 1:48:26 PM
Gravatar
Total Posts 18439

Re: Setup (new install) Root element is missing.

If it says database connection is ok it should work. Those other messages are just informational, it will throw a security exception if there is a problem.

Did you upload the contents from the /Setup folder in the mojo MySql package into the /Setup folder of your installation?

If not then upload it and visit setup page again.

Hope it helps,

Joe

5/17/2010 2:40:17 PM
Gravatar
Total Posts 16

IT SEEMS TO BE ALL WORKING!

hot diggity! this is so cool

THANKS, JOE!

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