Mono Runtime Version: 2.10.1 in ASP.NET 4.0 'ISectionSetting' errors

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.
4/25/2011 8:51:53 AM
Gravatar
Total Posts 101

Mono Runtime Version: 2.10.1 in ASP.NET 4.0 'ISectionSetting' errors

Hi Joe,

Just tried the latest mojo with mono 2.10.1 (in .NET 4.0/server4 mode) and I get this error message.

BUT it appears to work ok in server2 (.NET 2.0 mode).

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

Server Error in '/' Application
Mapper type does not implement the ISectionSettingsMapper interface

Description: HTTP 500. Error processing request.

Stack Trace:

System.InvalidOperationException: Mapper type does not implement the ISectionSettingsMapper interface
  at Mono.Web.Util.SettingsMapping.get_MapperType () [0x00000] in <filename unknown>:0
  at Mono.Web.Util.SettingsMapping.MapSection (System.Object input, System.Type type) [0x00000] in <filename unknown>:0
  at Mono.Web.Util.SettingsMappingManager.MapSection (System.Object input, System.Type type) [0x00000] in <filename unknown>:0
  at Mono.Web.Util.SettingsMappingManager.MapSection (System.Object input) [0x00000] in <filename unknown>:0
  at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path, System.Web.HttpContext context) [0x00000] in <filename unknown>:0
  at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path) [0x00000] in <filename unknown>:0
  at System.Web.Configuration.WebConfigurationManager.GetWebApplicationSection (System.String sectionName) [0x00000] in <filename unknown>:0
  at System.Web.Compilation.BuildManager.GetReferencedAssemblies () [0x00000] in <filename unknown>:0
  at System.Web.Compilation.BuildManager.CallPreStartMethods () [0x00000] in <filename unknown>:0

Version information: Mono Runtime Version: 2.10.1 (tarball Sun Apr 24 16:07:50 MSD 2011); ASP.NET Version: 4.0.30319.1

4/25/2011 9:00:09 AM
Gravatar
Total Posts 18439

Re: Mono Runtime Version: 2.10.1 in ASP.NET 4.0 'ISectionSetting' errors

I ran into a number of problems trying to use the .NET 4 profile in Mono, that is why my packages and the mojoportal.mono.sln are configured for 3.5 .NET.

Best,

Joe

4/25/2011 9:17:02 AM
Gravatar
Total Posts 101

Re: Mono Runtime Version: 2.10.1 in ASP.NET 4.0 'ISectionSetting' errors

Ahh.. Thanks..

I did notice I also got this error (but it went away after refreshing the page a few times). - Using the .NET 3.5/Monoserver 2..

It seems to run slowly (4cpu, 2.5megs ram server) also..

My GUT says Novell are only interested in MonoTouch/DroidTouch these days. Their Moonlight has slipper away and their ASP.NET

support is not fantastic..  I must say.. I have been following mono from day 1.. And I love C#/.NET.. But mono seems to be fading away a bit ?

I can get more reliable cross platform stuff with PhP or FreePascal/Lazarus/Delphi...

Andrew

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

Server Error in '/' Application
The current thread has not entered the lock in read mode

Description: HTTP 500. Error processing request.

Stack Trace:

System.Threading.SynchronizationLockException: The current thread has not entered the lock in read mode
  at System.Threading.ReaderWriterLockSlim.ExitReadLock () [0x00000] in <filename unknown>:0
  at System.Web.HttpApplicationState.Get (System.String name) [0x00000] in <filename unknown>:0
  at System.Web.HttpApplicationState.get_Item (System.String name) [0x00000] in <filename unknown>:0
  at mojoPortal.Web.Global.IncrementUserCount () [0x00000] in <filename unknown>:0
  at mojoPortal.Web.Global.Session_Start (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Web.SessionState.SessionStateModule.OnSessionStart () [0x00000] in <filename unknown>:0
  at System.Web.SessionState.SessionStateModule.OnAcquireRequestState (System.Object o, System.EventArgs args) [0x00000] in <filename unknown>:0
  at System.Web.HttpApplication+<RunHooks>c__Iterator5.MoveNext () [0x00000] in <filename unknown>:0
  at System.Web.HttpApplication+<Pipeline>c__Iterator6.MoveNext () [0x00000] in <filename unknown>:0
  at System.Web.HttpApplication.Tick () [0x00000] in <filename unknown>:0

Version information: Mono Runtime Version: 2.10.1 (tarball Sun Apr 24 16:07:50 MSD 2011); ASP.NET Version: 2.0.50727.1433

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

4/25/2011 9:32:16 AM
Gravatar
Total Posts 18439

Re: Mono Runtime Version: 2.10.1 in ASP.NET 4.0 'ISectionSetting' errors

I have to agree, I've been working with Mono since 2004 and it has never become a reliable stable web platform for running mojoPortal as I hoped it would one day. It works sometimes but I have never felt like I could recommend it for any important production site because I know people will have problems with it whereas if they just use Windows hosting things work smooth and if they do have a problem I know I can fix it whereas with Mono it is usually a problem in Mono that I cannot fix but can only report upstream. My interest and enthusiasm for Mono has diminished quite a lot over the years though I do still try to keep mojoPortal compatible with it as long as it does not require a great deal of effort on my part to do so. My impression is also that they are more focused on mobile opportunities and I don't blame them really since that is actually generating revenue for them. Really the writing has always been on the wall since the Mono web site has always run on PHP not ASP.NET/Mono. If you don't eat your own cooking chances are no-one else will either. If they were relying on Mono for any important sites of their own there would be more chance of bugs getting found and fixed sooner and it could become a more stable platform. I tried to tell them that back in 2005. This is why not many web hosts bother with Mono either.

Best,

Joe

4/25/2011 10:05:38 AM
Gravatar
Total Posts 101

Re: Mono Runtime Version: 2.10.1 in ASP.NET 4.0 'ISectionSetting' errors

100% agree. It might be worth a survey to see how many want mono support? I was a big Linux/mono supporter. But 6+ years enough time wasted hoping/waiting. I would vote for dropping Linux/mono supportnow myself... To focus on newfeatures. REGARDS Andrew
4/25/2011 10:29:58 AM
Gravatar
Total Posts 18439

Re: Mono Runtime Version: 2.10.1 in ASP.NET 4.0 'ISectionSetting' errors

Well, if it were a big burden I would drop it but it really isn't blocking me from anything I want to do and it does not take a lot of effort (or at least I don't put in a lot of of effort testing and such).

Really there are only a few things developers should have to be conscious of to support Mono like case sensitivity of urls and proper handling of file system paths, ie using Directory.PathSeparatorChar rather than hard coding \ characters into strings, not using P/Invoke against native windows dlls (can't do that in medium trust anyway), etc.

Other than that if Mono is working like it is supposed to it should be the same as .NET on Windows.

What it would really need to stabilize Mono for mojoPortal is someone who is dedicated to testing and and filing bug reports to the Mono team and that is something I don't have time for and have not put much time in on for quite a while now. Without that I think it will always be hit or miss using Mono. I keep hoping that someone else in the community would be interested and committed enough to take charge of testing and reporting bugs on Mono. I would love for that to happen, but I'm far to busy to do it myself.

Best,

Joe

5/4/2011 10:06:51 AM
Gravatar
Total Posts 18439

Re: Mono Runtime Version: 2.10.1 in ASP.NET 4.0 'ISectionSetting' errors

Looks like trouble for the Mono project.

Attachmate Lays Off Mono Employees

Sad to see this news, it doesn't bode well for Mono to improve and become more stable for web apps.

Best,

Joe

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