new 2.2.3.9 install, first time home page request 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.
12/5/2007 11:25:18 AM
Gravatar
Total Posts 19

new 2.2.3.9 install, first time home page request error

First off congratulations on the award!  Somehow I feel like I won something too.

I have built mojoPortal-2.2.3.9 from source using the firebird data layer, and made it through a successful setup.  However when loading the home page for the first time I get the following:

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]

This could be a mono bug,  could be mojoportal I don't know at this point.  Any hints/help would be great.  I have considered building from svn, but this is ultimately going into production so I figured a release version would be better.  In the meantime I'll keep at it.

  Thanks,

    Zak

12/5/2007 11:30:55 AM
Gravatar
Total Posts 18439

Re: new 2.2.3.9 install, first time home page request error

Hi Zak,

Thats definitely a Mono bug, I've seen it before but it has been fixed in Mono svn.

What version of Mono are you using?

Best,

Joe

 

12/5/2007 12:23:55 PM
Gravatar
Total Posts 19

Re: new 2.2.3.9 install, first time home page request error

mono -V
Mono JIT compiler version 1.2.5.1 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: normal
Architecture: amd64
Disabled: none

12/6/2007 8:30:51 AM
Gravatar
Total Posts 19

Re: new 2.2.3.9 install, first time home page request error

I am considering two senarios:

1) run with the preview version of 1.2.6, and update to 1.2.6 when released (I am guessing soon, but when really?)

2) run with svn.  I have built/installed from svn before, but I haven't run anything with it, and I am a bit leary of this since this will be a production setup (hopefully) very soon.

3) modify mojoPortal to work around the bugs. and then update once 1.2.6 is stable

Any idea what 3) would entail?  what about going back a version of mojoPortal?

Thanks,

    Zak

12/6/2007 9:00:06 AM
Gravatar
Total Posts 18439

Re: new 2.2.3.9 install, first time home page request error

Hi Zak,

As for using Mono, I think building from svn is the only way to have control over the stability of your build. If you keep a careful log of what revision you are using then you can always revert to the last stable revision that worked for you if updating introduces a bug or regression. This also makes it easier to help report bugs because often the answer when you report one is its fixed in svn but if you are working from svn you can report current bugs and get the fix as soon as its ready. Ideally you would have a testing machine that you would use to make sure no major problems before updating the production environment.

Using the latest Mono from svn also allows you to use the very latest mojoPortal from our svn trunk (building it yourself with MonoDevelop)  or I can make build of the latest code for you usinf MonoDevelop. I haven't been packaging new releases for Mono since 2.2.3.6 because it doesn't run on the packaged releases of Mono (I don't know about the coming new version of Mono yet)

Best,

Joe

12/6/2007 9:22:47 AM
Gravatar
Total Posts 19

Re: new 2.2.3.9 install, first time home page request error

Thanks for the advice especially regarding mono stability.  Now I'll just have to figure out how to integrate a svn checkout with a gentoo ebuild ;)

FYI I am running xen on my internal servers, so I do have an easy way to have dev-test-production servers.  It's new for me but it's been pretty slick,  especially when there are networking problems and I can attach to the virtual console through the hypervisor. 

Currently my plan is to have grokthis.net host the vm for the production/deployed site, and be able to have dev-test running on my local network.

    Zak

12/6/2007 3:46:21 PM
bob
Gravatar
Total Posts 126
YAF developer

Re: new 2.2.3.9 install, first time home page request error

Zak, it's the same problem with my Gentoo. Read this for details  http://mojoportal.com/ForumThreadView.aspx?thread=1142&pageid=5&ItemID=22 . I'm afraid it's a Gentoo specific problem with some mirky dependencies, as Joe's SUSE works fine. If you find a solution, pls  post here. I use svn version and go without portage.

 

 

 

 

12/7/2007 10:53:33 AM
Gravatar
Total Posts 19

Re: new 2.2.3.9 install, first time home page request error

I am currently testing a ebuild that pulls from subversion that also allow you to specify the revision for each of mcs, mono, and libgdiplus.  I since I am setting up a whole development system ( I'll be writing other code using mono for our production system) I figured I'd take a few minutes (hours) and do this.  Since gentoo's ebuild system is so flexible, one can customize in this way so that even whole system updates will pull this in.  Any how if you are interested, bob, I'll give you the ebuild once I know it works, but you'll have to figure out what to do from there.

12/7/2007 2:39:06 PM
bob
Gravatar
Total Posts 126
YAF developer

Re: new 2.2.3.9 install, first time home page request error

Zak, I can say what I tried. First, I simply replaced Literal with full and correct name. But the problem persisted. So it could be wise to replace it on the page tags level. So I first thought it don't like <asp:Literal tag and links it to the incorrect namespace. But I can't see why it occurs in Gentoo??? The same compiled mono version... It's a logical paradox. And I can't find way out.

I would make the tarball , put it in distfiles and copy ebuild for the svn version , but I can't see what for? The mojoPortal doesn't work anyway. The only way is to mail to mono ebuild maintainer at bugs.gentoo.org. But first it could be a good idea to simply verify it with other distributions.  

12/7/2007 2:52:10 PM
Gravatar
Total Posts 18439

Re: new 2.2.3.9 install, first time home page request error

To me this looks like a bug in Mono System.Configuration because it should know about the asp tag prefix and its mapping to System.Web.UI.

For our own custom server controls we have to tell it about the tag prefixes in Web.config under the pages > controls section like this:

<add tagPrefix="portal" namespace="mojoPortal.Web.UI" assembly="mojoPortal.Web" />

so you may be able to help Mono past this bug by putting something like this in the same section of Web.config:

<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web" />

which may help it know where to load the type for the controls from.

Just a theory but I would try it.

Hope it helps,

Joe

12/8/2007 10:54:43 AM
Gravatar
Total Posts 19

Re: new 2.2.3.9 install, first time home page request error

Joe, just out of curiosity and to get this straight but please correct me if I am wrong:

1)  You are able to run on mono currently (minus Web Parts)

2) You are using the latest mojoPortal (some probably not even in svn)

3) You use mono (mcs, mono, libgdiplus?) from svn

 

What subversion revision number is your mono checkout assuming the above conditions are true?

  BTW Thanks for helping figure this out.

    Zak

12/8/2007 11:05:25 AM
Gravatar
Total Posts 18439

Re: new 2.2.3.9 install, first time home page request error

Hi Zak,

1.) Yes, the mojoportal.mds (MonoDevelop Solution) leaves out WebParts

2.) I am using mojoPortal from https://forgesvn1.novell.com/svn/mojoportal/sandboxes/joeaudette, which is only slighty different than trunk, usually at the end of each day I merge my changes to trunk.

3.) yes, yesterday I updated a little documentation here: http://www.mojoportal.com/buildingmonofromsvn.aspx
which includes a download for the script I use to checkout mono

As of yesterday I build mono r90957

I'm using opensuse 10.2 and pgsql

I also just tested on the mono 1.2.6 preview on a different vm and it generally works, found a problem with the UpdatePanel not working like ajax, it does normal postback

Hope it helps,

Joe

12/10/2007 9:01:21 AM
Gravatar
Total Posts 19

Re: new 2.2.3.9 install, first time home page request error

 

Anyhow I am still having problems but now it's with starting apache, however it is mono related.

BTW Bob

if you are running the svn version your mono -V output should look more like:


Mono JIT compiler version 1.2.6 (/trunk/ r90994)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none

Also I do now have an ebuild that installs mono from svn,  but I am still testing it.  For example right now it should allow me to select a spefific revision, but that part is entirely untested.

Hope that helps.

 

12/10/2007 1:21:16 PM
Gravatar
Total Posts 19

Re: new 2.2.3.9 install, first time home page request error

It's alive!  I was fighting configuration problems with apache2 (hah go figure right, I'm no expert and I am pretty sure one needs to be with the complex beast) Anyhow I am running on svn from Sat. (see above post for the actual revision, the garbage is from accidently enabling hit-a-hint plugin)  The only thing that I did run into that was different is the following change in the Web.config file:

<globalization
culture="auto:en-US"
uiCulture="auto:en-US" --- was uiCulture="auto:en"
requestEncoding="utf-8"
responseEncoding="utf-8"
fileEncoding="iso-8859-15" />

mono was throwing an execption regarding formatting using the ambigous "en" culture info.

I've only loaded the home page so far, but I'll update as I progress.

 

   Zak

12/10/2007 4:40:06 PM
bob
Gravatar
Total Posts 126
YAF developer

Re: new 2.2.3.9 install, first time home page request error

Zak, it looks like this  with the latest  tarball. 

Mono JIT compiler version 20071210 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none

With the svn is  the same. I'll try and experiment with kernel settings and flags and will try and compile with TLS=pthread.  Can you show your  USE?

 

 

 


 

12/11/2007 1:48:35 PM
Gravatar
Total Posts 19

Re: new 2.2.3.9 install, first time home page request error

emerge --info gives:

...

USE="acl acpi amd64 berkdb bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog ldap midi mmx mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection screen session spl sse sse2 ssl tcpd truetype-fonts type1-fonts unicode vim xorg zlib" ...

 

nothing special regarding mono or mojoportal except that mono will compile 64-bit for the amd64 vs x86 32-bit.

12/19/2007 12:27:47 PM
Gravatar
Total Posts 19

Re: new 2.2.3.9 install, first time home page request error

Now running on the 1.2.6 release version.  It seems nice so far especially since a bug in the site menu rendering between firefox on windows vs. linux is gone.

Regarding Gentoo the ebuild version has been bumped up to 1.2.6 so this is very nice, but at least I have an ebuild that I can use to pull from svn if needed (I might even think about making an ebuild for mojoPortal itself).

    Zak

12/20/2007 4:17:00 AM
bob
Gravatar
Total Posts 126
YAF developer

Re: new 2.2.3.9 install, first time home page request error

Zak, I don't think,  there's  a sense in a mojoPortal ebuild if it's not in the portage. I have simply renamed mono-1.2.6.ebuild and made digest of a  recent snapshot.  It works  fine with other applications, but now I can't connect to any database from mySQL to PostgreSQL. The last hope is for sqlite, thought I guess there is the old bug  with the System.Web.UI.Literal. All available Linux servers run on Gentoo or FreeBSD. So I now do some things in Windows in a [vain] hope that some day  mojoPortal is running again.     

12/20/2007 12:45:02 PM
Gravatar
Total Posts 19

Re: new 2.2.3.9 install, first time home page request error

I am running 2.2.3.9 compiled with MonoDevelop.

The System.Web.UI.Literal bug has not been a problem since svn r90992, nor is it a problem with the current 1.2.6 release.   Actually current mono release seems to be working nicely.

I am not having database connection issues with firebird, I did however run into one bug in the DAL regarding some of the SQL.  

My guess is that you are running into database connection string/configuration issues, but without seeing the page's debug output it is difficult to tell more.  Hope you figure it out

12/20/2007 3:42:56 PM
bob
Gravatar
Total Posts 126
YAF developer

Re: new 2.2.3.9 install, first time home page request error

Zak, now I can launch current svn portal version under sqlite and yesterday mono snapshot, so mojoPortal  works fine again with Mono.  I prefer to build from snapshots as they make some basic tests before archiving it.  So  the problem is  with something else (maybe with my hands). MySQL  and  PostgreSQL  run fine with  other  Linux applications. 

Thanks for help!  It's a rare  luck  to  find  another  Gentoo  user with an  application like this.

 

 

 

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