MemberList.aspx and mono

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/4/2007 10:55:45 AM
Gravatar
Total Posts 92

MemberList.aspx and mono

I'm getting the following error when clicking the Memberlist on a fresh install.

 

2007-06-04 11:46:44,557 [45566896] ERROR mojoPortal.Web.Global [(null)] - System.InvalidCastException: Cannot cast from source type to destination type.
at ASP.memberlist_aspx.__DataBind__bctrl_695 (System.Object sender, System.EventArgs e) [0x00000]
at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
at System.Web.UI.Control.OnDataBinding (System.EventArgs e) [0x00000]
at System.Web.UI.Control.DataBind (Boolean raiseOnDataBinding) [0x00000]
at System.Web.UI.Control.DataBind () [0x00000]
at System.Web.UI.Control.DataBindChildren () [0x00000]
at System.Web.UI.Control.DataBind (Boolean raiseOnDataBinding) [0x00000]
at System.Web.UI.Control.DataBind () [0x00000]
at System.Web.UI.Control.DataBindChildren () [0x00000]
at System.Web.UI.Control.DataBind (Boolean raiseOnDataBinding) [0x00000]
at System.Web.UI.Control.DataBind () [0x00000]
at System.Web.UI.Control.DataBindChildren () [0x00000]
at System.Web.UI.Control.DataBind (Boolean raiseOnDataBinding) [0x00000]
at System.Web.UI.Control.DataBind () [0x00000]
at System.Web.UI.Control.DataBindChildren () [0x00000]
at System.Web.UI.Control.DataBind (Boolean raiseOnDataBinding) [0x00000]
at System.Web.UI.Control.DataBind () [0x00000]
at System.Web.UI.Control.DataBindChildren () [0x00000]
at System.Web.UI.Control.DataBind (Boolean raiseOnDataBinding) [0x00000]
at System.Web.UI.Control.DataBind () [0x00000]
at System.Web.UI.Control.DataBindChildren () [0x00000]
at System.Web.UI.Control.DataBind (Boolean raiseOnDataBinding) [0x00000]
at System.Web.UI.Control.DataBind () [0x00000]
at mojoPortal.Web.UI.Pages.MemberList.PopulateControls () [0x00000]
at mojoPortal.Web.UI.Pages.MemberList.Page_Load (System.Object sender, System.EventArgs e) [0x00000]
at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
at System.Web.UI.Control.OnLoad (System.EventArgs e) [0x00000]
at System.Web.UI.Control.LoadRecursive () [0x00000]

My virtual host configuration has always been working and hasn't given me any trouble.   (domain name replaced by 'mydomain.com' for posting here...)

<VirtualHost *:80>
ServerAdmin webmaster@melloul.com
ServerName testportal.melloul.com
DocumentRoot "/var/www/virtual/clPortal"
ErrorLog logs/testportal.melloul.com.error.log
CustomLog logs/testportal.melloul.com.access.log combined
HostnameLookups Off
UseCanonicalName On

<FilesMatch "\.(gif|jp?g|png|css|ico|xsl|wmv|zip)$">
SetHandler none
</FilesMatch>

MonoDebug diabled

MonoApplications testportal.mydomain.com "testportal.mydomain.com:/:/var/www/virtual/clPortal/"
MonoDocumentRootDir testportal.mydomain.com "/var/www/virtual/clPortal"
MonoServerPath testportal.mydomain.com "/usr/bin/mod-mono-server2"
MonoMaxMemory testportal.mydomain.com 200000000
MonoMaxCPUTime testportal.mydomain.com 3600

<Location />
MonoSetServerAlias testportal.mydomain.com
SetHandler mono
Options Indexes FollowSymLinks
AllowOverride None
order allow,deny
Allow from all
</Location>

MonoApplications mono.testportal.mydomain.com "testportal.mydomain.com:/mono:/var/www/virtual/clPortal/mono/"
MonoDocumentRootDir mono.testportal.mydomain.com "/var/www/virtual/clPortal/mono"
MonoServerPath mono.testportal.mydomain.com "/usr/bin/mod-mono-server2"

Alias /mono "/var/www/virtual/clPortal/mono"
<Location /mono>
MonoSetServerAlias mono.testportal.mydomain.com
SetHandler mono-ctrl
Order deny,allow
Deny from all
AuthType Basic
AuthUserFile /var/www/.htpasswd
AuthGroupFile /var/www/.htgroup
AuthName "testportal.mydomain.com Mono Control Panel"
require group admin
Satisfy Any
</Location>

</VirtualHost>

1) Using the latest svn sources from the 2.x trunk (Monday June 4th, 2007)

2) Apache 2.0.52-22

3) mono, libgdiplus, xsp and mod_mono version 1.2.4

 

Any ideas?

 

 

6/4/2007 4:59:12 PM
Gravatar
Total Posts 18439

Re: MemberList.aspx and mono

Hi Richard,

Long time no see!

I was able to get the same error using Mono from svn but was able to work around it so it working for me now using the latest  Mono svn. Hopefully the workaround will also work with Mono 1.2.4

If you cd into the root folder where you checked out mojoportal and do svn update and then rebuild using MonoDevelop, hopefully it will be fixed for you.

Thanks,

Joe

6/6/2007 9:03:23 AM
Gravatar
Total Posts 92

Re: MemberList.aspx and mono

Yeah, it has been a while!    Mojoportal's been running great since we first implemented it and hasn't failed for us once.   I've gotten tired of switching back and forth between vs2003 and vs2005 development so I thought I'd make the switch to the 2.x branch.   All my custom company modules converted with minor changes that only took minutes.  My linux servers are text based, so I can't use monodevelop.   I've been compiling with vs2005 on my workstation.

I wish that the modules I've written could be shared, but they are very unique to our company (invoice imaging systems,  employee lookups, construction site lookups, etc...)    Someday when I have spare time (LOL) I've like to make the file shares more useful so that public files on our server can be shared to users and clients depending on logins.   I've been meaning to that that for over a year now but the job keeps getting in the way.

 

If there is any testing you ever need done on the Apache/mod_mono/Mysql distribution just let me know.  

 

6/6/2007 9:20:32 AM
Gravatar
Total Posts 18439

Re: MemberList.aspx and mono

One thing to be aware of if you are compiling on VS 2005 for deployment on linux, is that the MonoDevelop solution leaves out some things like web parts from the build because they are not yet supported on Mono but the VS solution does not remove these things.

In order to help make VS 2005 compile a correct build for Mono, you should add MONO as a conditional compilation symbol. Right click the mojoPortal.Web node in Solution explorer and choose properties, then choose the build tab to see where to add this.

The fix for the memberlist specifically uses this in code, ie:

#if MONO
this.rptUsers.DataBind();
#else
this.DataBind();
#endif

The MonoDevelop solution has this setting already but the VS solution does not.

Glad to know your mojo sites have been running well!

Any testing at all on Mono is very helpful, just keep reporting any issues you find. I have a forum just for Linux/Mono issues that is the best place to report them.

Thanks,

Joe

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