web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Access to the path NAVServer source\Record\Record98.cs' is denied.

(0) ShareShare
ReportReport
Posted on by

We have a Test Database. This DB was running perfectly until yesterday and no changes in permissions was made.

We start having this error when execute some pages:

"Either the caller does not have the required permission or the specified path is read-only."

Now we haven't access. Event Log is:

FIRST ERROR

Nombre de registro:Application

Origen:        MicrosoftDynamicsNAVServer

Fecha:         22/05/2018 16:29:42

Id. del evento:0

Categoría de la tarea:Ninguno

Nivel:         Error

Palabras clave:Clásico

Usuario:       No disponible

Equipo:        NAVISRV.xxxxxxx.local

Descripción:

Server instance: DynamicsNAV70UP

Session type: RoleTailoredClient

Session ID: 3

User: xxxxxxxxx

Type: System.UnauthorizedAccessException

Message: Access to the path 'C:\ProgramData\Microsoft\Microsoft Dynamics NAV\70\Server\MicrosoftDynamicsNavServer$DynamicsNAV70UP\source\Record\Record98.cs' is denied.

StackTrace:

     at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

     at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

     at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

     at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)

     at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)

     at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)

     at Microsoft.Dynamics.Nav.Runtime.AssemblyGetter.DoWriteTheFile(String sourceFileName, String source, Int64 objectTimestamp)

Source: mscorlib

HResult: -2147024891

 

XML de evento:

<Event xmlns="schemas.microsoft.com/.../event">

  <System>

    <Provider Name="MicrosoftDynamicsNAVServer" />

    <EventID Qualifiers="0">0</EventID>

    <Level>2</Level>

    <Task>0</Task>

    <Keywords>0x80000000000000</Keywords>

    <TimeCreated SystemTime="2018-05-22T14:29:42.000000000Z" />

    <EventRecordID>118046</EventRecordID>

    <Channel>Application</Channel>

    <Computer>NAVISRV.xxxxxxxxx.local</Computer>

    <Security />

  </System>

  <EventData>

    <Data>Server instance: DynamicsNAV70UP

Session type: RoleTailoredClient

Session ID: 3

User: xxxxxxxx

Type: System.UnauthorizedAccessException

Message: Access to the path 'C:\ProgramData\Microsoft\Microsoft Dynamics NAV\70\Server\MicrosoftDynamicsNavServer$DynamicsNAV70UP\source\Record\Record98.cs' is denied.

StackTrace:

     at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

     at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

     at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

     at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)

     at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)

     at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)

     at Microsoft.Dynamics.Nav.Runtime.AssemblyGetter.DoWriteTheFile(String sourceFileName, String source, Int64 objectTimestamp)

Source: mscorlib

HResult: -2147024891

</Data>

  </EventData>

</Event>

SECOND ERROR (And application crash):

Nombre de registro:Application

Origen:        Application Error

Fecha:         22/05/2018 16:29:42

Id. del evento:1000

Categoría de la tarea:(100)

Nivel:         Error

Palabras clave:Clásico

Usuario:       No disponible

Equipo:        NAVISRV.xxxxxxxx.local

Descripción:

Nombre de la aplicación con errores: Microsoft.Dynamics.Nav.Client.exe, versión: 7.0.34298.0, marca de tiempo: 0x5116ba99

Nombre del módulo con errores: KERNELBASE.dll, versión: 6.1.7601.17514, marca de tiempo: 0x4ce7bafa

Código de excepción: 0xe0434352

Desplazamiento de errores: 0x0000b727

Id. del proceso con errores: 0xe270

Hora de inicio de la aplicación con errores: 0x01d3f1d9528ae83d

Ruta de acceso de la aplicación con errores: C:\Program Files (x86)\Microsoft Dynamics NAV\70\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe

Ruta de acceso del módulo con errores: C:\Windows\syswow64\KERNELBASE.dll

Id. del informe: 90c7b3cd-5dcc-11e8-8be1-00505687704d

XML de evento:

<Event xmlns="schemas.microsoft.com/.../event">

  <System>

    <Provider Name="Application Error" />

    <EventID Qualifiers="0">1000</EventID>

    <Level>2</Level>

    <Task>100</Task>

    <Keywords>0x80000000000000</Keywords>

    <TimeCreated SystemTime="2018-05-22T14:29:42.000000000Z" />

    <EventRecordID>118049</EventRecordID>

    <Channel>Application</Channel>

    <Computer>NAVISRV.xxxxxx.local</Computer>

    <Security />

  </System>

  <EventData>

    <Data>Microsoft.Dynamics.Nav.Client.exe</Data>

    <Data>7.0.34298.0</Data>

    <Data>5116ba99</Data>

    <Data>KERNELBASE.dll</Data>

    <Data>6.1.7601.17514</Data>

    <Data>4ce7bafa</Data>

    <Data>e0434352</Data>

    <Data>0000b727</Data>

    <Data>e270</Data>

    <Data>01d3f1d9528ae83d</Data>

    <Data>C:\Program Files (x86)\Microsoft Dynamics NAV\70\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe</Data>

    <Data>C:\Windows\syswow64\KERNELBASE.dll</Data>

    <Data>90c7b3cd-5dcc-11e8-8be1-00505687704d</Data>

  </EventData>

</Event>

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    Compile all the objects and restart the server.  Before compiling all the objects try Tools -> Build Server Application Objects

  • Community Member Profile Picture
    on at

    When you say "Restart server"... Machine? or SQL Server?

    Best Regards.

  • Community Member Profile Picture
    on at

    I have execute Tools -> Build Server Application Objects and error again.

    Second step, compile all objects and restar the server machine, but not solved. Error appears again.

  • Community Member Profile Picture
    on at

    We have in this machine 2 Services:

    PRO Database

    TEST Database

    Both Services were running with "NTAUTHORITY/Network Service".

    This was working perfectly.

    I have change user who start the TEST Service by an Admin User and.... Work Fine!!!!

    Why in TEST DB fail and in PRO is OK?

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    Give full permissions to the user who is running the service to C:\Program Files\Microsoft Dynamics NAV\xx\Service folder

  • Community Member Profile Picture
    on at

    Finally the solution has been to change user who run the service to an Admin user, changing NT AUTHORITY\NetworkService. But the question is... Why PRO Database is working with the same permissions than PRE Database? Don't understand. 

    PRE Database was working until 22nd May, working from 2 years and no changes in permissions was done.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans