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?

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