Security Exception while running sites using subdomain?

Posted by lmenaria on Stack Overflow See other posts from Stack Overflow or by lmenaria
Published on 2010-04-22T10:12:41Z Indexed on 2010/04/22 10:13 UTC
Read the original article Hit count: 256

Filed under:
|

I have 3 sites :

  1. media.lmenaria.com -> Hosting Images
  2. webservice.lmenaria.com -> Sending images url from database.
  3. www.lmenaria.com -> Host Silverlight application and display images.

When I run page "http://www.lmenaria.com/silverlight.aspx". I am getting below exception. So what shpould I do ?

System.Security.SecurityException: Security error. at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult) at System.Net.Browser.BrowserHttpWebRequest.<>c_DisplayClass5.b_4(Object sendState) at System.Net.Browser.AsyncHelper.<>c_DisplayClass2.b_0(Object sendState) at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state) at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult result) at System.Net.WebClient.OpenReadAsyncCallback(IAsyncResult result)

I think, my all sites runing at same domain, so I don't need crossdomain xmls. Please let me know how Can I fix it.

I have tried to put corssdoamin xml media.lmenaria.com,webservice.lmenaria.com both, and working fine, but only at
www.lmenaria.com not working.

We are downloading images using WebClient.

Thanks in advance, Laxmilal Menaria

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about crossdomain