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)

System.UnauthorizedAccessException

(0) ShareShare
ReportReport
Posted on by 579

Hi Floks,

Presently i have facing below issue for one of my Client .


"The Server "DynamicsNAV71" was unable to process the request. Close the application and start again .

Server instance: DynamicsNAV71
User: XXXXX\XXXXX
Type: System.UnauthorizedAccessException
Message: Access to the path 'C:\ProgramData\Microsoft\Microsoft Dynamics NAV\71\Server\MicrosoftDynamicsNavServer$DynamicsNAV71\assembly\Page46_421.dll' is denied.
StackTrace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at Microsoft.Dynamics.Nav.Runtime.CSharpCompiler.CompileCSharpSourceToAssembly(String assemblyFileName, String sourceFileName, String& errors, Assembly& assembly)
at Microsoft.Dynamics.Nav.Runtime.AssemblyGetter.GetAssembly(ObjectType objectType, Int32 objectId)
at Microsoft.Dynamics.Nav.Runtime.NCLCodeLoader.GetApplicationObjectClrType(ObjectType objectType, Int32 objectId)
at Microsoft.Dynamics.Nav.Runtime.NCLMetaApplicationObject.CompileAndLoadClrObject()
at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaApplicationObject(ObjectType objectType, Int32 objectId, Boolean requireCompiled)
at Microsoft.Dynamics.Nav.Runtime.NavFormHandle.CreateTarget()
at Microsoft.Dynamics.Nav.Runtime.NavApplicationObjectBaseHandle`1.get_Target()
at Microsoft.Dynamics.Nav.Runtime.NavForm.TryGetUIPart(String uiPartName, NavForm& form)
at Microsoft.Dynamics.Nav.Service.NsDataAccess.Create(ITreeObject parent, NavRecordState state, Boolean instantiateNewForm, Guid parentFormHandle, String parentControlName, Boolean& instantiatedForm)
at Microsoft.Dynamics.Nav.Service.NSFormBatchOpen.Open(NavSession session)
at SyncInvokeOpenForm(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Microsoft.Dynamics.Nav.Service.ServiceOperationInvoker.ErrorMappingCombinator(ServiceOperation innerOperation, NSServiceBase serviceInstance, Object[] inputs, Object[]& outputs)
Source: mscorlib
HResult: -2147024891

NAV Version : NAV 2013 R2 CU 51
NAV SERVICE Account :XXXX\NAV
SQL SERVICE Account : NETWORK SERVICE

1.We provide the full rights permission for both account for that folder.
2.We try to run both service with same Account but no output still Client having same issue .
3.We uninstall and re-install the NAV in that server.

Any Advise? 

Regards
Subhashis 

*This post is locked for comments

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

    Have you tried giving full rights to the Everyone for the Server folder ?

  • subhashis Das Profile Picture
    579 on at

    Hi Suresh ,

    Yes. Those service account already have full right Permission for that folder .

    Regards

    Subhashis

  • Helena Nunes Profile Picture
    250 on at

    Hi, in times I had the same problem and the error gave with various pages or other objects. I don't know how to explain what exactly happened but what I do know is that when I compiled the object, the error would disappear. It had nothing to do with permissions. I think it had to do with the slowness of the server that was running the NAV service, the users were running NAV client from their computers in France and accessing servers in another country. The connections weren't the best so the RTC NAV client sometimes lost connection to the server for "seconds". I think that the problem was because of this. Can't garantee! Now we have new servers and changed the way they access. We haven't had any more errors of this type since then.  

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

    I am asking you to give the permission for Everyone Group not service account.

  • subhashis Das Profile Picture
    579 on at

    Yes Every one have the per permission .

    Btw I am using admin account for running the client in the sever .

    Regards

    Subhashis

  • subhashis Das Profile Picture
    579 on at

    Hi Helena

    Yes you are correct ,the error gave with various pages or other objects. and most funny thing is that its happen for Standard NAV database and server Client .

    Regards

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

    Did you try to run client as the Administrator? and try to compile all the objects and restart the servcies.

  • Suggested answer
    subhashis Das Profile Picture
    579 on at

    Hi All ,

    Thanks for suggestion. At present this issue is resolved .

    Still root cause is unknown for this case , we create new VM for NAV app server then able to run the client. One thing confirm that  It had nothing to do with permissions or Object Compilation.

    I suspect that some windows patch causing this issue but not sure ...

    Thanks

    Regards

    Subhashis

  • mhdsemps Profile Picture
    25 on at

    Thanks this did it for i gave share rights to everyone and it worked thanks

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