A A
RSS

Cross Domain Error Fix for Silverlight

Tue, Mar 18, 2008

Uncategorized

The easiest/quickest way to fix a cross domain error is to create a test website to host your Silverlight application.

image

When you hit F5 to debug the application, it will run the development server and the address bar will say http://localhost:xxx/blahblah.  This will prevent a cross-domain error.

If you try to run it using an test html page from the file system i.e. browser address would say something like c:\projects\silverlighttest.html then it will throw the cross-domain error.

If you already have your Silverlight application created then just create an empty website or web application project and then right-click on it and click "Add Silverlight Link…"

image

Then follow the instructions on the screen

image

Tags: , ,

blog comments powered by Disqus
Advertise Here

What I'm Doing...

Yonkly Open Source

Sign up for my newsletter

powered by MailChimp!

Cyber Identity