When i make that call from iPhone Simulator (iOS 6)
var request = System.Net.HttpWebRequest.Create(url);
I have following error
An exception was thrown by the type initializer for System.Net.WebRequest
Error Initializing the configuration system.
Unrecognized configuration section <system.runtime.remoting>
/Developer/MonoTouch/SDKs/MonoTouch.iphonesimulator.sdk/usr/etc/mono/2.0/machine.config
Stacktrace
at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in <filename unknown>:0
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <filename unknown>:0
at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in <filename unknown>:0
at System.Net.WebRequest..cctor () [0x00000] in <filename unknown>:0
I doesn't undestand what i must do..
UPDATE
My project have a CORE where are referenced that libraries:
My iOS Project link CORE Project and have that references:
System.Configuration
is not part (neither as an assembly or namespace) of the BCL shipped with Xamarin.iOS.
If you get this error it's because you (somehow) got another System.dll
(v2.0 from Mono or MS?) into the simulator and this won't work properly.
Make sure you're referencing only the BCL assemblies from Xamarin.iOS and the problem will go away.