Click here to Skip to main content
15,861,168 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I fixed some issues about my post: Transporting my-model-type in WCF service call[^]

so now I'm able to get custom types collections on the wire - seems to work.

Next thing is this: Now I will have my WCF-service to read back the contents of a table in a sql-database. This is refused and produces a WCF exception claiming that there might be some "cross-domain-things" involved. I know for sure (tested) that both the SW itself (holding a simple collection of my two dogs :-)) AND the DB-call works. Anyway it fails returning a populating-call through to my database via an adapter. The database are hosted on my machine as well.

If contacting sources (like other WS's) in another domain or even on the same domain but on a different port these cross-domain-issues - I guess - arise. Think I read that the other day.

Am I right in saying so and how do I deal with it?
Posted
Comments
Mark Salsbery 26-Jul-11 15:12pm    
What type of client application? Silverlight?
Michael Pauli 26-Jul-11 18:53pm    
Silverlight 4 web app. And also not working in WPF app via proxy. I bet its a config thing...
Michael Pauli 27-Jul-11 8:35am    
This is now solved: Problem was IIS APPPOOL/[MySite] was not granted access to my SQL Express database in question. I added this new user and setup an login for "him" and bingo! So no cross-domain problems involved. Happy me!... I mean stupid me... This I only found out because of includeExceptionDetailInFaults="true" in its web.config. I always keep this turned on from now.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900