Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

'System.ServiceModel.FaultException' error

Posted on by 1,025

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

  • Martin Dráb Profile Picture
    Martin Dráb 228,112 Most Valuable Professional on at
    RE: 'System.ServiceModel.FaultException' error

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

  • Zohan_93 Profile Picture
    Zohan_93 195 on at
    RE: 'System.ServiceModel.FaultException' error

    Martin,

    What do you mean by samples?

  • Verified answer
    Sridhar Narayanan Profile Picture
    Sridhar Narayanan 1,025 on at
    RE: 'System.ServiceModel.FaultException' error

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

  • Martin Dráb Profile Picture
    Martin Dráb 228,112 Most Valuable Professional on at
    RE: 'System.ServiceModel.FaultException' error

    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.

  • Sridhar Narayanan Profile Picture
    Sridhar Narayanan 1,025 on at
    RE: 'System.ServiceModel.FaultException' error

    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
    Martin Dráb 228,112 Most Valuable Professional on at
    RE: 'System.ServiceModel.FaultException' error

    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.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,263 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,112 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans