Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Connector for Microsoft Dynamics NAV

(0) ShareShare
ReportReport
Posted on by 585

I am trying to setup the NAV Dynamics Connector but keep running into the same issue.

Under "MS Dynamics NAV Settings"

I enter the URL as:

http://xxxx-db01:7047/DynamicsNAV/WS

Then a "Test Settings" results in the following error:

If I browse to the same URL in a browser this results in a "HTTP 500 Internal Server Error".

I can however browse to http://xxxx-db01:7047/DynamicsNAV/WS/SystemService and http://xxxx-db01:7047/DynamicsNAV/WS/Services and both return correct XML responses. I have tried using both of these URLs instead on the connector but the same error remains.

When I browse to http://xxxx-db01:7047/DynamicsNAV/WS this does generate the following event log:

Service:
User:
Type: System.ArgumentOutOfRangeException
Message:
startIndex cannot be larger than length of string.
Parameter name: startIndex
ParamName: startIndex
StackTrace:
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at Microsoft.Dynamics.Nav.Service.WebServices.WCFUtil.GetServiceNameAndContextFromMessage(Message message)
at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.<>c__DisplayClass3.<>c__DisplayClass5.<ProcessMessage>b__1()
at Microsoft.Dynamics.Nav.Service.WebServices.Disposer.Scope(Code code)
at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.<>c__DisplayClass3.<ProcessMessage>b__0(StreamWriter streamWriter)
at Microsoft.Dynamics.Nav.Service.WebServices.WCFUtil.GetPopulatedMemoryStream(StreamFillingCallback callback)
at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.ProcessMessage(Message message)
at SyncInvokeProcessMessage(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
Source: mscorlib

Am I missing something obvious here?

It is Nav 2009 Classic.

Any help would be much appreciated.

Kind Regards

Charlie

*This post is locked for comments

  • Verified answer
    charliejamesuk Profile Picture
    charliejamesuk 585 on at
    RE: Connector for Microsoft Dynamics NAV

    OK, managed to sort myself.

    Looks like you need a / on the end of the URL (as below)

    xxxx-db01/.../WS

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

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans