Mono 1.2.6/XSP2/WIndows XP error

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.
2/21/2008 11:48:13 PM
Gravatar
Total Posts 26
Microsoft MVP in C#

Mono 1.2.6/XSP2/WIndows XP error

I downloaded the lastest sources for Mojoportal, compiled it for Mono, and the tried running it with XSP2.0 on Windows XP with a MySQL backend.  I ended up getting the following error:

Server Error in '/' Application
Could not load type System.Web.UI.WebControls.WebParts.WebPartManager

Description: Error processing request.

Error Message: HTTP 500. System.Web.HttpException: Could not load type System.Web.UI.WebControls.WebParts.WebPartManager

Stack Trace:

System.Web.HttpException: Could not load type System.Web.UI.WebControls.WebParts.WebPartManager
at System.Web.UI.ControlBuilder.MapTagType (System.Type tagType) [0x00000]
at System.Web.UI.ControlBuilder.CreateBuilderFromType (System.Web.UI.TemplateParser parser, System.Web.UI.ControlBuilder parentBuilder, System.Type type, System.String tagName, System.String id, IDictionary attribs, Int32 line, System.String sourceFileName) [0x00000]
at System.Web.UI.ControlBuilder.CreateSubBuilder (System.String tagid, System.Collections.Hashtable atts, System.Type childType, System.Web.UI.TemplateParser parser, ILocation location) [0x00000]
at System.Web.Compilation.AspGenerator.ProcessTag (System.String tagid, System.Web.Compilation.TagAttributes atts, TagType tagtype) [0x00000]

This doesn't seem to happen when I run under the Visual Studio Web Server.  Thoughts?

 

2/22/2008 6:05:06 AM
Gravatar
Total Posts 18439

Re: Mono 1.2.6/XSP2/WIndows XP error

Hi Tom,

Did you add the MONO compiler directive on the Web project?

It should leave out WebParts if you do that.

Also you'll need to replace the content of Web.config with the content from Web.Mono.config

I've never run Mono on Windows myself so don't know if there are any differences vs running it on Linux.

Joe

2/22/2008 9:01:15 PM
Gravatar
Total Posts 26
Microsoft MVP in C#

Re: Mono 1.2.6/XSP2/WIndows XP error

Yes I did, I still get the same error.   

2/23/2008 6:11:47 AM
Gravatar
Total Posts 18439

Re: Mono 1.2.6/XSP2/WIndows XP error

Hi Tom,

Are you sure you are using Mono 1.2.6? If its something newer you may need to add the compiler directive USESETTINGSMAP to the web project. In that case you don't need to replace the guts of the Web.config with the Web.Mono.config. For newer versions you may also need to set <compilation batch="false" ... in Web.config

Hope it helps,

Joe

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