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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

System.UnauthorizedAccessException

(0) ShareShare
ReportReport
Posted on by 64

Server instance: ------

Tenant ID: ------

User: --------
Type: System.UnauthorizedAccessException
Message: Access to the path 'C:\ProgramData\Microsoft\Microsoft Dynamics NAV\90\Server\MicrosoftDynamicsNavServer--\assembly\Report60032_77.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[] sourceFileNames, Boolean deleteAfterRead, String& errors, Assembly& assembly)
at Microsoft.Dynamics.Nav.Runtime.AssemblyGetter.GetAssembly(ObjectType objectType, Int32 objectId, NavAppGroup appGroup)
at Microsoft.Dynamics.Nav.Runtime.NCLCodeLoader.GetApplicationObjectClrType(ObjectType objectType, Int32 objectId, NavAppGroup appGroup)
at Microsoft.Dynamics.Nav.Runtime.NCLMetaApplicationObject.CompileAndLoadClrObject()
at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaApplicationObjectInternal(ApplicationObjectId appObjectId, Boolean requireCompiled, Boolean onlySearchCache, Int32 appGroupId)
at Microsoft.Dynamics.Nav.Runtime.NCLMetadata.GetMetaReportById(Int32 reportId)
at Microsoft.Dynamics.Nav.Runtime.NavReport.RunReport(Int32 reportId, Nullable`1 requestWindow, Nullable`1 systemPrinter, Boolean isRunningAsModal, NavRecord record, IList`1 textualFilters, RunMode runMode)
at Microsoft.Dynamics.Nav.Service.NSReport.Run(NavSession session)
at Microsoft.Dynamics.Nav.Service.NSService.RunReport(ApplicationMethodRequest applicationMethodRequest)
at SyncInvokeRunReport(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

*This post is locked for comments

I have the same question (0)
  • bharathkarunakaran Profile Picture
    475 on at

    Hi Patrick,

    When are you getting this error.

    Bharath K

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Seems that, the user with you login into system does not have proper permission, try to open NAV with Administrator rights.

  • PatrickJOHN Profile Picture
    64 on at

    Thanks

    I get this error from the event log

  • PatrickJOHN Profile Picture
    64 on at

    i have login into the server machine still i get this exact problem. It logs off when i click on reports.

  • subhashis Das Profile Picture
    579 on at

    Hi Patrick

    Have you got any solution for that error ?

    Regards

    Subhashis

  • ManishS Profile Picture
    86 on at

    as per the log it looks like your metadata issue. Try compiling all objects.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans