블로그 이미지
그냥 닥치고 해;
상Q

Notice

Recent Post

Recent Comment

Recent Trackback

Archive

calendar

1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
  • total
  • today
  • yesterday
2013. 1. 3. 18:32 Computer/App.

Silverlight 에서 wcf WebService 를 사용 할 때 WebService와 연결이 안될 경우 체크 사항


1. Silverlight Project > ServiceReferences.ClientConfig 파일 확인

<client>

            <endpoint address="http://192.0.0.1:8012/wcfService/wcfService.svc"

                binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IwcfService"

                contract="TEST.IwcfService" name="BasicHttpBinding_IwcfService" />

        </client>

에서 adress의 IP 확인


2. IIS 에 clientaccesspolicy.xml, crossdomain.xml 존재 하여야 함.


clientaccesspolicy.xml

  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <access-policy>  
  3.   <cross-domain-access>  
  4.     <policy>  
  5.       <allow-from http-request-headers="*">  
  6.         <domain uri="*"/>  
  7.       </allow-from>  
  8.       <grant-to>  
  9.         <resource path="/" include-subpaths="true"/>  
  10.       </grant-to>  
  11.     </policy>  
  12.   </cross-domain-access>  
  13. </access-policy>  



crossdomain.xml

  1. <?xml version="1.0"?>  
  2. <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">  
  3. <cross-domain-policy>  
  4.   <allow-access-from domain="*" />  
  5. </cross-domain-policy>  





posted by 상Q