[Mono-dev] mono git (3.0.5) asp mvc problem

artyom.szasa at gmail.com artyom.szasa at gmail.com
Fri Feb 22 17:34:05 UTC 2013


I've just updated my mono from the master (git). Before it was 3.0.3, now
it says it is 3.0.5.

After the update I can no longer run mvc applications (I'm running them by
explicitly executing them from terminal, i.e. /path/to/mono
/path/to/fastcgi_mono_server4.exe ...agrs...).

I can see an InvalidCastException being thrown
at System.Configuration.ConfigurationManager.get_AppSettings () [0x00038]
  at Mono.WebServer.FastCgi.WorkerRequest..cctor () [0x0002c] in
--- End of inner exception stack trace ---
at (wrapper xdomain-invoke)
at (wrapper remoting-invoke-with-check)

I've modified the source to include additional cast information in
InvalidCastException and the problem is that
ConfigurationManager.GetSection ("appSettings") returns object of type
System.Configuration.DefaultSection instead of the NameValueCollection.

I had no such problems using mono 3.0.3.

Also I've looked at my etc/mono/4.5/machine.config and it contains the
following line:
<section name="appSettings" type="System.Configuration.AppSettingsSection,
System.Configuration, Version=, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />

Any suggestions?

Thank you in advice,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130222/c3d21d4c/attachment.html>

More information about the Mono-devel-list mailing list