FFREDIANELLI Posted March 18, 2021 Share Posted March 18, 2021 Hi Folks ! my aplications was running from a long time in a windows+apache server , i migrate to windows+iis+hyperserv and the copy of files is not working if CopyFile(pchar('\\ip... bla bla...\file.docx'), pchar('c:\temp\a.docx'), false) then ShowMessage('ok') else ShowMessage('Falha'); a simple command like this always return false, something that i have to change in iis configuration ? Quote Link to comment Share on other sites More sharing options...
alfr Posted March 18, 2021 Share Posted March 18, 2021 It must be related to your application's App pool user has not write rights in the c:\temp folder. So add write rights for your app.pool user and/or for the built in users/user group - IIS_IUSRS and IUSR Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted March 20, 2021 Share Posted March 20, 2021 Maybe your directory MyFolder doesn't exists. if CopyFile(pchar('\\ip... bla bla...\MyFolder\file.docx'), pchar('c:\tem.... For this use : ForceDirectories() Quote Link to comment Share on other sites More sharing options...
FFREDIANELLI Posted March 23, 2021 Author Share Posted March 23, 2021 none of the suggestions resulted in working copy... may be something related with windows server 2019 dataserver ? Quote Link to comment Share on other sites More sharing options...
alfr Posted March 23, 2021 Share Posted March 23, 2021 Is it a network share you are copying from? If so also access to that is needed to the said users/app pool Quote Link to comment Share on other sites More sharing options...
FFREDIANELLI Posted March 23, 2021 Author Share Posted March 23, 2021 Yes it is... but behind a openvpn (service), i thought that iis have read access to a vpn provided by other service... don't ? The server is at AWS (amazon), and sometimes neet to publish a word document that is located in other country server, in apache i just copy the file to a sandbox folder , publish with word web service, and on disconect i clean de sandbox. But all off this stopped to work when i moved to aws with iis. Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted March 24, 2021 Share Posted March 24, 2021 try to copy to : User/ Puclic Documents and let us know... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.