NAV BC SOAP Navuserpassword Error 216 HTTP 500

Hi! I have a strange problem and i can't find a solution for it.
I have created a service for SOAP access. Configured with NavUserPassword and SSL.
In a web browser i type in the soap address https://nav.url.com:1111/NAVService/WS/Services. Enter username and Webservice key and login.
It shows all available endpoints. Works like a charm. Then i press F5 or reload the page or go to a codeunit or another endpoint and i get an HTTP 500 internal error. If i wait for a minute or so it works again. So the error is intermittent but it fails every time that i reload the page. The problem happens in different web browsers and from different computers.
If i change to authentication type Windows or Username it works fine all the time.

In Event viewer i get the following error 216 :

Server instance: NAVinstance
Tenant ID:
User:
Type: System.ObjectDisposedException
Message: Message is closed.
StackTrace:
at System.ServiceModel.Channels.ContentOnlyMessage.get_Properties()
at Microsoft.Dynamics.Nav.Service.WebServiceAuthorizationManager.CheckAccessCore(OperationContext operationContext)
Source: System.ServiceModel
HResult: -2146232798
StackTrace:
at System.ServiceModel.Channels.ContentOnlyMessage.get_Properties()
at Microsoft.Dynamics.Nav.Service.WebServiceAuthorizationManager.CheckAccessCore(OperationContext operationContext)


Has anyone come across this problem or a clue on what the issue could be?

Best Answers

Answers

  • sebsidsebsid Posts: 21Member
    It's version 14.0.32600, which I think is Spring release CU1. Cu02 doesn't mention anything about a problem similar to this.. https://support.microsoft.com/en-us/help/4514872/cumulative-update-02-for-microsoft-dynamics-365-business-central-sprin
  • Wisa123Wisa123 Posts: 265Member
    Glad i could (somewhat) help. Thanks for sharing the solution to your problem - people don't do that nearly enough :)
    Austrian NAV/BC Dev
Sign In or Register to comment.