[Mono-dev] Mono fails (randomly?) with this error message
Rafael Teixeira
monoman at gmail.com
Mon Nov 26 12:18:57 UTC 2012
>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
http://stackoverflow.com/questions/7530725/unrecognized-attribute-targetframework-note-that-attribute-names-are-case-sen).
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.
Hope it helps,
Rafael "Monoman" Teixeira
---------------------------------------
"The most exciting phrase to hear in science, the one that heralds new
discoveries, is not 'Eureka!' (I found it!) but 'That's funny ...'"
Isaac Asimov
US science fiction novelist & scholar (1920 - 1992)
On Sun, Nov 25, 2012 at 3:34 PM, Frank Cohen <frankenspank at gmail.com> wrote:
> 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.
>
> 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.
>
> Error below,
>
> - Frank
>
>
>
> System.Configuration.ConfigurationErrorsException: Unrecognized attribute
> 'targetFramework'. (/var/www/vhosts/site//httpdocs/Web.config line 1)
> 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
> 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
> 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
> 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
> 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
> at System.Configuration.Configuration.GetSection (System.String path)
> [0x0006a] in
> /root/mono-2.10.9/mcs/class/System.Configuration/System.Configuration/Configuration.cs:261
> 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
> 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
> 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
> 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
> at System.Web.Compilation.AppCodeCompiler.Compile () [0x000bb] in
> /root/mono-2.10.9/mcs/class/System.Web/System.Web.Compilation/AppCodeCompiler.cs:666
> 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
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20121126/dc05c091/attachment.html>
More information about the Mono-devel-list
mailing list