Re: attempting to access a service in a cross-domain way

2011-10-30 Thread Mikala Gardineros
If the service is hosted on a different web site to that which is hosting
your silverlight app, you most definitely will need a clientaccesspolicy.xml
on the site hosting the service (or even the flash equivelant
crossdomain.xml works if that is your preference.)

One easy way to check is to monitor with fiddler.  You will see a 404 on
clientaccesspolicy.xml and then you will see a 404 on crossdomain.xml.  This
will give you a very good hint as to where the file should be located :-)

In your case it will most likely be looking for it at
http://localhost/clientaccesspolicy.xml

On Sun, Oct 30, 2011 at 8:55 AM, Greg Keogh g...@mira.net wrote:

 Folks, I’ve just created a hello world WCF web service with
 basicHttpBinding which I know is working correctly from URL
 http://localhost/PhotoService/Service1.svc.

 ** **

 I created a simple Silverlight 4 app with a single button to call the
 service to sanity check it’s working. It dies with this:

 ** **

 An error occurred while trying to make a request to URI '
 http://localhost/PhotoService'. This could be due to attempting to access
 a service in a cross-domain way without a proper cross-domain policy in
 place, or a policy that is unsuitable for SOAP services.

 ** **

 Web searches hint that I need a clientaccesspolicy.xml file and they argue
 about where it’s supposed to be placed (I’m still not sure where). However,
 I have other apps like this one I’ve just created and none of them need a
 policy file. I’ve never created one before. What’s going on this time?!***
 *

 ** **

 Is there some trick I’ve forgotten? Any ideas anyone?

 ** **

 Thanks

 Greg

 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight


Re: attempting to access a service in a cross-domain way

2011-10-29 Thread Jordan Knight
Is your sl app in a web project? If not it prolly won't work. Run it in oob 
mode might help...

Cheers,

Jordan. 

On 30/10/2011, at 11:55 AM, Greg Keogh g...@mira.net wrote:

 Folks, I’ve just created a hello world WCF web service with basicHttpBinding 
 which I know is working correctly from URL 
 http://localhost/PhotoService/Service1.svc.
  
 I created a simple Silverlight 4 app with a single button to call the service 
 to sanity check it’s working. It dies with this:
  
 An error occurred while trying to make a request to URI 
 'http://localhost/PhotoService'. This could be due to attempting to access a 
 service in a cross-domain way without a proper cross-domain policy in place, 
 or a policy that is unsuitable for SOAP services.
  
 Web searches hint that I need a clientaccesspolicy.xml file and they argue 
 about where it’s supposed to be placed (I’m still not sure where). However, I 
 have other apps like this one I’ve just created and none of them need a 
 policy file. I’ve never created one before. What’s going on this time?!
  
 Is there some trick I’ve forgotten? Any ideas anyone?
  
 Thanks
 Greg
 ___
 ozsilverlight mailing list
 ozsilverlight@ozsilverlight.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
___
ozsilverlight mailing list
ozsilverlight@ozsilverlight.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight