Skip to main content
Home Forums Silverlight Programming Visual Studio & Silverlight Development Tools Post Failed - Security Error
3 replies. Latest Post by laxmikantha on October 29, 2008.
(0)
Rajeev BV
Member
17 points
38 Posts
10-22-2008 12:25 AM |
Hi,
I'm getting this error (Post Failed - Security Error) when I'm getting the response back from Apache Server. There is a security exception thrown on the line response = request.EndGetResposne(ar); I'm using Silverlight Release 2 version. VS 2008 SP1
Request:
request.Method =
{
response = request.EndGetResponse(ar);
}
statusString = we.Status.ToString();
statusString = se.Message;
statusString = se.InnerException.Message;
syncContext.Post(ExtractResponse, response);
Any reasons?
meshiach
50 points
17 Posts
10-22-2008 9:59 AM |
Perhaps
request.ContentType = "text/plain";
10-22-2008 10:03 AM |
Another option could be
laxmikantha
28 points
12 Posts
10-29-2008 12:33 AM |
I am also facing the same proble. My php file is simple php returning a string. The content is like
<?phpecho 'teststream';?>
and it is residing in my apache server. If I run it on the browser (url is like- http://xxx.yyy.zzz.mm/1.php), it displays the string.
I am expecting the string 'teststream' to be apper on the text box in response to button click event. I am using the same code as Rajeev posted. The same code working fine previous version of silverlight
regards,
Laxmikanth