Mono JIT compiler version 104788 - Almost working ??

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.
6/4/2008 7:23:15 AM
Gravatar
Total Posts 101

Mono JIT compiler version 104788 - Almost working ??

Hi All,

Ok.. I've got a site working fine on a shared server, and thought i'd give a linux vps a go.

I've install the latest Nightly snapshot for OpenSuSe 10.3, basic asp.net 2.0 stuff via xsp2 and lighttpd working.

Got mysql/latest build etc all configured/changes to Web.config, dll's etc. (Thanks Joe).

/Setup/Default.aspx runs perfectly. No errors.

I disable Setup.. And try the site..

Then I get this. (after enabling real messages)... (running Lighttpd+FastCGI)

====================================================================

Server Error in '/' Application
Object reference not set to an instance of an object

 

Description: HTTP 500. Error processing request.

Stack Trace:

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.ProcessLoadComplete () [0x00000]
at System.Web.UI.Page.InternalProcessRequest () [0x00000]
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]

Version information: Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42

=======================================================================

(Same error if I switch to XSP2 also..)

Any Ideas ?

Regards
Andrew

 

6/4/2008 8:08:08 AM
Gravatar
Total Posts 18439

Re: Mono JIT compiler version 104788 - Almost working ??

Hi Andrew,

I think you should report this to the Mono developer mailing list or the forum mono -dev . They are using mojoportal for some QA so they should be able to replicate this issue. I know they are working toward their 2.0 release and will want to fix this. If I get a chance I'll update my svn build of mono and see if I can also produce the problem, the build I have now works but its not current.

Best,

Joe

6/12/2008 8:39:49 AM
Gravatar
Total Posts 101

Re: Mono JIT compiler version 104788 - Almost working ??

Hi Joe,

I logged a bug with the mono guys and got the following reply.

----------------------------------------------------------------------------------------------------------------------------

------- Comment #1 From Zoltan Varga 2008-06-11 11:42:28 MDT -------

-> Sys.Web

------- Comment #2 From Marek Habersack 2008-06-11 14:05:38 MDT -------

The ebove backtrace doesn't come from the Mono version of System.Web.Extensions
- are you sure you're not using MS.NET System.Web.Extensions.dll (in the bin/
directory or in your GAC)?

I tried to reproduce the error without success (using mono trunk and 1.9.1
alike) - the only explanation that it throws the exception is in the first
paragraph.

-------------------------------------------------------------------------------------------------------------------------------

Could this be the case ? Is there a wrong System.Web.Extensions.dll in the mono build ??

I performed the following steps..

1) CLEAN opensuse 10.3 image, install Mono 1.9.1 from go-mono download page.

2) Test basic hello world asp.net 2.0 page works.

3) created a directory called MOJO and setup apache Mod-Mono_Server2 application directories etc etc..

4) unzipper mojoportal-2-2-5-8-pgsqlreleasefiles-for-mono.zip and placed the webdirectory in the MOJO directory.

5) mojoportal-2-2-5-8-mysqldatalayer.zip and placed the DLL's into the MOJO/BIN directory

6) Overwrite the Web.config with the mysqldatalayer Web.config file.

7) Modify the login details for MySQL, Create a clean database

8) Run website/setup/default.aspx

9) Get tables/etc created ok, message to disablesetup. (ALL looking good)

10) Crash with the error.

Do I need to gacutil register anything ? should I have commented out more details in the mysqldatalayer Web.config ?

Any ideas.. (based on the mono guys feedback) ?

Andrew

PS.. Do you have a mono makefile ? so one can compile via text command line without monodevelop/gui ?

 

 

 

6/12/2008 8:42:41 AM
Gravatar
Total Posts 18439

Re: Mono JIT compiler version 104788 - Almost working ??

Yes, its possible. Look in the bin folder, if you see System.Web.Extensions.dll, delete it then it should use the one form the Mono GAC.

Let me know if that solves it. I have tested on recent mono builds from svn and never got the error.

Best,

Joe

6/12/2008 8:50:29 AM
Gravatar
Total Posts 101

Re: Mono JIT compiler version 104788 - Almost working ??

Just checked the mojoportal-2-2-5-8-pgsqlreleasefiles-for-mono.zip file from your website.

It does contain System.Web.Extensions.dll in the ZIP..

I'll delete the file and try again now.. 

6/12/2008 9:30:25 AM
Gravatar
Total Posts 101

Re: Mono JIT compiler version 104788 - Almost working ??

Success!!!!!!

Here are my notes on making MojoPortal 2.2.5.8 work with Mono 1.9.1/Apache on my OpenSuSe 10.3 box.

 

1) unzip the mojoportal-2-2-5-8-pgsqlreleasefiles-for-mono.zip to say /tmp/mono

 

2) delete the /tmp/mono/pgsqlreleasefiles-for-mono/web/bin/System.Web.Extensions.dll

3) unzip the mojoportal-2-2-5-8-mysqldatalayer.zip to say /tmp/fix

4) ONLY copy the dll's from mysqldata layer into the pgsql mono release bin directory.

cp /tmp/fix/mysqldatalayer/*.dll /tmp/mono/pgsqlreleasefiles-for-mono/web/bin

DO NOT copy the Web.config...

5) edit the Web.config (check 'comment this out for Mono' is commented out)
And modify the SubSonicProvider key as follows:

<add key="SubSonicProvider" value="subsonicMySql" />

Also modify the MySqlConnectionstring key as to match your MySQL server.

<add key="MySqlConnectionString" value="Data Source...." etc etc /

6) Move the new Mojo files to your webroot location (ie. for OpenSuSe 10.3 its /srv/www/htdocs)

mv /tmp/mono/pgsqlreleasefiles-for-mono/web/* /srv/www/htdocs

7) A directory is missing from the ZIP.. (i'll assume /srv/www/htdocs is your webroot below)

mkdir /srv/www/htdocs/Data/Sites/1/GalleryImages/

7) Make sure your Data directory is writable.

chmod -R 777 /srv/www/htdocs/Data

Now provided you have a blank database and apache etc running.

http://yourwebsite/Setup/Default.aspx should work..

Then disable setup in the Web.config and your in business..!!

Thanks to JOE and the MONO team for the pointers..!

 

6/12/2008 9:35:12 AM
Gravatar
Total Posts 18439

Re: Mono JIT compiler version 104788 - Almost working ??

Excellent! I will delete the offending file from the download.

Best,

Joe

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