Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
When adding the service reference to the visual studio project, app.config file is not generating. It is showing the error:

<br />
<pre lang="xml">Warning     Custom tool warning: Cannot import wsdl:binding<br />
Detail: An exception was thrown in a call to a policy import extension.<br />
Extension: System.ServiceModel.Channels.SecurityBindingElementImporter<br />
Error: An unsupported security policy assertion was detected during the security policy import: <sp:SymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"><br />
          <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"><br />
            <sp:ProtectionToken><br />
              <wsp:Policy><br />
                <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never"><br />
                  <wsp:Policy><br />
                    <sp:RequireThumbprintReference /><br />
                    <sp:WssX509V3Token11 /><br />
                  </wsp:Policy><br />
                </sp:X509Token><br />
              </wsp:Policy><br />
            </sp:ProtectionToken><br />
            <sp:AlgorithmSuite><br />
              <wsp:Policy><br />
                <sp:Basic128 /><br />
              </wsp:Policy><br />
            </sp:AlgorithmSuite><br />
            <sp:L...<br />
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://xmlns.oracle.com/apps/marketing/leadMgmt/leads/leadService/']/wsdl:binding[@name='SalesLeadServiceSoapHttp'] D:\Visual studio project\WindowsFormsApplication2\WindowsFormsApplication2\Service References\ServiceReference1\Reference.svcmap    1   1   WindowsFormsApplication2<br />
<br />
<br />
Warning     Custom tool warning: Cannot import wsdl:port<br />
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.<br />
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://xmlns.oracle.com/apps/marketing/leadMgmt/leads/leadService/']/wsdl:binding[@name='SalesLeadServiceSoapHttp']<br />
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://xmlns.oracle.com/apps/marketing/leadMgmt/leads/leadService/']/wsdl:service[@name='SalesLeadService']/wsdl:port[@name='SalesLeadServiceSoapHttpPort'] D:\Visual studio project\WindowsFormsApplication2\WindowsFormsApplication2\Service References\ServiceReference1\Reference.svcmap    1   1   WindowsFormsApplication2<br />
<br />
Warning     Custom tool warning: Cannot import wsdl:binding<br />
Detail: An exception was thrown in a call to a policy import extension.<br />
Extension: System.ServiceModel.Channels.SecurityBindingElementImporter<br />
Error: An unsupported security policy assertion was detected during the security policy import: <sp:SymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"><br />
      <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"><br />
        <sp:ProtectionToken><br />
          <wsp:Policy><br />
            <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never"><br />
              <wsp:Policy><br />
                <sp:RequireThumbprintReference /><br />
                <sp:WssX509V3Token11 /><br />
              </wsp:Policy><br />
            </sp:X509Token><br />
          </wsp:Policy><br />
        </sp:ProtectionToken><br />
        <sp:AlgorithmSuite><br />
          <wsp:Policy><br />
            <sp:Basic128 /><br />
          </wsp:Policy><br />
        </sp:AlgorithmSuite><br />
        <sp:Layout><br />
          <wsp:Policy><br />
            <sp:Lax /><br />
          </...<br />
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://xmlns.oracle.com/apps/marketing/leadMgmt/leads/leadService/']/wsdl:binding[@name='SalesLeadServiceResponseBinding']  D:\Visual studio project\WindowsFormsApplication2\WindowsFormsApplication2\Service References\ServiceReference1\Reference.svcmap    1   1   WindowsFormsApplication2<br />
</pre><br />
<br />
<br />
Posted
Comments
DamithSL 19-Aug-15 1:14am    
try to deleting the references, then closing Visual Studio, and reopening it again, and finally adding the references again.
sreeyush sudhakaran 19-Aug-15 1:21am    
Re-add the references after removing it and close VS solution and re-open it re-build all once again..

1 solution

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