web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Getting Error when Consume ASMX Web Service from CRM Plugin

(0) ShareShare
ReportReport
Posted on by
Hi,
 
I've a scenario that I need to consume ASMX Web Service on update of account/lead, I've done this for my testing purpose on Console Application but when I'm doing this on CRM Plugin, getting error that endpoint is not configured, i did the same this as on Console Application
 
I used this code in console application whicj is working fine in but in Plugin getting error in the highlighted line that /Could not find default endpoint element that references contract '******ServiceReference.ImportServerSoap' 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./
 
 
then i pass manually the url of my ASMX Web Service but not succeed

 
then getting error on the using (new OperationContextScope(webService.InnerChannel))

System.ServiceModel.CommunicationObjectFaultedException: 'The communication object, System.ServiceModel.ChannelFactory`1[TestASMXWebApiPlugin.******ServiceReference.ImportServerSoap], cannot be used for communication because it is in the Faulted state.'
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans