mibuso.com

Microsoft Business Solutions online community
It is currently Wed Jun 19, 2013 9:21 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Upload/Download File ERROR - CTL_E_PERMISSIONDENIED
PostPosted: Thu May 17, 2012 4:56 pm 
Offline

Joined: Mon Dec 03, 2007 12:04 pm
Posts: 140
Location: Europe
Country: Italy (it)
The process is this. I am uploading a text file to the temp, and downloading the file to the network path. The error is occurring in the download file.

What I noticed is when I send a hard coded path, it works fine, but when I dynamically get the path, using concatenation e.g. \\network\Folder\Job

The Job No. is dynamic and it is retrieved correctly.

I used the + for concatenation and the even used 'STRSUBSTNO' but it still works incorrectly.

Microsoft Dynamics NAV
---------------------------

This message is for C/AL programmers: The call to member MoveFile failed: Exception from HRESULT: 0x800A0046 (CTL_E_PERMISSIONDENIED).
---------------------------
OK
---------------------------

Any ideas?
Thanks in advance.

_________________
Blog: http://msdynamicnavblog.blogspot.com/


Top
 Profile  
 
 Post subject: Re: Upload/Download File ERROR - CTL_E_PERMISSIONDENIED
PostPosted: Thu May 17, 2012 5:53 pm 
Offline

Joined: Wed Aug 11, 2010 11:36 am
Posts: 19
Country: Portugal (pt)
Hi, can it be permission rights to access that folder?


Top
 Profile E-mail  
 
 Post subject: [Solved] Re: Upload/Download File ERROR - CTL_E_PERMISSIONDE
PostPosted: Fri May 18, 2012 6:52 am 
Offline

Joined: Mon Dec 03, 2007 12:04 pm
Posts: 140
Location: Europe
Country: Italy (it)
Carlos_Pt wrote:
Hi, can it be permission rights to access that folder?


Found the error. Since the Path is set dynamically, there was a '\' missing at the end of the download file path.

_________________
Blog: http://msdynamicnavblog.blogspot.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: makara, mdPartnerNL and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: