>From the error messages, seems like you are running mod_mono with the wrong profile of mono (targetFramework is a 4.0 thing). In the .NET world it is normally a problem with configuring properly the Application_Pool for the right profile (see top answer for <a href="http://stackoverflow.com/questions/7530725/unrecognized-attribute-targetframework-note-that-attribute-names-are-case-sen">http://stackoverflow.com/questions/7530725/unrecognized-attribute-targetframework-note-that-attribute-names-are-case-sen</a> ). <div>
<br></div><div>In Mono land I don't know for sure, and can't digg it just now on the sources at github, but it seems you need to use the right mod_mono: there's a xsp4 standalone server, so probably there's some thing like a mod_mono4, or some command line or configuration parameter to choose the right profile.</div>
<div><br></div><div>Hope it helps,</div><div class="gmail_extra"><br clear="all">Rafael "Monoman" Teixeira<br>---------------------------------------<br>"The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!' (I found it!) but 'That's funny ...'"<br>
Isaac Asimov<br>US science fiction novelist & scholar (1920 - 1992)<br>
<br><br><div class="gmail_quote">On Sun, Nov 25, 2012 at 3:34 PM, Frank Cohen <span dir="ltr"><<a href="mailto:frankenspank@gmail.com" target="_blank">frankenspank@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>I am running Mono 2.10.9 under mod_mono/cent os.  I am getting this error, seemingly at random.  When I restart Apache, the error goes away.</div><div><br></div><div>Should I upgrade to another version of Mono? I upgraded to 2.10.9 because I was having issues with a previous stable release, this issue only appeared since the update to 2.10.9.</div>

<div><br>Error below,</div><div><br></div><div>- Frank</div><div><br></div><div><br></div><div><br></div><div>System.Configuration.ConfigurationErrorsException: Unrecognized attribute 'targetFramework'. (/var/www/vhosts/site//httpdocs/Web.config line 1)</div>

<div>  at System.Configuration.ConfigurationElement.DeserializeElement (System.Xml.XmlReader reader, Boolean serializeCollectionKey) [0x0046d] in /root/mono-2.10.9/mcs/class/System.Configuration/System.Configuration/ConfigurationElement.cs:408 </div>

<div>  at System.Configuration.ConfigurationSection.DoDeserializeSection (System.Xml.XmlReader reader) [0x000d7] in /root/mono-2.10.9/mcs/class/System.Configuration/System.Configuration/ConfigurationSection.cs:183 </div>
<div>
  at System.Configuration.ConfigurationSection.DeserializeSection (System.Xml.XmlReader reader) [0x00000] in /root/mono-2.10.9/mcs/class/System.Configuration/System.Configuration/ConfigurationSection.cs:189 </div><div>  at System.Configuration.Configuration.GetSectionInstance (System.Configuration.SectionInfo config, Boolean createDefaultInstance) [0x000e3] in /root/mono-2.10.9/mcs/class/System.Configuration/System.Configuration/Configuration.cs:305 </div>

<div>  at System.Configuration.ConfigurationSectionCollection.get_Item (System.String name) [0x00032] in /root/mono-2.10.9/mcs/class/System.Configuration/System.Configuration/ConfigurationSectionCollection.cs:68 </div><div>

  at System.Configuration.Configuration.GetSection (System.String path) [0x0006a] in /root/mono-2.10.9/mcs/class/System.Configuration/System.Configuration/Configuration.cs:261 </div><div>  at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path, System.Web.HttpContext context) [0x001d4] in /root/mono-2.10.9/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:503 </div>

<div>  at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path) [0x00000] in /root/mono-2.10.9/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:418 </div>

<div>  at System.Web.Configuration.WebConfigurationManager.GetWebApplicationSection (System.String sectionName) [0x0002c] in /root/mono-2.10.9/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:670 </div>

<div>  at System.Web.Compilation.AppCodeAssembly.Build (System.String[] binAssemblies) [0x0011f] in /root/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/AppCodeCompiler.cs:203 </div><div>  at System.Web.Compilation.AppCodeCompiler.Compile () [0x000bb] in /root/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/AppCodeCompiler.cs:666 </div>

<div>  at System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext context) [0x00078] in /root/mono-2.10.9/mcs/class/System.Web/System.Web/HttpApplicationFactory.cs:422 </div>
<br>_______________________________________________<br>
Mono-devel-list mailing list<br>
<a href="mailto:Mono-devel-list@lists.ximian.com">Mono-devel-list@lists.ximian.com</a><br>
<a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
<br></blockquote></div><br></div>