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.
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

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