Skip to main content

Microsoft Silverlight

Answered Question Cross domain access blockedRSS Feed

(0)

exx87
exx87

Member

Member

6 points

6 Posts

Cross domain access blocked

Hi,

I want to cross domain call a .xaml file from other website (but I don't want to download the xaml file).

Such as,

Silverlight.createObjectEx({
        source:" http://silverlight.net/abc.xaml", ...

How can I do that?

WynApse
WynApse

Star

Star

8456 points

342 Posts

Silverlight MVP

Re: Cross domain access blocked

Unless something changed recently, that's not possible.

There have been some other threads about this as well.

-Dave

Stay in the 'Light
Silverlight MVP
http://www.wynapse.com

Gondor
Gondor

Member

Member

157 points

31 Posts

Answered Question

Re: Cross domain access blocked

I don't think Silverlight supports that natively.  You could work around this by creating a handler that acts as a simple proxy, performing the 'GET' request for the remote xaml, returning it to your application.  Once the proxy is ready, you can set the 'source' attribute to a local file, for example:

source: "/handler.ashx",...

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities