Options

something strange in Navision web services

gorvega79gorvega79 Member Posts: 73
edited 2011-07-12 in NAV Three Tier
Hi all

we have a three tier web service, and until last week has worked perfectly. Our problem is that sometimes gives an error like this,and all is stopped:

The login failed when connecting to SQL Server

but when i refresh the explorer with the url of web service in the host where navision services are installed,everything returns to work perfectly. i don´t know why and in the forum can´t find anything about this. i have downloaded the "Microsof dynamics nav 2009 best practices analyzer" and show us that all works perfectly. if you know something about or any idea, tell me please...thanks

Answers

  • Options
    ara3nara3n Member Posts: 9,256
    Sounds to me you have multiple Active directory, and replication is setup between the two which overwrites your SPN. When you reset them SQL caches the Kerberoes tickets for 24 hours and then it gets deleted, and you back at at step 0.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    gorvega79gorvega79 Member Posts: 73
    edited 2011-07-07
    hi ara3n................
  • Options
    gorvega79gorvega79 Member Posts: 73
    hi ara3n

    Again give us the same error and we have solved the same way by the refresh the explorer where navision web services are intalled. but now all everything has stopped working.

    Any idea.
  • Options
    Dan77Dan77 Member Posts: 17
    Any error logs in the client station or server?
    Something from Kerberos?

    Are u using Domain Accounts for your services?
  • Options
    gorvega79gorvega79 Member Posts: 73
    thank you for your reply Dan77

    finally in the "customsetting.config" file of the service i change so many parameters to MaxValue and other things.everything come to work perfectly. This is my "customsetting.config" file with new changes:

    parameters:

    - "WebServicesMaxMsgSize" value="1024"
    - "OperationTimeout" value="MaxValue"
    - "ProtectionLevel" value="None"
    - "MaxConcurrentCalls" value="MaxValue"
    - "MaxConcurrentConnections" value="MaxValue"
    - "ClientReconnectPeriod" value="MaxValue"
    - "EnableDebugging" value="true"

    <?xml version="1.0" encoding="UTF-8"?>
    <appSettings>
    	<!-- 
        The network protocol used to access the database.
        Valid options: Default, NamedPipes, Sockets
      -->
    	<add key="NetType" value="Default"></add>
    	<!-- 
        Name of the database server to connect to.
      -->
    	<add key="DatabaseServer" value="DOMAIN\SERVER"></add>
    	<!-- 
        Name of the database instance to connect to.
      -->
    	<add key="DatabaseInstance" value=""></add>
    	<!--
        Name of the database to connect to.
      -->
    	<add key="DatabaseName" value="DBNAME"></add>
    	<!--
        Name of the Microsoft Dynamics NAV Server instance to connect
        to (for client) or listen on (for server).
      -->
    	<add key="ServerInstance" value="SRINSTANCE"></add>
    	<!-- 
        The listening TCP port for the Microsoft Dynamics NAV Server.
        This is part of the server's URL.
        Valid range: 1-65535
      -->
    	<add key="ServerPort" value="7050"></add>
    	<!-- 
        The listening HTTP port for the Microsoft Dynamics NAV 
        Business Web Services.
        This is part of the web service's URL.
        Valid range: 1-65535
      -->
    	<add key="WebServicePort" value="7047"></add>
    	<!--
        Turns on or off the https for Web Services
      -->
    	<add key="WebServiceSSLEnabled" value="false"></add>
    	<!--
        Maximum permitted size of a Web Services request, in kilobytes
      -->
    	<add key="WebServicesMaxMsgSize" value="1024"></add>
    	<!--
      Turns on or off NTLM authentication protocol for Web Services
          false: Use SPNEGO (recommended)
          true: Use NTLM only
      -->
    	<add key="WebServicesUseNTLMAuthentication" value="true"></add>
    	<!--
        Maximum time in seconds a call from the client to the server
        may take to return.
        Time span format: [dd.]hh:mm:ss[.ff]
            dd: days
            hh: hours
            mm: minutes
            ss: seconds
            ff: fractions of a second
        Or "MaxValue" to indicate there is no timeout.
      -->
    	<add key="OperationTimeout" value="MaxValue"></add>
    	<!--
        The security services used to protect the client/server data stream.
        Valid options: EncryptAndSign, Sign, None
      -->
    	<add key="ProtectionLevel" value="None"></add>
    	<!--
        Maximum number of concurrent client calls that can be active on the 
        Microsoft Dynamics NAV Server. To disable this setting set the value
        to "MaxValue".
      -->
    	<add key="MaxConcurrentCalls" value="MaxValue"></add>
    	<!--
        The maximum number of concurrent client connection that the service
        will accept. To disable this setting set the value to "MaxValue".
      -->
    	<add key="MaxConcurrentConnections" value="MaxValue"></add>
    	<!--
        Sets the grace period within which the client can reconnect to a
        running session.
        Time span format: [dd.]hh:mm:ss[.ff]
            dd: days
            hh: hours
            mm: minutes
            ss: seconds
            ff: fractions of a second
        Or "MaxValue" to indicate there is no timeout.
      -->
    	<add key="ClientReconnectPeriod" value="MaxValue"></add>
    	<!--
          Sets the maximum number of orphaned connections to be kept alive 
          simultaneouly for a maximum time specified by the 
          ClientReconnectPeriod setting. A connection becomes an orphan when
          the client becomes involuntarily disconnected from the server.
      -->
    	<add key="MaxNumberOfOrphanedConnections" value="20"></add>
    	<!--
          Threshold for when to start compressing data sets to avoid that they 
          consume prohibitive amounts of memory.
      -->
    	<add key="CompressionThreshold" value="64"></add>
    	<!--
          Sets the Metadata Provider cache size (in number in objects cached). 
          Set to 0 to disable cache.
      -->
    	<add key="MetadataProviderCacheSize" value="150"></add>
    	<!--
          Limits the size of files that can be uploaded in order to avoid out of memory errors. This value is in megabytes.
      -->
    	<add key="MaxUploadSize" value="5"></add>
    	<!--
          With the EnableDebugging flag set to true the Microsoft Dynamics NAV Server
           will start with debugging mode enabled.  This mode has three main functions:
          1)	Upon first connection by a RoleTailored Client all C# for that application
              will be generated.  
          2)	C# files will be persisted between server restarts.
          3)  Application Objects will be compiled with debug information.
      -->
    	<add key="EnableDebugging" value="true"></add>
    	<!--
          Sets the maximum number of items to serialize or deserialize, in KB
      -->
    	<add key="MaxItemsInObjectGraph" value="128"></add>
    	<!--
          Sets the default size of a chunk, in KB. Should be a value between 4 and 80.
      -->
    	<add key="ChunkSize" value="28"></add>
    </appSettings>
    
    
    

    regards
Sign In or Register to comment.