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 :
Microsoft Dynamics AX (Archived)

'System.ServiceModel.FaultException' error

(0) ShareShare
ReportReport
Posted on by 1,027

Hi Experts,

I created a custom service in D365 and tried accessing the service from a C# console application.

Build is successful in the console application; however, when I run the application, system is throwing below error

An unhandled exception of type 'System.ServiceModel.FaultException' occurred in mscorlib.dll

Any pointer would help.

Thanks,

N.Sridhar

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    It means that your service operation threw an exception and you can't fix it if you don't know what exception is it. You could debug your service, but your first step should be looking at details included in the fault exception.

  • Sridhar Narayanan Profile Picture
    1,027 on at

    Hi Martin,

    Below are the details of the fault error exception.

    {"There was no endpoint listening at https://xxxxx.cloudax.dynamics.com/.../xxServiceGroup

    that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details."}

    {"The remote server returned an error: (407) Proxy Authentication Required."}

    Thanks,

    N.Sridhar

  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    Did you try samples from Microsoft? If they work but your SOAP service doesn't, you have a problem with that particular services. If samples don't work either, you have a problem with configuration. The latter message suggests that there is a problem in authentication, but you didn't tell anything about what you did, so I can't comment on it yet.

  • Verified answer
    Sridhar Narayanan Profile Picture
    1,027 on at

    Thanks Martin. Earlier I didn't provide authentication details to access the service.

  • Zohan_93 Profile Picture
    199 on at

    Martin,

    What do you mean by samples?

  • Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    I mean the GitHub projects with sample solutions from Microsoft: github.com/.../ServiceSamples

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans