[Mono-list] Re: XSP2 and WebServices

Michał Ziemski rook at roo.k.pl
Thu Mar 23 15:19:00 EST 2006


Now I get

Unhandled Exception: System.InvalidCastException: Cannot cast from 
source type to destination type.
in <0x0006b> System.Configuration.ConfigurationSettings:get_AppSettings ()
in <0x0013f> Mono.XSP.Server:Main (System.String[] args)

Michal Ziemski

> Hey,
>
> Michał Ziemski wrote:
>> Hi!
>>
>> I have a problem invoking the TestService.asmx (test webservice 
>> bundled with XSP) when
>> running it in xsp2.
>>
>> I get "An exception was thrown by the type initializer for 
>> System.Net.HttpWebRequest" when I try to run it from the default test 
>> form
>> for the first time. Any further invocation results in "Error: 
>> NameResolutionFailure".
>>
>> Everything works perfect in xsp.
>>
>> My configuration: Fedora Core 4, Mono 1.1.13-4
>>
>> Any ideas?
>
> 1) edit $your-mono-prefix/etc/2.0/machine.config and
>    replace "System.Net.Configuration.SettingsSection"
>    with "System.Net.Configuration.NetConfigurationHandler"
>    It occurs only once.
>
> 2) go to http://mono.ximian.com/daily/ and download an update
>    suitable for your Mono version. Untar the update, lookup
>    System.dll and update your installation with
>
>    gacutil -i System.dll
>
> This will be fixed with the next (minor or major) Mono version.
>
> Robert
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>



More information about the Mono-list mailing list