Version 2.2.3.6 with mono-xsp2 1.2.4: Directory not found

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/21/2007 9:04:22 AM
Gravatar
Total Posts 29

Version 2.2.3.6 with mono-xsp2 1.2.4: Directory not found

Hi Joe,

I currently try to run a fresh install (basically just unzipped and modified user.config for my postgresql DB) of mojoportal-2-2-3-6-pgsqlreleasefiles-for-mono.zip with mono 1.2.5-3 and mono-xsp2 1.2.4-1.1 on Debian unstable. The xsp2 server is functional, as verified by asp.net2-examples, and I imported the DB of my webpage running with mojoportal 1.

However, accessing the URL at http://localhost:8082/Setup/Default.aspx gives me:

mojoPortal Content Management System Welcome to mojoPortal Setup
 Probing system...
File system permissions problems found.
An Error Occurred:Directory not found
Source:mscorlib
Stack Trace at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] at System.IO.StreamWriter..ctor (System.String path, Boolean append) [0x00000] at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool) at System.IO.File.CreateText (System.String path) [0x00000] at mojoPortal.Web.mojoSetup.TouchTestFile (System.String pathToFile) [0x00000] at mojoPortal.Web.UI.Pages.SetupHome.GetFolderDetailsHtml () [0x00000] at mojoPortal.Web.UI.Pages.SetupHome.ProbeSystem () [0x00000] at mojoPortal.Web.UI.Pages.SetupHome.Page_Load (System.Object sender, System.EventArgs e) [0x00000] at System.Web.UI.Control.OnLoad (System.EventArgs e) [0x00000] at System.Web.UI.Control.LoadRecursive () [0x00000] at System.Web.UI.Page.InternalProcessRequest () [0x00000] at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]

without an indication as wo which directory might be missing. Do you happen to have any idea what might be wrong?

PS: Konqueror doesn't seem to work with the forum text editor component, so please excuse the empty post (if there is any).

Rene

9/21/2007 9:15:05 AM
Gravatar
Total Posts 18439

Re: Version 2.2.3.6 with mono-xsp2 1.2.4: Directory not found

Hi Rene,

All the folders it is checking are beneath siteroot/Data, you should make sure this folder and all its children are writable by the Web process.

You might make sure the siterrot/Data/Sites/1/index folder exists

It also checks for:

/Data/Sites/1/systemfiles/
/Data/Sites/1/GalleryImages/
/Data/Sites/1/SharedFiles/

and a few others.

I haven't tested under Mono 1.2.5 yet myself

Hope it helps,

Joe

9/21/2007 2:28:49 PM
Gravatar
Total Posts 29

Re: Version 2.2.3.6 with mono-xsp2 1.2.4: Directory not found

Hi Joe,

Thanks for the hint! All permissions were correct, but the GalleryImages/ directory was missing, it seems to be absent in the ZIP file. I don't know why the setup routine was unable to create it, though - the whole Data/ directory tree is owned by www-data, which runs mono-xsp2.

There are 2 more issues, the first of them "cosmetical":

  • user.config does not seem to be honored - I had to change the PostgreSQLConnectionString value in Web.config to make the database connection work.
  • Now I get the following error:

Server Error in '/' Application
Culture ID 0 (0x0000) is not a supported culture. Parameter name: culture
Description: Error processing request.
Error Message: HTTP 500. System.ArgumentException: Culture ID 0 (0x0000) is not a supported culture. Parameter name: culture
Stack Trace:
System.ArgumentException: Culture ID 0 (0x0000) is not a supported culture.
Parameter name: culture
  at System.Globalization.CultureInfo..ctor (Int32 culture, Boolean use_user_override, Boolean read_only) [0x00000]
  at System.Globalization.CultureInfo..ctor (Int32 culture, Boolean use_user_override) [0x00000]
  at System.Globalization.CultureInfo..ctor (Int32 culture) [0x00000]
  at System.Globalization.CultureInfo.get_Parent () [0x00000]
  at System.Resources.ResourceManager.InternalGetResourceSet (System.Globalization.CultureInfo culture, Boolean Createifnotexists, Boolean tryParents) [0x00000]
  at System.Resources.ResourceManager.GetString (System.String name, System.Globalization.CultureInfo culture) [0x00000]
  at Resources.Resource.get_ApplicationStartEventMessage () [0x00000]
  at mojoPortal.Web.Global.Application_Start (System.Object sender, System.EventArgs e) [0x00000]
  at <0x00000> <unknown method>
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]

 

Is that mono 1.2.5 or my setup that is at fault?

Thanks for all your work,

Rene

9/21/2007 3:04:22 PM
Gravatar
Total Posts 18439

Re: Version 2.2.3.6 with mono-xsp2 1.2.4: Directory not found

I have not tested 1.2.5 version of Mono. user.config works in Mono 1.2.4 and in Mono from svn. However changes in user.config are not detected until you touch web.config.

I don't know about the culture error could be a regression in Mono 1.2.5. If I get a chance to setup the 1.2.5 VM I will test it.

Joe

9/24/2007 1:47:05 PM
Gravatar
Total Posts 29

Re: Version 2.2.3.6 with mono-xsp2 1.2.4: Directory not found

Hi Joe,

 

The culture error has somehow vanished, possibly because I replaced my own skin with one of the shipped ones, for the time being. However, when trying to login, for the first time after starting xsp2, I get:

Server Error in '/' Application
A type load exception has occurred.
Description: Error processing request.
Error Message: HTTP 500. System.TypeLoadException: A type load exception has occurred.
Stack Trace:
System.TypeLoadException: A type load exception has occurred.
  at <0x00000> <unknown method>
  at mojoPortal.Web.mojoMembershipProvider.ValidateUser (System.String userName, System.String password) [0x00000]
  at System.Web.UI.WebControls.Login.AuthenticateUser () [0x00000]
  at System.Web.UI.WebControls.Login.OnBubbleEvent (System.Object source, System.EventArgs e) [0x00000]
  at System.Web.UI.Control.RaiseBubbleEvent (System.Object source, System.EventArgs args) [0x00000]
  at System.Web.UI.WebControls.Button.OnCommand (System.Web.UI.WebControls.CommandEventArgs e) [0x00000]
  at System.Web.UI.WebControls.Button.RaisePostBackEvent (System.String eventArgument) [0x00000]
  at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent (System.String eventArgument) [0x00000]
  at System.Web.UI.Page.RaisePostBackEvent (IPostBackEventHandler sourceControl, System.String eventArgument) [0x00000]
  at System.Web.UI.Page.RaisePostBackEvents () [0x00000]
  at System.Web.UI.Page.InternalProcessRequest () [0x00000]
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]

 

and the

mojoPortal Content Management System Welcome to mojoPortal Setup
 Probing system...
File system permissions ok.
pgsql database connection ok.
database permissions are sufficient to alter schema.
database initial schema already exists.
database core schema is up to date.
2 site(s) found.
Configuring mojoportal-core...
Configuring feature Html Content - 00:00:02.1758280
Configuring feature Blog - 00:00:02.9958000
Configuring feature Contact Form - 00:00:03.5230810
Configuring feature Event Calendar - 00:00:03.6212900
Configuring feature Forums - 00:00:03.6855360
Configuring feature Image Gallery - 00:00:03.7716240
Configuring feature Links - 00:00:04.0552450
Configuring feature RSSFeed(s) - 00:00:04.2965330
Configuring feature Shared Files - 00:00:04.5540500
Configuring feature Site Statistics - 00:00:04.5929000
Configuring feature Html Fragment Include - 00:00:04.6733220
Configuring feature Xml/Xsl - 00:00:04.7076810
Configuring feature Web Part - 00:00:04.7516200
Ensuring all features are installed in server admin sites... - 00:00:04.7802070
Setup is complete, click the link below to go to the home page.
Site Home Page

Database Platformpgsql
Version2.2.3.6
StatusYour installation is up to date.

Note: This page shows some information that is helpful during setup and upgrades but for security it would be best not to show any information when the system is up to date. You can disable setup and suppress all information on this page by setting DisableSetup=true in Web.config. When you need to upgrade, you can set this back to false. If you are logged in as Administrator setup will run and you will be able to see this page even if it is disabled in Web.config so you can easily leave it disabled and just login before upgrading. But if you are not logged in you will need to enable setup in Web.config.

 

page for all subsequent (unsuccessful) login tries.

best regards,

Rene

 

9/24/2007 2:39:52 PM
Gravatar
Total Posts 18439

Re: Version 2.2.3.6 with mono-xsp2 1.2.4: Directory not found

Hi Rene,

Sorry I've been very busy and haven't yet had a chance to setup the Mono 1.2.5 VM.

It works fine on the 1.2.4 VM and works fine with Mono from svn so I can only guess there is some regression in the version you have.

Joe

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