Consuming Generated Services from Silverlight

Jun 30, 2009 at 10:11 AM

Hi There

Fantastic tool!!!

I am using Sculpture 1.0.  At this stage I am simply playing around to see how I can use it in a up coming project.  So there is nothing fancy going on.

I have generated a solution with NHibernate, WCF and Silverlight.  (I tried exactly the same with NHibenate, ASMX and Silverlight).

Whe I hit F5 the project builds and starts running.

As Soon as I try to Add a new record for one of the entities, I get the following error:

An error occurred while trying to make a request to URI 'http://localhost:3798/MyExperiment.UI.Web/Services/MemberService.svc'. 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. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. Please see the inner exception for more details.

(I get the same error when trying to access an asmx...)

I have added clientaccesspolicy.xml


<?xml version="1.0" encoding="utf-8" ?><access-policy><cross-domain-access><policy><allow-from http-request-headers="*"><domain uri="*"/></allow-from><grant-to><resource path="/" include-subpaths="true"/></grant-to></policy></cross-domain-access></access-policy>


As well as crossdomain.xml

<?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM ""><cross-domain-policy><allow-http-request-headers-from domain="*" headers="*"/></cross-domain-policy>

But I still experience the same issue.
Any help would be greatly appreciated!






Jun 30, 2009 at 10:25 AM

By the way when I generate with UI everything works fine.