Error while Trying to Publish App in NAV 2018 CU1

Prajeeshnair
Member Posts: 9
Type: System.UnauthorizedAccessException Message: <ii>Access to the path 'C:\Dignet\Extensions\Apps' is denied.</ii> StackTrace: at Microsoft.Dynamics.Nav.Management.NavCommand.WriteError(Exception exception, ErrorCategory category, Object target, Boolean rethrow) at Microsoft.Dynamics.Nav.Apps.Management.Cmdlets.PublishNavApp.<>c__DisplayClass30_0.<InternalValidate>b__0(String msg) at Microsoft.Dynamics.Nav.Apps.Management.Cmdlets.PublishNavApp.InternalValidate() at Microsoft.Dynamics.Nav.Management.NavCommand.ProcessRecord() Source: Microsoft.Dynamics.Nav.Management HResult: -2147024891
Tried Running the Service with Admin Login.
The NAV administration Shell is run as administrator. Have tried giving full control of the folder for the admin account on which the Powershell is running.
The Command used is as follows.
publish-navapp -serverinstance DynamicsNAV110_ExtensionDemo -skipverification -LogPath C:\Dignet\Extensions\PublishAppError.log
C:\Dignet\Extensions\Apps
Let me know your suggestions pl.
Tried Running the Service with Admin Login.
The NAV administration Shell is run as administrator. Have tried giving full control of the folder for the admin account on which the Powershell is running.
The Command used is as follows.
publish-navapp -serverinstance DynamicsNAV110_ExtensionDemo -skipverification -LogPath C:\Dignet\Extensions\PublishAppError.log
C:\Dignet\Extensions\Apps
Let me know your suggestions pl.
0
Best Answer
-
I have found the error. I am supposed to give the complete path including the app name
C:\Dignet\Extensions\Apps\Prajeesh Nair_ExtensionDemo_1.0.0.0.app
This solved my error. Thank you larshaedersdal, i hope you where also pointing to the same direction.0
Answers
-
Where is the path part? I would expect
Publish-NAVApp -ServerInstance DynamicsNAV110_ExtensionDemo -Path 'path to my .app file' -skipverification -LogPath C:\Dignet\Extensions\PublishAppError.log0 -
The Error log is like below in the administration shell
>> publish-navapp -serverinstance DynamicsNAV110_ExtensionDemo -skipverification -LogPath C:\Dignet\Extensions\PublishAppError.log
cmdlet Publish-NAVApp at command pipeline position 1
Supply values for the following parameters:
Path: C:\Dignet\Extensions\Apps
WARNING: UnhandledErrorMessage
publish-navapp : Access to the path 'C:\Dignet\Extensions\Apps' is denied.
At line:2 char:1
+ publish-navapp -serverinstance DynamicsNAV110_ExtensionDemo -skipveri ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Publish-NAVApp], UnauthorizedAccessException
+ FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Dynamics.Nav.Apps.Management.Cmdlets.PublishNavApp
0 -
You are still missing the path to the actual app file
Publish-NAVApp -ServerInstance DynamicsNAV110_ExtensionDemo -Path 'path to my .app file' -skipverification -LogPath C:\Dignet\Extensions\PublishAppError.log0 -
Supply values for the following parameters:
Path: C:\Dignet\Extensions\Apps0 -
Tried like this as well
Publish-NAVApp -Path\App -ServerInstance dynamicsnav110_extensiondemo -Confirm -LogPath C:\Dignet\Extensions\PublishAppError.log
0 -
I have found the error. I am supposed to give the complete path including the app name
C:\Dignet\Extensions\Apps\Prajeesh Nair_ExtensionDemo_1.0.0.0.app
This solved my error. Thank you larshaedersdal, i hope you where also pointing to the same direction.0 -
Prajeeshnair just as i wrote in my first answer :-)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