LA.NET [EN]

Jul 03

Silverlight alpha gotchas

Posted in Uncategorized      Comments Off on Silverlight alpha gotchas

[Update: I must have been drinking when i wrote this :,,) It should be local domain because you cannot get objects from a remote host through the BrowserHttpWebRequest]

These 2 just made me loose +45 minutes:

1. if you”re using the BrowserHttpWebRequest to download files from a remote domain, then make sure you”re testing your page from a web server (the internal server that comes with VS works, but you”ll start getting the object is not on the correct state exception -or something like that – if you try accessing objects from a remote host).

2. The same holds true if you”re loading a remote wmv file on a MediaElement.

Not sure if there”s any explanation for these, but it did steel me 45 precious minutes.