RTC randomly fails to connect

bbrown
Member Posts: 3,268
I set up a server, on our internal network, hosting several R2 service tiers. Each one is to give users RTC access to a different development database. users are randomly failing to connnect. They report that the RTC will just close. Sometimes with a message that the service is not running. The server's event log will have an entry like:
I've had an open case at MS for about a week. They seem to be scratching their heads. Any thoughts?
Service: MicrosoftDynamicsNavServer$NAV6
User: MYDOMAIN\THEUSER
Type: System.AccessViolationException
Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
StackTrace:
at Microsoft.Dynamics.Nav.Runtime.NativeMethods.AdapterOpenConnection(IntPtr databaseHandle, String serverName, NetProtocolType netType, String databaseName, Int32 clientConnectionType, DeadConnectionHandler deadConnectionHandler, String userTempDirectory, Printer[] printers, Int32 numberOfPrinters)
at Microsoft.Dynamics.Nav.Runtime.NavRuntimeAdapter.OpenConnection(IntPtr databaseHandle, NetProtocolType netType, String serverName, String databaseName, Int32 clientConnectionType, DeadConnectionHandler deadConnectionHandler, String userTempDirectory, Printer[] printers)
at Microsoft.Dynamics.Nav.Runtime.NavConnection.Open()
at Microsoft.Dynamics.Nav.Service.NSService.<>c__DisplayClass4.<OpenConnection>b__2(Connection connection)
at Microsoft.Dynamics.Nav.Service.NSService.ExecuteOperation[T](String operationName, ServiceOperation`1 operation, Connection connection, Boolean revertLanguageChanges, WindowsIdentity impersonationIdentity)
Source: Microsoft.Dynamics.Nav.Ncl
I've had an open case at MS for about a week. They seem to be scratching their heads. Any thoughts?
There are no bugs - only undocumented features.
0
Comments
-
I'd try giving the user administrator permission to see if that problem happens again.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Alex Chow wrote:I'd try giving the user administrator permission to see if that problem happens again.
Thanks for the reply
Which user? The one runnign the RTC client or the account running the service?
And to what?
BTW - the couple of us that are Domain Admins have experienced this issue at times.There are no bugs - only undocumented features.0 -
The user that's setup to run the Dynamics NAV service.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Sorry, didn't read it was internal sever. I'm assuming you followed this guide to setup multiple services?
http://msdn.microsoft.com/en-us/library/dd301437.aspx
I remember running into this problem because my CustomSettings.config file was not setup properly for each service. This caused my Dynamics NAV service to not start properly.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Yes, on the setup. I think. I actually didn't do these myself. They were done by the person that does most of our client installs. We reviewed and couldn't find any issues.
I've got a meeting right now. I'll double check that document when I get a chance. Just to be sure.There are no bugs - only undocumented features.0 -
Has anybody solved this issue?
I have same problem with my customer.
I even thought that it was Windows rights issue, but it still didn't solve my problem.Filip Gudelj | Dynamics NAV Consultant | http://bsinsight.wordpress.com/0 -
Are there any entries with stack traces in the event log at the users?Eric Beran
Software Design Engineer II
Dynamics NAV Office 365
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.0 -
I got this error:Service: MicrosoftDynamicsNavServer$HAKOM
User: domain\domain user
Type: System.IndexOutOfRangeException
Message: Index was outside the bounds of the array.
StackTrace:
at Microsoft.Dynamics.Nav.Runtime.PermissionManager.PermissionCache.GetDictionaryForType(ObjectType objectType)
at Microsoft.Dynamics.Nav.Runtime.PermissionManager.InitializeFromCSide(IntPtr unmanagedExecutePermissions, Int32 numberOfElements, Boolean userHasAllPermissions)
at Microsoft.Dynamics.Nav.Runtime.NativeMethods.AdapterLoadExecutePermissions(IntPtr connectionHandle, ExecutePermissionBuilder executePermissionBuilderHandler, Int32 systemTableOrTableDataOnly)
at Microsoft.Dynamics.Nav.Runtime.NavConnection.Open()
at Microsoft.Dynamics.Nav.Service.NSService.<>c__DisplayClass4.<OpenConnection>b__2(Connection connection)
at Microsoft.Dynamics.Nav.Service.NSService.ExecuteOperation[T](String operationName, ServiceOperation`1 operation, Connection connection, Boolean revertLanguageChanges, WindowsIdentity impersonationIdentity)
Source: Microsoft.Dynamics.Nav.NclFilip Gudelj | Dynamics NAV Consultant | http://bsinsight.wordpress.com/0 -
1. Make sure that you have set "$ndo$navlistener" as Default Schema in SQL Management Studio for the database. See attached Screendump:
and
2. Make sure that you have on dbo.Object Tracking have marked Grant for the Select Permission for the Service account setup to run you Service. In my demo enviroment I use "NT AUTHORITY\NETWORK SERVICE". See attached Screendump:
/Claus LundstrømClaus Lundstrøm | MVP | Senior Product Manager | Continia.com
I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav
I'm also offering RDLC Report Training, ping me if you are interested. Thanks to the 700 NAV developers that have now already been at my training. You know you can always call if you have any RDLC report issues :-)0 -
Thanks everyone for reply, but I've already tried everything and nothing worked.
After a while and more testing and, I must say it like this, investigating my client system and infrastructure I've managed to find what was the issue.
It was UTP port on client's Blade Server. Fixing that port, solved this issue.
Here is a little explanation on blog: http://bsinsight.wordpress.com/2012/07/ ... m-crash-2/
Thanks everyone for your contribution.Filip Gudelj | Dynamics NAV Consultant | http://bsinsight.wordpress.com/0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions