views:

73

answers:

2

I have two solutions, one is the WCF service and the other one is the Silverlight. I would like to use the debugger on both solutions at the same time. The debugger for the WCF service automatically starts a ASP.NET development server. However, I have a hard time making my Silverlight client connecting to the ASP.NET development server. The error says that I'm lacking of the client domain policy file.

Does anyone know where should I put the clientaccesspolicy.xml for the ASP.NET development server?

Thanks a lot!

+2  A: 

clientaccesspolicy.xml needs to be in the root directory for the web server running the WCF service. In your case, this probably means the solution directory for the WCF application (if you're running the web server "in place").

You could also try using Fiddler or Firebug to determine exactly where the file is being requested.

Michael Todd
I used the Firebug and check where the file is being requested. However, I found this address "http://localhost:54286/clientaccesspolicy.xml" which I have no clue to know the physical path that this link points to. The response is 404 not found. I tried to put the policy file in every possible location in my solution but it still cannot find it. Do you have other ideas?Thanks a lot.
Peter
A: 

Have a look at this blog entry by Tim Heuer which I found helpful in solving the same problem.

IsolatedStorage