Skip to main content
Home Forums Silverlight Programming Programming with .NET - General WebClient security error in IE
1 replies. Latest Post by ken tucker on May 11, 2009.
(0)
SmileyCr...
Member
0 points
1 Posts
05-11-2009 9:18 AM |
Hi,
I'm building a SilverLight image manipulation app that needs to display an image that is retrieved as a stream. I'm using the WebClient to perform an asynchronous resource read to an image on a remote domain but am getting a security error in IE 7 when the async operation completes. The remote domain has a crossdomain and clientaccesspolicy xml files in the root and the WebClient request works fine in Firefox. The network I'm working in sits behind a proxy server, but the same proxy settings are in use in Firefox and IE, and I can browse to the location of the remote image in IE. Is there another security setting within IE or IIS that could be affecting this? Has anyone else come across this issue before? The error itself is not at all helpful, but the stack trace might be:
at System.Net.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state) at System.Net.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result) at System.Net.WebClient.OpenReadAsyncCallback(IAsyncResult result)
Here's the inner exception stack trace:
at System.Net.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult) at System.Net.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState) at System.Net.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState)
Thanks,
ken tucker
All-Star
16346 points
2,499 Posts
05-11-2009 12:12 PM |
Using a tool like fiddler or web developer helper is usually helpful in troubleshooting issues like this
http://silverlight.net/blogs/msnow/archive/2008/10/20/silverlight-tip-of-the-day-63-how-to-monitor-http-traffic-for-errors.aspx