What am I doing wrong???

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.
11/10/2007 11:28:08 AM
Gravatar
Total Posts 92

What am I doing wrong???

Older versions of mojoportal work for me but the latest for some reason still won't...   Here is a rundown of what i did and hopefully someone can point me in the right direction of where I made a mistake.

I downloaded from svn the latest mojoportal and downloaded from svn the latest mono dated 11-10-2007.  I compiled using the conditional compilation symbol MONO as well.   The autosetup goes without a single error.   I ran 'gacutil -i MySql.Data.dll' and 'cp ./MySql.Data.dll /usr/lib/mono/2.0/MySql.Data.dll'

My user.config contains the following.

<?xml version="1.0" encoding="utf-8"?>
<appSettings>
  <add key="MySqlConnectionString" value="Server=localhost;Database=clportal;Uid=root;Pwd=MyPassword" />
  <add key="Lucene.Net.lockdir" value="/var/www/virtual/clportal/Data/Sites/1/index" />
</appSettings>
 

My Web.config has all the items mentioned for mono compatibility commented out in <!-- --> blocks.

My currentlog.config shows the following after a fresh install on the first viewing.

2007-11-10 12:08:20,613 [10242976] INFO mojoPortal.Web.Global [(null)] - Application Started.
2007-11-10 12:08:20,716 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-11-10 12:08:20,745 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-11-10 12:08:20,775 [10242976] DEBUG mojoPortal.Web.Global [(null)] - Global.asax.cs Application_AuthenticateRequest
2007-11-10 12:08:27,566 [10242976] DEBUG mojoPortal.Web.Global [(null)] - Global.asax.cs Session_Start
2007-11-10 12:08:27,569 [10242976] DEBUG mojoPortal.Web.Global [(null)] - IncrementUserCount key was www.computerlogix.net_onlineCount
2007-11-10 12:08:27,587 [10242976] DEBUG mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper.cs LoadSiteSettings
2007-11-10 12:08:27,744 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ServerName= www.computerlogix.net
2007-11-10 12:08:27,744 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - serverPort= 80
2007-11-10 12:08:27,750 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - host= www.computerlogix.net
2007-11-10 12:08:27,750 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-11-10 12:08:27,751 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ServerName= www.computerlogix.net
2007-11-10 12:08:27,752 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - serverPort= 80
2007-11-10 12:08:27,752 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - host= www.computerlogix.net
2007-11-10 12:08:27,752 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-11-10 12:08:27,758 [10242976] DEBUG mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper.cs LoadCurrentPage
2007-11-10 12:08:28,856 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ServerName= www.computerlogix.net
2007-11-10 12:08:28,857 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - serverPort= 80
2007-11-10 12:08:28,857 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - host= www.computerlogix.net
2007-11-10 12:08:28,857 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-11-10 12:08:28,864 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ServerName= www.computerlogix.net
2007-11-10 12:08:28,864 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - serverPort= 80
2007-11-10 12:08:28,864 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - host= www.computerlogix.net
2007-11-10 12:08:28,864 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-11-10 12:08:30,284 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ServerName= www.computerlogix.net
2007-11-10 12:08:30,284 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - serverPort= 80
2007-11-10 12:08:30,285 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - host= www.computerlogix.net
2007-11-10 12:08:30,285 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-11-10 12:08:30,316 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ServerName= www.computerlogix.net
2007-11-10 12:08:30,316 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - serverPort= 80
2007-11-10 12:08:30,316 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - host= www.computerlogix.net
2007-11-10 12:08:30,316 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-11-10 12:08:30,318 [10242976] DEBUG mojoPortal.Web.UI.SiteMenu [(null)] - added stylesheet for treeiew
2007-11-10 12:08:30,368 [10242976] DEBUG mojoPortal.Web.UI.mojoTreeView [(null)] - Expanded treeNode found for value path 6ee971cd-9956-4dc3-8162-a488413e7f58
2007-11-10 12:08:30,368 [10242976] DEBUG mojoPortal.Web.UI.SiteMenu [(null)] - called mojoTreeview.ExpandToValuePath for value path: 6ee971cd-9956-4dc3-8162-a488413e7f58
2007-11-10 12:08:30,369 [10242976] DEBUG mojoPortal.Web.UI.SiteMenu [(null)] - selected node Home
2007-11-10 12:08:31,216 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ServerName= www.computerlogix.net
2007-11-10 12:08:31,216 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - serverPort= 80
2007-11-10 12:08:31,216 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - host= www.computerlogix.net
2007-11-10 12:08:31,216 [10242976] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-11-10 12:08:31,230 [10242976] DEBUG mojoPortal.Business.HtmlContent [(null)] - Entered HtmlContent Constructor
2007-11-10 12:08:31,309 [10242976] ERROR mojoPortal.Web.Global [(null)] - /Default.aspx
System.NullReferenceException: Object reference not set to an instance of an object
at System.Web.Handlers.ScriptResourceHandler.EncryptString (System.String s) [0x00000]
at System.Web.Handlers.ScriptResourceHandler+RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl (System.Reflection.Assembly assembly, System.String resourceNa$
at System.Web.Handlers.ScriptResourceHandler.GetScriptResourceUrl (System.Reflection.Assembly assembly, System.String resourceName, System.Globalization.CultureInfo culture, Boolean zip, Boolean notif$
at System.Web.UI.ScriptReference.GetUrlFromName (System.Web.UI.ScriptManager scriptManager, IControl scriptManagerControl, Boolean zip) [0x00000]
at System.Web.UI.ScriptReference.GetUrl (System.Web.UI.ScriptManager scriptManager, IControl scriptManagerControl, Boolean zip) [0x00000]
at System.Web.UI.ScriptManager.RegisterScripts () [0x00000]
at System.Web.UI.ScriptManager.OnPagePreRenderComplete (System.Object sender, System.EventArgs e) [0x00000]
at System.Web.UI.Page.OnPreRenderComplete (System.EventArgs e) [0x00000]
at System.Web.UI.Page.InternalProcessRequest () [0x00000]
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]
2007-11-10 12:08:31,345 [10242976] ERROR mojoPortal.Web.Global [(null)] - /Default.aspx
System.NullReferenceException: Object reference not set to an instance of an object
at System.Web.Handlers.ScriptResourceHandler.EncryptString (System.String s) [0x00000]
at System.Web.Handlers.ScriptResourceHandler+RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl (System.Reflection.Assembly assembly, System.String resourceNam
at System.Web.Handlers.ScriptResourceHandler.GetScriptResourceUrl (System.Reflection.Assembly assembly, System.String resourceName, System.Globalization.CultureInfo culture, Boolean zip, Boolean notify
at System.Web.UI.ScriptReference.GetUrlFromName (System.Web.UI.ScriptManager scriptManager, IControl scriptManagerControl, Boolean zip) [0x00000]
at System.Web.UI.ScriptReference.GetUrl (System.Web.UI.ScriptManager scriptManager, IControl scriptManagerControl, Boolean zip) [0x00000]
at System.Web.UI.ScriptManager.RegisterScripts () [0x00000]
at System.Web.UI.ScriptManager.OnPagePreRenderComplete (System.Object sender, System.EventArgs e) [0x00000]
at System.Web.UI.Page.OnPreRenderComplete (System.EventArgs e) [0x00000]
at System.Web.UI.Page.InternalProcessRequest () [0x00000]
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]
2007-11-10 12:08:31,458 [10242976] DEBUG mojoPortal.Web.Global [(null)] - Global.asax.cs Application_AuthenticateRequest

and the web browser shows the following

We're sorry but a server error has occurred while trying to process your request.

The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.

11/10/2007 11:54:34 AM
Gravatar
Total Posts 18439

Re: What am I doing wrong???

What are you using to compile? VS? You will have better luck if you compile the mojoportal.mds using MonoDevelop.

I have not done any testing with compiling on Windows with VS and I don't think just using the MONO compilation directive will make that work. The MonoDevelop solution  leaves out some files for things that are not yet implemented in Mono.

Also the Lucene.Net.Lockdir setting is not needed on Mono as far as I know its only used in Medium trust and there is no support for medium trust or Code Access Security yet in mono.

Joe

11/10/2007 12:56:12 PM
Gravatar
Total Posts 92

Re: What am I doing wrong???

I guess I'm going to have to setup a linux development machine at work then....

Too bad.  V-2005 used to work...

Thanks.

11/10/2007 1:15:22 PM
Gravatar
Total Posts 18439

Re: What am I doing wrong???

I can't really think of anything I've done recently that would change that if it was working. I suspect it could be made to work by adding more #if MONO wrappers around unsupported things. Probably need to look for these by trying to compile the VS Solution in MonoDevelop (.sln rather than .mds) and see where the build breaks.

If I get a chance I'll look into this but I'm pretty swamped right now.

Best,

Joe

11/10/2007 3:16:30 PM
Gravatar
Total Posts 92

Re: What am I doing wrong???

Same here, I'm swamped with work too.  I'm flying down to South Carolina on business for the next week and was hoping to get the latest mojoportal online in my free time without the kids and wife around.   The fastest way is to make my notebook dual boot.   No biggee.  I've been looking for an excuse to use linux on my client at work anyway.   LOL.

The big push for my to upgrade my 1.0 portal to 2.0 is I have 3 clients outside of work who like my company portal and want one of their own.   I don`t want to have to set them up with 1.0 and upgrade to 2.0 later.

Thanks Joe.

 

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