ERROR mojoPortal.Web.Global [(null)]

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.
12/6/2007 8:38:09 PM
Gravatar
Total Posts 92

ERROR mojoPortal.Web.Global [(null)]

Hey Joe.   I finally found the time to setup a new server and ran into some problems and was hoping you could point me in the right direction.

What did I screw up with the globalization?

Mono JIT compiler version 1.2.6 (/trunk/ r90877)

xsp.exe 1.2.6.0

mojoportal svn 3106
 

2007-12-06 21:10:54,261 [-1229448288] INFO mojoPortal.Web.Global [(null)] - Application Started.
2007-12-06 21:10:54,325 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-12-06 21:10:54,347 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-12-06 21:10:54,370 [-1229448288] DEBUG mojoPortal.Web.Global [(null)] - Global.asax.cs Application_AuthenticateRequest
2007-12-06 21:10:59,439 [-1229448288] DEBUG mojoPortal.Web.Global [(null)] - Global.asax.cs Session_Start
2007-12-06 21:10:59,442 [-1229448288] DEBUG mojoPortal.Web.Global [(null)] - IncrementUserCount key was www.computerlogix.net_onlineCount
2007-12-06 21:10:59,460 [-1229448288] DEBUG mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper.cs LoadSiteSettings
2007-12-06 21:10:59,569 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ServerName= www.computerlogix.net
2007-12-06 21:10:59,570 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - serverPort= 80
2007-12-06 21:10:59,574 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - host= www.computerlogix.net
2007-12-06 21:10:59,574 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-12-06 21:10:59,575 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ServerName= www.computerlogix.net
2007-12-06 21:10:59,575 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - serverPort= 80
2007-12-06 21:10:59,575 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - host= www.computerlogix.net
2007-12-06 21:10:59,575 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-12-06 21:10:59,579 [-1229448288] DEBUG mojoPortal.Business.WebHelpers.CacheHelper [(null)] - CacheHelper.cs LoadCurrentPage
2007-12-06 21:11:00,436 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ServerName= www.computerlogix.net
2007-12-06 21:11:00,436 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - serverPort= 80
2007-12-06 21:11:00,436 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - host= www.computerlogix.net
2007-12-06 21:11:00,436 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-12-06 21:11:00,444 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ServerName= www.computerlogix.net
2007-12-06 21:11:00,444 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - serverPort= 80
2007-12-06 21:11:00,444 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - host= www.computerlogix.net
2007-12-06 21:11:00,444 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-12-06 21:11:01,629 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ServerName= www.computerlogix.net
2007-12-06 21:11:01,630 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - serverPort= 80
2007-12-06 21:11:01,630 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - host= www.computerlogix.net
2007-12-06 21:11:01,630 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-12-06 21:11:01,664 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ServerName= www.computerlogix.net
2007-12-06 21:11:01,664 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - serverPort= 80
2007-12-06 21:11:01,664 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - host= www.computerlogix.net
2007-12-06 21:11:01,665 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-12-06 21:11:01,666 [-1229448288] DEBUG mojoPortal.Web.UI.SiteMenu [(null)] - added stylesheet for treeiew
2007-12-06 21:11:01,708 [-1229448288] DEBUG mojoPortal.Web.UI.mojoTreeView [(null)] - Expanded treeNode found for value path 6ee971cd-9956-4dc3-8162-a488413e7f58
2007-12-06 21:11:01,708 [-1229448288] DEBUG mojoPortal.Web.UI.SiteMenu [(null)] - called mojoTreeview.ExpandToValuePath for value path: 6ee971cd-9956-4dc3-8162-a488413e7f58
2007-12-06 21:11:01,708 [-1229448288] DEBUG mojoPortal.Web.UI.SiteMenu [(null)] - selected node Home
2007-12-06 21:11:02,506 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ServerName= www.computerlogix.net
2007-12-06 21:11:02,506 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - serverPort= 80
2007-12-06 21:11:02,506 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - host= www.computerlogix.net
2007-12-06 21:11:02,506 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-12-06 21:11:02,516 [-1229448288] DEBUG mojoPortal.Business.HtmlContent [(null)] - Entered HtmlContent Constructor
2007-12-06 21:11:02,575 [-1229448288] 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 resourceName, System.Globalization.CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) [0x00000]
at System.Web.Handlers.ScriptResourceHandler.GetScriptResourceUrl (System.Reflection.Assembly assembly, System.String resourceName, System.Globalization.CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) [0x00000]
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-12-06 21:11:02,602 [-1229448288] 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 resourceName, System.Globalization.CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) [0x00000]
at System.Web.Handlers.ScriptResourceHandler.GetScriptResourceUrl (System.Reflection.Assembly assembly, System.String resourceName, System.Globalization.CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) [0x00000]

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-12-06 21:11:03,426 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-12-06 21:11:03,439 [-1229448288] DEBUG mojoPortal.Web.Framework.WebUtils [(null)] - ApplicationPath is /
2007-12-06 21:11:03,450 [-1229448288] DEBUG mojoPortal.Web.Global [(null)] - Global.asax.cs Application_AuthenticateRequest
 

12/6/2007 8:39:07 PM
Gravatar
Total Posts 92

Re: ERROR mojoPortal.Web.Global [(null)]

Oh yes, I compiled it on a Suse 10.3 computer with the latest stable version of MonoDevelop.

 

12/7/2007 7:35:54 AM
Gravatar
Total Posts 18439

Re: ERROR mojoPortal.Web.Global [(null)]

Hi Richard,

What about Mono? Are you compiling it from svn trunk? or what version are you using?

Does the setup page run without errors? /Setup/Default.aspx

Are you using mod_mono or just launching from the command line?

I tested yesterday with Mono r89993 compiled on my machine 11/200/2007 and the latest mojoportal works for me.

I'm in the process now of compiling Mono r90815 and see if everything is still good.

Best,

Joe

12/7/2007 7:40:03 AM
Gravatar
Total Posts 18439

Re: ERROR mojoPortal.Web.Global [(null)]

Also the latest mojoportal is r3149, I would recommend do this:

svn revert to clean out any changes to Web.config

svn update to get latest mojoportal

rebuild with monodevelop

rename Web.config to Web.config.windows

rename Web.config.mono to Web.config

apply your connection string to Web.config or copy user.config.sample and rename it to user.config and put your connection string there

visit siteroot/Setup/Default.aspx

Hope it helps,

Joe

12/7/2007 7:57:30 AM
Gravatar
Total Posts 92

Re: ERROR mojoPortal.Web.Global [(null)]

Mono JIT compiler version 1.2.6 (/trunk/ r90877)

I didn't know about the Web.config.mono file.   I commented out all the webparts out manually from the normal Web.config

The setup went without any errors and I'm using apache and mod_mono on a freshly installed server.

I'll download the latest svn of mojoportal when I get a chance and recompile and try again.

Thanks!

12/8/2007 7:09:12 AM
Gravatar
Total Posts 18439

Re: ERROR mojoPortal.Web.Global [(null)]

Hi Richard,

I just tested using Mono r90957 and everything seems working to me. I did not test mod_mono though, I just cd into the Web folder after building and run xsp2

You might try using xsp2 from the command line and see if the problems you are having are only related to mod_mono.

Hope it helps,

Joe

I'm going to test the mono 1.2.6 preview now.

12/15/2007 11:47:40 AM
Gravatar
Total Posts 92

Re: ERROR mojoPortal.Web.Global [(null)]

I tried mojoportal svn 3181 and mono svn 91353 with mysql and linux and it still didn't work.   Reading some of your posts you suggested that mono 1.2.4 was the last version you had working successfully.

 

So, I compiled the server with mono, libgdiplus, xsp and mod_mono version 1.24.   Now I get the following errors that I've read other users are getting too.

 

Joe, I need to get two portal servers asap.  What was the last mono and mojoportal versions that you successfully has running on a linux system?

 

Could not load type 'System.Web.UI.Literal'.

Description: Error processing request.

Error Message: HTTP 500. System.TypeLoadException: Could not load type 'System.Web.UI.Literal'.

Stack Trace:

System.TypeLoadException: Could not load type 'System.Web.UI.Literal'.
at <0x00000> <unknown method>
at (wrapper managed-to-native) System.Reflection.Assembly:InternalGetType (System.Reflection.Module,string,bool,bool)
at System.Reflection.Assembly.GetType (System.String name, Boolean throwOnError, Boolean ignoreCase) [0x00000]
at System.Web.Compilation.AspComponentFoundry+AssemblyFoundry.GetType (System.String componentName) [0x00000]
at System.Web.Compilation.AspComponentFoundry.GetComponentType (System.String foundryName, System.String tag) [0x00000]
at System.Web.UI.RootBuilder.GetChildControlType (System.String tagName, IDictionary attribs) [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]

12/15/2007 1:46:59 PM
Gravatar
Total Posts 92

Re: ERROR mojoPortal.Web.Global [(null)]

I forgot to mention that running xsp2 from the command line (port 8080) or mod_mono (port 80) resulted in the same output.

12/15/2007 1:59:06 PM
Gravatar
Total Posts 18439

Re: ERROR mojoPortal.Web.Global [(null)]

Hi Richard,

I'm testing using the latest Mono from svn r91286 on opensuse 10.2, its been working for me using mono from svn all along.

I have just commited some work to mojoportal svn trunk that may help. It is now possible to build in VS (I used VS 2008) and deploy on Mono. You have to add the compiler directive MONO to the Web project. Then in you have to rename the Web.config to Web.windows.config and rename Web.mono.config to Web.config. Finally, delete the file setting.map.config as it is only used when compiling on linux using MonoDevelop against the latest mono svn head.

My windows build worked fine for me on my opensuse machine. I even used MySql instead of pgsql.

If you are compiling on linux using MonoDevelop then you can leave the settings.map.config file there and you don't have to mess with renaming the web.config, it will just use the same Web.config but it will not have errors.

The renaming of Web.mono.config to Web.config is only needed if building on windows or if using Mono version < r91286

Hope it helps,

Joe

12/15/2007 2:01:24 PM
Gravatar
Total Posts 18439

Re: ERROR mojoPortal.Web.Global [(null)]

I also tested a recent linux build of mojoportal on Mono 1.2.6 preview 3 and it worked fine. Haven't yet tried the final.

Joe

12/15/2007 2:10:28 PM
Gravatar
Total Posts 92

Re: ERROR mojoPortal.Web.Global [(null)]

I'm installing VS 2008 Express right now...    I administrate Linux servers for a living, but they are all servers, no gui's.   I am more at home in VS than MonoDevelop.   At work I can't keep switching back and forth either....   I've got my notebook dual booting with Suse 10.3 for compilations and sure would like my second hard disk back.

Thanks for the input.   I'll start over and re-check everything. 

12/15/2007 2:18:23 PM
Gravatar
Total Posts 18439

Re: ERROR mojoPortal.Web.Global [(null)]

I don't think Express will work. VS 2005 Pro SP1 or VS 2008 Pro is what is needed, else MonoDevelop on linux.

I just created a few more notes about building on windows for linux here:

http://www.mojoportal.com/buildingonwindowsfordeploymentonlinux.aspx

I just added all the #if MONO and #if !MONO stuff today so the VS solution can compile without the webparts.

Hopefully this will make things easier for you.

Best,

Joe

12/15/2007 2:22:45 PM
Gravatar
Total Posts 92

Re: ERROR mojoPortal.Web.Global [(null)]

I needed it test some of my custom controls for work anyways.    I'll be using the full version of 2005...

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