System.ArgumentException: The provided URI scheme ‘file’ is invalid; expected ‘http’.

If you are using Silverlight RIA Services application, you might get this error sometimes. Simple reason is you have set the Silverlight application as a Startup project. When Silverlight project is startup project it will generate a test html page and loads it from file system rather than in http mode. So simple fix is to set the Website that hosts the RIA context as startup project!

Simple isn’t it Smile


  1. May I simply say what a comfort to discover someone
    that actually understands what they’re discussing over the internet.
    You actually know how to bring a problem to light and make
    it important. More people should look at this and understand this side of the story.
    I was surprised you’re not more popular given that you
    certainly possess the gift.

Leave a Reply

Your email address will not be published. Required fields are marked *