Quantcast
Viewing all articles
Browse latest Browse all 10280

Calling the External webservice from mscrm 2011 online plugin

Dear ALL;

i am tring to call an external web service into my mscrm 2011 online plugin but i am getting the following error

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An error occurred in MakeAllNonDefault(): System.InvalidOperationException: Could not find default endpoint element that references contract 'ServiceReference1.EWebServiceSoap' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.
   at System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName)
   at System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address)
   at System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress)
   at System.ServiceModel.EndpointTrait`1.CreateSimplexFactory()
   at System.ServiceModel.ClientBase`1.CreateChannelFactoryRef(EndpointTrait`1 endpointTrait)
   at System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef()
   at CreateAccount.ServiceReference1.EWebServiceSoapClient..ctor()
   at CreateAccount.createaccount.Connect()
   at CreateAccount.createaccount.Execute(IServiceProvider serviceProvider)Detail: 
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
  <ErrorCode>-2147220891</ErrorCode>
  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
    <KeyValuePairOfstringanyType>
      <d2p1:key>OperationStatus</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">0</d2p1:value>
    </KeyValuePairOfstringanyType>
  </ErrorDetails>
  <Message>An error occurred in MakeAllNonDefault(): System.InvalidOperationException: Could not find default endpoint element that references contract 'ServiceReference1.EWebServiceSoap' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.
   at System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName)
   at System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address)
   at System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress)
   at System.ServiceModel.EndpointTrait`1.CreateSimplexFactory()
   at System.ServiceModel.ClientBase`1.CreateChannelFactoryRef(EndpointTrait`1 endpointTrait)
   at System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef()
   at CreateAccount.ServiceReference1.EWebServiceSoapClient..ctor()
   at CreateAccount.createaccount.Connect()
   at CreateAccount.createaccount.Execute(IServiceProvider serviceProvider)</Message>
  <Timestamp>2013-01-23T17:17:19.6559526Z</Timestamp>
  <InnerFault i:nil="true" />
  <TraceText>

[CreateAccount: CreateAccount.createaccount]
[9d8d5de6-9764-e211-8ce0-3c4a92dbdc39: CreateAccount.createaccount: Create of account]


</TraceText>
</OrganizationServiceFault>

Viewing all articles
Browse latest Browse all 10280

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>