An error occurred while trying to make a request to URI

Place the ClientAccessPolicy.Xml and CrossDomain.Xml in the project path will resolve this issue

CrossDomain.Xml

 <?xml version=”1.0″ encoding=”utf-8″?>
  <access-policy>
     <cross-domain-access>
       <policy>
         <allow-from http-request-headers=”SOAPAction”>
          <domain uri=”http://*”/&gt;
          <domain uri=”https://*&#8221; />  
         </allow-from>
        <grant-to>
           <resource include-subpaths=”true” path=”/”/>
        </grant-to>
       </policy>
     </cross-domain-access>
  </access-policy>

ClientAccessPolicy.xml

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