The section <system.webServer> is defined more than once in Web.config

mojoPortal is no longer supported on mono. This forum is here for archival purposes.

This forum is for any topic related to running mojoPortal on GNU/Linux or Mac using Mono.

Anyone who can help with testing mojoPortal 2.x on Linux with Mono to find the bugs and report to the Mono team, this will help a lot. See the instructions for building with MonoDevelop.

This thread is closed to new posts. You must sign in to post in the forums.
8/18/2012 12:27:46 AM
Gravatar
Total Posts 1

The section <system.webServer> is defined more than once in Web.config

Hi,

I'm getting 503 errors when attempting to run the /Setup/Default.aspx or attempting to access a newly created instance of Mojo. I have got the XSP test site working via Apache fine however.

I get the following in my Apache errors log:

System.Configuration.ConfigurationErrorsException: The section <system.webServer> is defined more than once in the same configuration file. (/var/www/mojo/Web.config line 1054)

 

The offending sections appears to be the below. As you can see the default Web.config has an additional configuration to set validateIntergradedModeConfiguration = false, but this appears to conflict with the one in location tags below it.

Is there any recommended way to resolve this?

 

<!-- this one needs to be outside of the location element because this setting should also go to child apps -->
<system.webServer>
<!-- Disable runtime rejection of Integrated mode applications that have legacy ASP.NET settings -->
<validation validateIntegratedModeConfiguration="false" />
</system.webServer>

<location inheritInChildApplications="false">
<system.webServer>

8/20/2012 11:58:20 AM
Gravatar
Total Posts 18444

Re: The section <system.webServer> is defined more than once in Web.config

Sorry but I currently don't recommend trying to use mojoPortal on Mono. You could remove the extra section or the location element but even if you get past that error you will very likely encounter many more errors. I tried for many years to support mojoPortal on Mono but it has never really reached a point where I could recommend using it for production, each new Mono release fixes some things and breaks others. I stopped testing with Mono some time ago.

Best,

Joe

9/29/2012 5:03:10 PM
Gravatar
Total Posts 2

Re: The section <system.webServer> is defined more than once in Web.config

I'd suggest that you remove this page http://www.mojoportal.com/linuxmonosupport.aspx if you don't recommend it, I've wasted a fair bit of time thinking that mojoPortal officially supported mono.

Also, on the download page, you suggest that there are mono specific files (I'm assuming there used to be) which sent me looking for them.

I'm going to try and get it up and running building from source as all my other sites run using mono.

When was the last time you tried using mono? It's come a long way in the last year or so.

9/30/2012 6:17:23 AM
Gravatar
Total Posts 18444

Re: The section <system.webServer> is defined more than once in Web.config

Hi,

I agree and have removed that page. I should have removed it sooner and apologise for the inconvenience.

I tried to support Mono for many years but it never in those years really was reliable enough for important production sites and it was a lot of extra work trying to support it. Back when Mono was under Novell they used to put out a VMWare image of opensuse with mono for every new release of Mono and that made it easier for me to do testing as I'm not a linux super guru. But they no longer provide such and it makes it even more work to setup a test environment. I always had to make separate builds for Mono and the last version of mojoPortal where I did that was version 2.3.6.5 which can still be downloaded but I have no idea if it works with the latest mono. Its hard also to keep supporting it because only a very old version of AjaxControlToolkit works with Mono as far as I know. 

My perception is that the Mono guys are more focused on mobile these days and maybe web services to support mobile, but large complex web apps are a difficult challenge, they don't run their own sites on Mono, they use php. Its hard to have confidence in their web stack if they don't eat their own cooking.

Best Regards,

Joe

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