The
I'm working with a Silvelit app that consumes Dblusif service, I whipped Crosdomen and client policy xml Wwwroot is placed in IIS as well as in the application folder!
However, when the contact client service, it throws an error saying;
There was an error while trying to request the URI. This could be due to a cross-domain path without an appropriate cross-domain policy, or for SOAP services, trying to access a service without a useless policy. You may have to contact the service owner to publish ....
Please help! Thank you
Need clientaccesspolicy.xml on the same port as your service. It needs to be at
If you are self-hosted WCF service you need to host clientaccesspolicy.xml within your WCF service. I would like to add a separate service agreement in the easiest way to do this, which is an HTTPGET Customer Management Policy. XM offers. [ServiceContract ()] public class policy Retriever {[Operation Contract, WebGet (UriTemplate = "/clientaccesspolicy.xml")] public stream GetSilverlightPolicy () {String result = @ "" & Lt; / Allow- & lt; Grant-to & gt; & Lt; Resource path = "" / "" subpaths = "" true "" /> & Lt; / Grant-to & gt; & Lt; / Policy & gt; & Lt; / Cross-domain-access & gt; & Lt; / Access-policy & gt; "; If (System.ServiceModel.Web.WebOperationContext.Current! = NULL) {System.ServiceModel.Web.WebOperationContext.Current.OutgoingResponse.ContentType =" application / XML ";} new Memoristrym (Ancodingkutif 8. Getbaits (Results )) Return;}}
Comments
Post a Comment