I need to avail functionality given by "ServicePointManager" class in windows phone 7 but that class is not present for WP7 framework. Is there any other class which gives this functionality?
Actual requirement is: I need to allow any certificate while making HTTPS connection.
Now its giving me following exception:
System.Net.WebException
Message=The remote server returned an error: NotFound
System.Net.WebException
Message=The remote server returned an error: NotFound
But I'm getting "Not Found" Exception due to HTTPS certification issue! I want to ignore that error and continue with the HTTPS connection. This can be done using "ServicePointManager" class which is not present in Windows Phone 7 Framework!!!
smile_rams
Member
5 Points
13 Posts
Any alternative class for "ServicePointManager" class in Windows Phone 7 Framework?
Jan 13, 2011 05:08 AM | LINK
I need to avail functionality given by "ServicePointManager" class in windows phone 7 but that class is not present for WP7 framework. Is there any other class which gives this functionality?
Actual requirement is: I need to allow any certificate while making HTTPS connection.
Now its giving me following exception:
System.Net.WebException
Message=The remote server returned an error: NotFound
wp7 https ssl WebException ServicePointManager
Nathan
smile_rams
Member
5 Points
13 Posts
Re: Any alternative class for "ServicePointManager" class in Windows Phone 7 Framework?
Jan 18, 2011 04:03 AM | LINK
Any idea from someone?
Nathan
ajdotnet
Participant
804 Points
160 Posts
Re: Any alternative class for "ServicePointManager" class in Windows Phone 7 Framework?
Jan 21, 2011 12:04 PM | LINK
The behavior of WP7 should be similar to teh common Silverlight, thus have a look at http://ajdotnet.wordpress.com/2010/08/29/communicationexception-notfound/
PS: Please remember to mark this reply as answer if it helped you solve your issue. Thanks.
http://ajdotnet.wordpress.com/category/silverlight/
smile_rams
Member
5 Points
13 Posts
Re: Any alternative class for "ServicePointManager" class in Windows Phone 7 Framework?
Jan 24, 2011 08:21 AM | LINK
But I'm getting "Not Found" Exception due to HTTPS certification issue! I want to ignore that error and continue with the HTTPS connection. This can be done using "ServicePointManager" class which is not present in Windows Phone 7 Framework!!!
Nathan
ajdotnet
Participant
804 Points
160 Posts
Re: Any alternative class for "ServicePointManager" class in Windows Phone 7 Framework?
Jan 28, 2011 05:48 AM | LINK
I'm afraid, your're stuck, ServicePointManager is not available in Silverlight (any version).
The douc just hints at this limitation (by not describing it): see http://msdn.microsoft.com/en-us/library/gg521147(v=VS.92).aspx "protecting communication..."
You're not the only one discovering this gap, though: http://connect.microsoft.com/VisualStudio/feedback/details/368047/add-system-net-servicepointmanager-servercertificatevalidationcallback-property
PS: Please remember to mark this reply as answer if it helped you solve your issue. Thanks.
http://ajdotnet.wordpress.com/category/silverlight/
smile_rams
Member
5 Points
13 Posts
Re: Re: Any alternative class for "ServicePointManager" class in Windows Phone 7 Framework?
Jan 31, 2011 04:23 AM | LINK
Thanks a lot AJ.NET.
Now I need to think of some other solution.
Nathan