Could not load type 'mojoPortal.Web.MonoCompilationSection, mojoPortal.Web'.

mojoPortal is no longer supported on mono. This forum is here for archival purposes.

This thread is closed to new posts. You must sign in to post in the forums.
1/15/2009 5:09:21 AM
Gravatar
Total Posts 18439

Re: Could not load type 'mojoPortal.Web.MonoCompilationSection, mojoPortal.Web'.

Hi Hefti,

The ThreadAbortException that happens on the setup page is a Mono bug. It seems to happen when trying to copy the skins for the new site. Because we support multiple sites in a single installation, we have a catalog of skins located at /Data/skins and when a site is created they get copied to a site specific location /Data/Sites/[SiteID]/skins. On Mono the thread seems to die after only copying some of the files, so it failed to copy all of the skins from /Data/skins to /Data/Sites/1/skins and you will have to manually copy them to get all the files. This same exception is happening using the latest Mono built from svn.

There are some other bugs going on as well using the latest Mono from svn, and these are possibly also in the 2.2 release which I have not yet tested myself.

Best,

Joe

1/15/2009 11:57:05 AM
Gravatar
Total Posts 44

Re: Could not load type 'mojoPortal.Web.MonoCompilationSection, mojoPortal.Web'.

I have copied over the files, but i assume they already existed (the folders with content have been present int the Sites/1/skins directory).

To be sure, i copied everything with overwriting the old files again to the location.

After that, mono xsp reloaded, but with the same result, the skin was not working.

1/15/2009 12:40:05 PM
Gravatar
Total Posts 18439

Re: Could not load type 'mojoPortal.Web.MonoCompilationSection, mojoPortal.Web'.

Someone else reported the same problem by email and sent a link to the site. If you view the source of your rendered page then grab the complete css url, it should be like ...csshandler.ashx?.....

Paste the whole url into your browser and instead of seeing css as you should, I expect you will see an error, probably this one:

System.DllNotFoundException: libMonoPosixHelper.so
 at (wrapper managed-to-native)
System.IO.Compression.

DeflateStream:create_z_stream
(System.IO.Compression.CompressionMode,bool)
 at System.IO.Compression.DeflateStream..ctor (System.IO.Stream
compressedStream, CompressionMode mode, Boolean leaveOpen, Boolean
gzip) [0x00000]
 at (wrapper remoting-invoke-with-check)
System.IO.Compression.DeflateStream:.ctor
(System.IO.Stream,System.IO.Compression.CompressionMode,bool,bool)
 at System.IO.Compression.GZipStream..ctor (System.IO.Stream
compressedStream, CompressionMode mode, Boolean leaveOpen) [0x00000]
 at System.IO.Compression.GZipStream..ctor (System.IO.Stream
compressedStream, CompressionMode mode) [0x00000]
 at (wrapper remoting-invoke-with-check)
System.IO.Compression.GZipStream:.ctor
(System.IO.Stream,System.IO.Compression.CompressionMode)
 at mojoPortal.Web.UI.CssHandler.ProcessRequest
(System.Web.HttpContext context) [0x00000]
 at System.Web.HttpApplication+<Pipeline>c__Iterator2.MoveNext () [0x00000]
 at System.Web.HttpApplication.Tick () [0x00000]
 
As a workaround for this apparent Mono bug, you can try change this from true to false in Web.config (or user.config)
<add key="CombineCSS" value="true" />
This should bypass the css handler and just render urls to static css files. Hopefully that will work for you at least until the Mono bug is fixed.
 
Best,
 
Joe
 

 

7/23/2009 9:09:52 PM
Gravatar
Total Posts 26
Microsoft MVP in C#

Re: Could not load type 'mojoPortal.Web.MonoCompilationSection, mojoPortal.Web'.

I'm trying to set up a new MojoPortal site on OpenSUSE 11.1 x86_64, Mono 2.4.2.2 with the latest download on CodePlex, and I'm getting this error. 

Did this ever get resolved? Any suggestions?

7/24/2009 6:14:00 AM
Gravatar
Total Posts 18439

Re: Could not load type 'mojoPortal.Web.MonoCompilationSection, mojoPortal.Web'.

Hi Tom,

Are you using the -for-mono.zip?

This thread talks about a lot of different problems/errors with different versions of Mono since 2008.

I assume you are getting the error in the title of this thread, if not please let me know or post a stack trace if its different than others on this thread.

Best,

Joe

7/24/2009 10:06:07 AM
Gravatar
Total Posts 26
Microsoft MVP in C#

Re: Could not load type 'mojoPortal.Web.MonoCompilationSection, mojoPortal.Web'.

Actually, no I'm not.  I'm using the "regular" mojoportal zip (along with with mysql zip if that makes a difference).  I will give that a try and report back.

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