Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Unable to add a reference of NAV web service to a .NET application

Posted on by 55

Hi,

Iam trying to add a Service reference of a Nav Web Service to my .NET console application.

When i try to do this iam not able to add a reference and i get an error.

The error message is as follows:

There was an error downloading '192.168.9.215/.../AlfFail$metadata'.

I request you to kindly help me out on this.

Thanks in Advance,

Pankaj

*This post is locked for comments

  • Suggested answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: Unable to add a reference of NAV web service to a .NET application

    hi

    * be sure that you refer the nav webservice as .net web service and not as wcf service.

    inserting a new service reference in VS (>=2010) means in 1. instance a wcf service. the button for the web service is in the bottom left corner of the service reference dialog.

    * check in your as web service published nav object (hopefully a CU, not a page) the function parameters and the return type. be sure that the used parameters in the functions are all plain and simple. so, do not use array or other datatypes, that are not serializable. only use text, int, etc.

    best regards

  • Tobias Strobelt Profile Picture
    Tobias Strobelt 152 on at
    RE: Unable to add a reference of NAV web service to a .NET application

    Hi Pankaj,

    Can you please try to enable (if possible) NTLM authentication on your NAV service (Dynamics NAV Administration Console -> "Use NTLM Authentication"). Also please re-publish the webservice and check if the webservice is accessible through http in Internet Explorer.

    Best regards

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans