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.
4/6/2008 2:36:34 PM
Gravatar
Total Posts 15

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

I'm working on setting up mojoportal-2-2-5-2-pgsqlreleasefiles-for-mono.zip  on xsp2 mono 1.9, I plan on setting up mod_mono at some point. I'm just trying it out for now. But I have the following error:

Description: HTTP 500. Error processing request.

Stack Trace:

System.TypeLoadException: Could not load type 'mojoPortal.Web.MonoCompilationSection, mojoPortal.Web'.
at (wrapper managed-to-native) System.Type:internal_from_name (string,bool,bool)
at System.Type.GetType (System.String typeName, Boolean throwOnError) [0x00000]
at Mono.Web.Util.SettingsMapping.get_MapperType () [0x00000]
at Mono.Web.Util.SettingsMapping.MapSection (System.Object input, System.Type type) [0x00000]
at Mono.Web.Util.SettingsMappingManager.MapSection (System.Object input, System.Type type) [0x00000]
at Mono.Web.Util.SettingsMappingManager.MapSection (System.Object input) [0x00000]
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path) [0x00000]
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName) [0x00000]
at System.Web.Compilation.AppResourcesAssemblyBuilder..ctor (System.String canonicAssemblyName, System.String baseAssemblyPath, System.Web.Compilation.AppResourcesCompiler appres) [0x00000]
at System.Web.Compilation.AppResourcesCompiler.CompileGlobal () [0x00000]
at System.Web.Compilation.AppResourcesCompiler.Compile () [0x00000]
at System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext context) [0x00000]

Version information: Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42

 

Help Thanks!

Phil

 

 

4/7/2008 9:07:44 AM
Gravatar
Total Posts 18439

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

Hi Phillip,

Things are changing rapidly in Mono. I packaged those files without testing them. Since then I have tried and I can't get it to work either so I put the previous release files for mono back up 2.2.4.6b which is included on the Mono 1.9 VMWare iamge and does work.

I'm trying to build the latest Mono from svn to test the latest mojoPortal but having trouble compiling Mono due to some issue on my installation of gcc.

Wish I could be more help. I know some of the things they are working on in Mono to support mojoPortal did not make it into the 1.9 release, like support for CSS Control Adapters which is in svn right now but may still have some issues. So I'm thining the next Mono release is going to be the one where mojoportal works and looks the same on Mono (other than WebParts).

Best,

Joe

4/8/2008 10:55:16 PM
Gravatar
Total Posts 26
Microsoft MVP in C#

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

FWIW, I get the same problem on Mono 1.0, Apache 2.2, mod_mono on OpenSUSE 10.3.

4/8/2008 10:58:36 PM
Gravatar
Total Posts 26
Microsoft MVP in C#

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

Err, that should be Mono 1.9, not 1.0.  And, if it matters, I'm using MySQL for the database.

4/8/2008 11:52:35 PM
Gravatar
Total Posts 26
Microsoft MVP in C#

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

Another update to this:

I decided to build the code under MonoDevelop, on Linux.  When I run mojoPortal under xsp2, Mono 1.9 with the binaries I built under Linux, I do NOT get this error.  I get a different error:

Server Error in '/' Application
The parent type 'mojoPortal.Web.WebPartUI.WebPartModule' does not derive from System.Web.UI.UserControl

Description: HTTP 500. Error processing request.

Stack Trace:

System.Web.Compilation.ParseException: The parent type 'mojoPortal.Web.WebPartUI.WebPartModule' does not derive from System.Web.UI.UserControl
at System.Web.UI.BaseParser.ThrowParseException (System.String message, System.Object[] parms) [0x00000]
at System.Web.UI.TemplateParser.SetBaseType (System.String type) [0x00000]
at System.Web.UI.TemplateParser.ProcessMainAttributes (System.Collections.Hashtable atts) [0x00000]
at System.Web.UI.TemplateControlParser.ProcessMainAttributes (System.Collections.Hashtable atts) [0x00000]
at System.Web.UI.UserControlParser.ProcessMainAttributes (System.Collections.Hashtable atts) [0x00000]
at System.Web.UI.TemplateParser.AddDirective (System.String directive, System.Collections.Hashtable atts) [0x00000]
at System.Web.UI.TemplateControlParser.AddDirective (System.String directive, System.Collections.Hashtable atts) [0x00000]
at System.Web.Compilation.AspGenerator.TagParsed (ILocation location, TagType tagtype, System.String tagid, System.Web.Compilation.TagAttributes attributes) [0x00000]
at System.Web.Compilation.AspParser.OnTagParsed (TagType tagtype, System.String id, System.Web.Compilation.TagAttributes attributes) [0x00000]
at System.Web.Compilation.AspParser.Parse () [0x00000]
at System.Web.Compilation.AspGenerator.Parse (System.String file, Boolean doInitParser) [0x00000]
at System.Web.Compilation.AspGenerator.Parse (System.String file) [0x00000]
at System.Web.Compilation.AspGenerator.Parse () [0x00000]
at System.Web.Compilation.GenericBuildProvider`1[System.Web.UI.TemplateParser].Parse () [0x00000]
at System.Web.Compilation.GenericBuildProvider`1[System.Web.UI.TemplateParser].get_CodeCompilerType () [0x00000]
at System.Web.Compilation.BuildManager.GetCodeDomProviderType (System.Web.Compilation.BuildProvider provider) [0x00000]
at System.Web.Compilation.BuildManager+BuildItem..ctor (System.Web.Compilation.BuildProvider provider) [0x00000]
at System.Web.Compilation.BuildManager.LoadBuildProviders (System.String virtualPath, System.String virtualDir, System.Collections.Generic.Dictionary`2 vpCache, System.Web.Compilation.BuildKind& kind, System.String& assemblyBaseName) [0x00000]
at System.Web.Compilation.BuildManager.BuildAssembly (System.String virtualPath) [0x00000]
at System.Web.Compilation.BuildManager.GetCompiledType (System.String virtualPath) [0x00000]
at System.Web.UI.TemplateControl.GetTypeFromControlPath (System.String virtualPath) [0x00000]
at System.Web.UI.TemplateControl.LoadControl (System.String virtualPath) [0x00000]
at mojoPortal.Web.CachedSiteModuleControl.CreateChildControls () [0x00000]
at System.Web.UI.Control.EnsureChildControls () [0x00000]
at System.Web.UI.Control.PreRenderRecursiveInternal () [0x00000]
at System.Web.UI.Control.PreRenderRecursiveInternal () [0x00000]
at System.Web.UI.Control.PreRenderRecursiveInternal () [0x00000]
at System.Web.UI.Control.PreRenderRecursiveInternal () [0x00000]
at System.Web.UI.Control.PreRenderRecursiveInternal () [0x00000]
at System.Web.UI.Control.PreRenderRecursiveInternal () [0x00000]
at System.Web.UI.Page.ProcessLoadComplete () [0x00000]
at System.Web.UI.Page.InternalProcessRequest () [0x00000]
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]

Version information: Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42

 

5/24/2008 11:46:26 AM
Gravatar
Total Posts 10

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

Update current release:

I am using Suse OSS VM 10.3 mono 1.9 and the new 2.2.5.8 mssqlreleasefiles and made the appropriate web.config comments.  Database MS SQL 2000.  This error happened on first run of MP/Setup/

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

Description: HTTP 500. Error processing request.

Stack Trace:

System.TypeLoadException: Could not load type 'mojoPortal.Web.MonoCompilationSection, mojoPortal.Web'.
at (wrapper managed-to-native) System.Type:internal_from_name (string,bool,bool)
at System.Type.GetType (System.String typeName, Boolean throwOnError) [0x00000]
at Mono.Web.Util.SettingsMapping.get_MapperType () [0x00000]
at Mono.Web.Util.SettingsMapping.MapSection (System.Object input, System.Type type) [0x00000]
at Mono.Web.Util.SettingsMappingManager.MapSection (System.Object input, System.Type type) [0x00000]
at Mono.Web.Util.SettingsMappingManager.MapSection (System.Object input) [0x00000]
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path) [0x00000]
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName) [0x00000]
at System.Web.Compilation.AppResourcesAssemblyBuilder..ctor (System.String canonicAssemblyName, System.String baseAssemblyPath, System.Web.Compilation.AppResourcesCompiler appres) [0x00000]
at System.Web.Compilation.AppResourcesCompiler.CompileGlobal () [0x00000]
at System.Web.Compilation.AppResourcesCompiler.Compile () [0x00000]
at System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext context) [0x00000]

Version information: Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42

5/24/2008 11:57:50 AM
Gravatar
Total Posts 18439

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

Hi,

The 2.2.5.8 mssqlreleasefiles are compiled for Windows, to run on Mono you need the Mono compiled files.

I have not tested using MS SQL with Mono in quite some time. If you want to try that, what I suggest is get the mojoportal-2-2-5-8-pgsqlreleasefiles-for-mono.zip file then replace just mojoPortal.Data.dll in the bin folder with the one from the MS SQL download.

Hope it helps,

Joe

5/24/2008 4:49:45 PM
Gravatar
Total Posts 10

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

Thanks Joe!  So close now :)  I downloaded the mojoportal-2-2-5-8-pgsqlreleasefiles-for-mono and copied the mojoPortal.Data.dll from the MS release. The setup begins to run (see below) but throws an error with MySql.Data.  Do I copy the MySql.Data from the MS release or...?

 

Probing system...
File system permissions ok.
MSSQL database connection ok.
database permissions are sufficient to alter schema.
An Error Occurred:Could not load file or assembly 'MySql.Data, Version=5.0.8.1, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies.
Source:mscorlib
Stack Trace at (wrapper managed-to-native) System.MonoType:GetConstructors_internal (System.Reflection.BindingFlags,System.Type) at System.MonoType.GetConstructors (BindingFlags bindingAttr) [0x00000] at System.MonoType.GetConstructorImpl (BindingFlags bindingAttr, System.Reflection.Binder binder, CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00000] at System.Type.GetConstructor (BindingFlags bindingAttr, System.Reflection.Binder binder, CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00000] at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] at System.Activator.CreateInstance (System.Type type) [0x00000] at System.Web.Configuration.ProvidersHelper.InstantiateProvider (System.Configuration.ProviderSettings providerSettings, System.Type providerType) [0x00000] at System.Web.Configuration.ProvidersHelper.InstantiateProviders (System.Configuration.ProviderSettingsCollection configProviders, System.Configuration.Provider.ProviderCollection providers, System.Type providerType) [0x00000] at SubSonic.DataService.LoadProviders () [0x00000] at SubSonic.DataService.GetInstance (System.String providerName) [0x00000] at SubSonic.DataService.GetTableNames (System.String providerName) [0x00000] at SubSonic.DataService.TableExists (System.String providerName, System.String tableName) [0x00000] at mojoPortal.Data.Common.DBPortal.DatabaseHelperTableExists (System.String tableName) [0x00000] at mojoPortal.Data.DBPortal.DatabaseHelperTableExists (System.String tableName) [0x00000] at mojoPortal.Data.DBPortal.DatabaseHelperSitesTableExists () [0x00000] at mojoPortal.Business.DatabaseHelper.SchemaHasBeenCreated () [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.ProcessLoad () [0x00000] at System.Web.UI.Page.ProcessPostData () [0x00000] at System.Web.UI.Page.InternalProcessRequest () [0x00000] at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]

5/26/2008 8:10:51 AM
Gravatar
Total Posts 18439

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

I would first look and see if MySql.Data.dll is already there and if it is try deleting it. Also in Web.config make sure that you have this:

<add key="SubSonicProvider" value="subsonicMSSQL" />

If niether of these steps fixes it try also deleting SubSonic.dll. Of course keep backups of any files you delete.

Hope it helps,

Joe

5/26/2008 10:56:49 AM
Gravatar
Total Posts 10

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

Hi Joe,

The MySql.Data never existed and I modified the SubSonicProvider tag in the Web.config.  Finally, I deleted the SubSonic.dll .  The results look the same as before.

Probing system...
File system permissions ok.
MSSQL database connection ok.
database permissions are sufficient to alter schema.
An Error Occurred:Could not load file or assembly 'MySql.Data, Version=5.0.8.1, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies.
Source:mscorlib
Stack Trace at (wrapper managed-to-native) System.MonoType:GetConstructors_internal (System.Reflection.BindingFlags,System.Type) at System.MonoType.GetConstructors (BindingFlags bindingAttr) [0x00000] at System.MonoType.GetConstructorImpl (BindingFlags bindingAttr, System.Reflection.Binder binder, CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00000] at System.Type.GetConstructor (BindingFlags bindingAttr, System.Reflection.Binder binder, CallingConventions callConvention, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00000] at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] at System.Activator.CreateInstance (System.Type type) [0x00000] at System.Web.Configuration.ProvidersHelper.InstantiateProvider (System.Configuration.ProviderSettings providerSettings, System.Type providerType) [0x00000] at System.Web.Configuration.ProvidersHelper.InstantiateProviders (System.Configuration.ProviderSettingsCollection configProviders, System.Configuration.Provider.ProviderCollection providers, System.Type providerType) [0x00000] at SubSonic.DataService.LoadProviders () [0x00000] at SubSonic.DataService.GetInstance (System.String providerName) [0x00000] at SubSonic.DataService.GetTableNames (System.String providerName) [0x00000] at SubSonic.DataService.TableExists (System.String providerName, System.String tableName) [0x00000] at mojoPortal.Data.Common.DBPortal.DatabaseHelperTableExists (System.String tableName) [0x00000] at mojoPortal.Data.DBPortal.DatabaseHelperTableExists (System.String tableName) [0x00000] at mojoPortal.Data.DBPortal.DatabaseHelperSitesTableExists () [0x00000] at mojoPortal.Business.DatabaseHelper.SchemaHasBeenCreated () [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.ProcessLoad () [0x00000] at System.Web.UI.Page.ProcessPostData () [0x00000] at System.Web.UI.Page.InternalProcessRequest () [0x00000] at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]

7/22/2008 12:32:41 AM
Gravatar
Total Posts 4

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

Any updates someone can provide for me?

7/22/2008 1:38:18 AM
Gravatar
Total Posts 4

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

Nevermind, it appears that it has been fixed via this bug report : https://bugzilla.novell.com/show_bug.cgi?id=379888#c1

9/5/2008 2:28:15 PM
Gravatar
Total Posts 1

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

Hello there:

What need I to do to compile this fix on my ubuntu server 8.04?? do I need to download some tar file or download from a SVN repository??

thanks for your help.

11/6/2008 12:48:22 PM
Gravatar
Total Posts 21

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

Hello,

I also seem to be getting this error I believe I have Mono 2.0.1 installed.  The SVN change referenced above should have been applied to this release I think.  What am I doing wrong?  I am running on CentOS, with MySql, and MojoPortal 2-2-7-7

Server Error in '/mojo' Application
Could not load type 'mojoPortal.Web.MonoCompilationSection, mojoPortal.Web'.

Description: HTTP 500. Error processing request.

Stack Trace:

System.TypeLoadException: Could not load type 'mojoPortal.Web.MonoCompilationSection, mojoPortal.Web'.
at (wrapper managed-to-native) System.Type:internal_from_name (string,bool,bool)
at System.Type.GetType (System.String typeName, Boolean throwOnError) [0x00000]
at Mono.Web.Util.SettingsMapping.get_MapperType () [0x00000]
at Mono.Web.Util.SettingsMapping.MapSection (System.Object input, System.Type type) [0x00000]
at Mono.Web.Util.SettingsMappingManager.MapSection (System.Object input, System.Type type) [0x00000]
at Mono.Web.Util.SettingsMappingManager.MapSection (System.Object input) [0x00000]
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path) [0x00000]
at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName) [0x00000]
at System.Web.Compilation.AppResourcesAssemblyBuilder..ctor (System.String canonicAssemblyName, System.String baseAssemblyPath, System.Web.Compilation.AppResourcesCompiler appres) [0x00000]
at System.Web.Compilation.AppResourcesCompiler.CompileGlobal () [0x00000]
at System.Web.Compilation.AppResourcesCompiler.Compile () [0x00000]
at System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext context) [0x00000]

Version information: Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42

 

Thank you.

11/6/2008 12:57:17 PM
Gravatar
Total Posts 18439

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

Are you using mojoportal source code or release packages?

If you have the mojoportal source code and you have MonoDevelop, you can open up the mojoportal.mds in MonoDevelop and find out if it builds.

If you are using pre-compiled release files, you should be using the "mojoportal-2-2-7-7-pgsqlreleasefiles-for-mono" package, then get the replacement data layer dlls from the mysqldatalayer download and put them in the /bin folder overwriting the pgsql version.

Hope it helps,

Joe

11/6/2008 1:04:48 PM
Gravatar
Total Posts 21

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

Joe,

Thank you for the rapid response.  I may be using the incorrect release files as I think I may have downloaded the MSSQL stuff from Codeplex and added the MySQL stuff to that.

I downloaded the SVN but Monodevelop looked like a hassle to build on CentOS so I gave it a miss.

I will start the whole thing from scratch using the files you suggest and let you know.

11/6/2008 1:08:51 PM
Gravatar
Total Posts 18439

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

That should get you going, the "for-mono" build was compiled on linux and the build leaves out some things like webparts that aren't implemented on Mono.

Best,

Joe

11/6/2008 1:36:42 PM
Gravatar
Total Posts 21

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

Thank you again Joe.  I just plain missed that one of the database builds was Mono specific and I never thought to go back to Codeplex to see if I had downloaded the proper files.  I noticed the WebParts stuff in Web.config and had commented that out but did not think that perhaps the compiled files had to be Mono specific.

Anyway, I did as you instructed and it installed nicely.  I had some funny trouble with database permissions and user.config but it all seems fine now.  Hopefully this thread will prevent somebody as inattentive as myself from bothering you about it again.

Are there Mono specific documents that I should be reading or is there a summary of what works and does not work on Mono somewhere.

Thank you again for your prompt response.  I am looking forward to learning how to use mojoPortal.

11/6/2008 1:41:49 PM
Gravatar
Total Posts 18439

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

It "should" work the same, other than the missing MyPage feature which uses WebParts. Anything that doesn't work as expected is most likely a Mono bug, but feel free to run it by the forums here before reporting it to the Mono mailing list. They use mojoPortal for QA of Mono so in general they are able to help, and any bugs we can report they will be glad to get the bug report.

Best,

Joe

1/14/2009 4:50:39 PM
Gravatar
Total Posts 44

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

Hi

i had the same problems with a self compiled mono 2.2 and xsp,mod_mono setup on Apache2 with mojoPortal 2.2.8.2

My solution finally was to download the mono 2.2 livecd, boot it in a vm, and after that, build the mojoPortal from source completely.

after that i created a tar archive which contained alle binaries and copied it over to my bin in mojoPortal webfolder.

after that, it seems to work, except i get sometimes a thread exception in the setup, and i assume i still have some config problems, setting up the content in the mysql (connection works).

If you or anyone else have the same problem, i have uploaded my bins here, so you dont have to do the compiling by yourself. (save time)

www.dieschluempfe.net/files/mojoPortal-2.2.8.2-MySql-Mono-Dlls.tar.gz

 

This is also my first post, so Hello everybody, i am new in this community! :)

Greetings,

Hefti

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.