views:

26

answers:

1

I created a small Silverlight 4.0 / RIA Services application and tested it. I developed the app on a machine at home and needed to move it to the production domain at work. I did this by pushng it to the source repository and then cloning it to a dev machine at work. It builds without an error in both locations.

The problem occurs when I attempt to debug in the new location. At the first 'Load()' method on the domain context I get the following error:

The provided URI scheme 'file' is invalid expected 'http'

I get that the debugger is attempting to run with file based URI rather than an HTTP URI. But, why? And how do I fix it?

Searching through SO returned some similar errors regarding invalid URI schemes, but non of them helped me with this specific issue.

Thanks, Jim

A: 

I am pretty sure you are supposed to reference a server side file, not a local file. Additionally most Silverlight applications are not allowed to access local files.

Alex Lo
The program is not written to acess local files. The error occurs when the Silverlight module is making the RIA service method call. This did work on the original development environment and only failed after moving to another identical (as far as I can tell, but obviously not quite) environment.
Jim Reineri