An old webservice doesn't start correctly anymore.

BubaBuba Member Posts: 24
edited 2011-05-11 in NAV Three Tier
Not sure what has happened, this was running on a test server and did work.
Now both services starts fine, but not able to access the webservice anymore. Checked the RTC and it does work.

Here is the eventlog of the failure.
Type: System.ArgumentOutOfRangeException
  startIndex cannot be larger than length of string.
  Parameter name: startIndex
ParamName: startIndex
     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

For more information, see Help and Support Center at
This is Nav 2009 SP1 btw.
Any suggestions?


  • jw65jw65 Member Posts: 18
    Did you ever resolve this issue? I'm experiencing the exact same problem (error message) and trying to solve it.
  • MattKeyesMattKeyes Member Posts: 41
    Can you access the WSDL for the webservice, get the list of companies (i.e. http://servername:7047/DynamicsNAV/ws/companies), etc.?

    Also, a long shot, but be sure there are no pending Windows updates. On the rare occasion I have had issues when pending updates are ready but need a reboot or the like.
  • jw65jw65 Member Posts: 18
    The problem seems to have been resolved by adding the Dynamics NAV server to Trusted sites.
    A reboot was also done at the same time, this could have had some effect as well.
Sign In or Register to comment.