spinoza:My webservice is in the same directory as my policy file. Both are at the root of the domain already? Any other suggestions.
Can you give me the project structure?
Like I said in this post.
Let's say you have three projects.
- One project is the Silverlight project that is gonna invoke the service or page or something. (e.g. SLTests1)
- The other one is the ASP.NET project that is hosted Silverlight content. (e.g. WebApplication1 )
- Another
one is the PHP or ASP.NET project that is gonna receive the POST
request from Silverlight.
SLTests1
--- Page.xaml
----App.xaml
WebApplication1
---- [ClientBin]
--------------SLTests1.xap
----SLTests1TestPage.aspx
့့့h့ttp://localhost ( NOT http://localhost/yourservice/)
----- clientaccesspolicy.xml
----- crossdomain.xml
If you are testing with VS Development web server, it wont work
because we can't put our crossdomain under http://localhost:50782/.
Whenever we run the project, those xml files will go under
"http://localhost:50782/SilverlightApplication5_Web/".
If you want to do POST request, create the Virtual Directory in IIS. then, you can put those XML files under wwwroot.
The best way to do is that you should put the WCF in ASP.NET project. And use the static port instead of dynamic one.
(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)
Best Regards,
Michael Sync
Blog : http://michaelsync.net
Feed : http://michaelsync.net/feed