Copy a file to Client - Access Denied
FurkanR
Member Posts: 6
Hello,
I am a newbie on Microsoft Dynamics NAV. My version is 2013 R2.
I want to Copy a .dll file on C:\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\Add-ins Folder
to
C:\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\Add-ins folder on Client.
And I use CodeUnit 419 File Management for copying.
FileManagement.DownloadToFile('C:\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\Add-ins\EFatura.dll','C:\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\Add-ins\EFatura.dll');
When i give Add-ins File to Everyone authentication from Security tab, it copies to Client. But there is 50 Client PC and i dont want to connect and give authentication process to all of them.
How can i copy in proper way from C/AL.
Thanks for your replies.
I am a newbie on Microsoft Dynamics NAV. My version is 2013 R2.
I want to Copy a .dll file on C:\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\Add-ins Folder
to
C:\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\Add-ins folder on Client.
And I use CodeUnit 419 File Management for copying.
FileManagement.DownloadToFile('C:\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\Add-ins\EFatura.dll','C:\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\Add-ins\EFatura.dll');
When i give Add-ins File to Everyone authentication from Security tab, it copies to Client. But there is 50 Client PC and i dont want to connect and give authentication process to all of them.
How can i copy in proper way from C/AL.
Thanks for your replies.
0
Best Answer
-
Hi,
did the file already exists in the folder on the client? If yes, then you can not move it, when the windows client is running on the client. The windows client is using the dll-file in the moment you started the windows client. The windows client loads all dll's, if you start the client.
So in this case your code doesn't make sense. Can you please say, what you want to achieve?
If you want to update the client dll, then you have to make sure, that no client is running at this time. I would suggest that you use clickonce or GPO for updating the dll.
best regards
Robert6
Answers
-
[Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Hi,
did the file already exists in the folder on the client? If yes, then you can not move it, when the windows client is running on the client. The windows client is using the dll-file in the moment you started the windows client. The windows client loads all dll's, if you start the client.
So in this case your code doesn't make sense. Can you please say, what you want to achieve?
If you want to update the client dll, then you have to make sure, that no client is running at this time. I would suggest that you use clickonce or GPO for updating the dll.
best regards
Robert6
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
