[Mono-list] Re: XSP2 and WebServices
Robert Jordan
robertj at gmx.net
Thu Mar 23 15:35:37 EST 2006
Michał,
> 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
It used to work for several users.
Please double check the entries and don't forget to
restart mod_mono/xsp. The assembly that must be updated
is System.dll *for the NET_2_0 profile*. I didn't mention
this because it should be obvious. Check this, too.
Robert
>
>> 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
>>
>
> _______________________________________________
> 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