Recently found in the project Silverlight call WebService a cross-domain access exception, the exception information is as follows:
"This could be because you tried to access the service across domains without an appropriate cross-domain policy, or if the policy does not apply to the SOAP service. You may need to contact the service owner to publish a cross-domain policy file to ensure that the policy allows the sending of SOAP-related HTTP headers. See internal exceptions for more information. ”
Found this problem, has been in the virtual directory under the east, try a variety of methods, because my site has a lot of subsites below, so in this now deployment WebService are added under the default site of the virtual directory, or applications.
In the Google process found that most of the need to add an XML file, ClientAccessPolicy.xml, file format and so on is not here to say. Have said to add to webservice in the directory, also said to add in the root directory. I tried it or not. My Default Web site and virtual directory are not in one directory, and I later tried to copy the project to the site directory, or not. After the search to an article that may be due to a virtual directory problem, I tried to create a new Web site, using another port. You can then put the ClientAccessPolicy.xml file in the root directory. Then use IP plus port access, but because the server's system is Server 2008, IIS is 7.0, in this machine can be opened, but the external network machine is not open. Looked for a long, later found that the operating system firewall filter The reason for the port, no language, a pass set, you can use the IP plus port access.
The picture won't go up. Trouble.