Quantcast
Channel: Questions in topic: "httpwebrequest"
Viewing all articles
Browse latest Browse all 190

HTTP WebRequest with iOS Stripping

$
0
0
httpWebRequest works fine for me on iOS device until I turn on code stripping. I have seen conflicting posts, some of them admittedly quite old, as to whether this can be made to work. I have tried to identify and and add required types and namespace to the link.xml file. But haven't managed to get this to work yet. It might just be my syntax or chosen namespaces. Can anybody confirm if they have managed to get this to work. The error I am getting is System.TypeInitializationException: An exception was thrown by the type initializer for System.Net.WebRequest ---> System.Exception: Error Initializing the configuration system. ---> System.Exception: Method not found: 'Default constructor not found...ctor() of System.Configuration.ExeConfigurationHost'. at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in :0 at System.Activator.CreateInstance (System.Type type) [0x00000] in :0 at System.Configuration.InternalConfigurationSystem.Init (System.Type typeConfigHost, System.Object[] hostInitParams) [0x00000] in :0 at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in :0 at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) [0x00000] in :0 at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in :0 --- End of inner exception stack trace --- at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in :0 at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in :0 at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00000] in :0 at System.Net.WebRequest..cctor () [0x00000] in :0 --- End of inner exception stack trace --- My link.xml currently contains the following, but event that is throwing the error above.

Viewing all articles
Browse latest Browse all 190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>