Options

Installation SP1: Service disabled when opening RTC

elwin68elwin68 Member Posts: 153
edited 2009-09-22 in NAV Three Tier
Hello,

This week we have upgraded our servers with NAV2009SP1. After installing NAV2009SP1 the servers are restarted.
Opening a NAV2009SP1-database on server 1 with a RTC works very well.
When opening a NAV2009SP1-database on server 2 with a RTC the following happens:
- The database is opened and the Role Centre is shown.
- After 20 seconds the following error occures:
The server net.[url=tcp://]tcp://[/url]<servername>:7046/<company>/Service is closed. The cliënt will be closed.
- The NAV service on server 2 is not started anymore.
- The event viewer of server 2 shows 4 errors (see attachment)
- Opening the information of the first event will give the following:

Service:
User: <username which is opening the RTC>
Type: System.Data.SqlClient.SqlException
Class: 14
LineNumber: 1
Number: 229
Server: <name of server 2>
State: 5
Source: .Net SqlClient Data Provider
ErrorCode: -2146232060
Message: The SELECT permission was denied on the object 'Object Tracking', database 'DB_NAV2009', schema 'dbo'.
StackTrace:
bij System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
bij System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
bij System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
bij System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
bij System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
bij System.Data.SqlClient.SqlDataReader.get_MetaData()
bij System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
bij System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
bij System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
bij System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
bij System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
bij System.Data.SqlClient.SqlCommand.ExecuteReader()
bij Microsoft.Dynamics.Nav.Runtime.NavDatabaseChangeListener.TryExecuteReader()
bij Microsoft.Dynamics.Nav.Runtime.NavDatabaseChangeListener.CollectTrackingObjects()
bij Microsoft.Dynamics.Nav.Runtime.NavDatabaseChangeListener.TimerHandler(Object param)


To check if the database on server 2 is ok I have copied a good working database from server 1 to server 2.
The same errors occured when opening the database.

Does someone have a clue what can be wrong?

Thanks in advance.

Answers

  • Options
    elwin68elwin68 Member Posts: 153
    I have found the solution myself.

    Look at http://blogs.msdn.com/nav_developer/arc ... -2009.aspx to get the solution.
    After adding the $ndo$navlistener in the Default schema field everthing works well.
    The strange thing is this problem occures after a deinstallation of NAV209 and installation of NAV2009 SP1 on 1 server. The same deinstallation and installation is done on another server and there the problem does not occure.
Sign In or Register to comment.