Problem saving attachment using TIDPop3 component (cannot save attachment)

Hi,

I adapted a program to run as a service that retrieves mails using a TIDPop3 component, save attached excel sheets, and do some processing on the contained data. I tested it on a W2K workstation and WinXP PC, without a problem. But when I installed it on W2K server PC, I got the error message that the attachment cannot be saved. The component can retrieve the email message without a problem, but fails to store the attached excel sheet.
First I thought about security settings, the service uses the Local System account. (Note: the service is not interactive with the desktop and has no dependencies). But then the services keeps a log of the performed actions, and the logfile is stored in the same directory where the attachments have to be stored. (There is enough diskspace available of course. I even tried to save the file on a network drive, but that didn't work either.)
Is there a way to get more diagnostic info from the component itself, f.i. what the actual reason is why the file cannot be saved? And does anybody have idea why in a specific case the saving of an attachment wouldn't work.

Thanks in advance,
Wim.
ecomasterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MolandoCommented:
maybe it saves under a temp name then renames it. if so make sure the user has both modify and delete rights.

Molando.
0
ecomasterAuthor Commented:
Indeed, the TIDAttachment component (from the same Indy suit) first stores the file in a temp directory (I don't know which one yet) and the copies it. The service uses the Local System account, how can one check what rights this account has? Actually I thought this 'account' could read/write in all the local drives/directories.

Wim.
0
MolandoCommented:
to find the directory try going to http://www.sysinternals.com/ntw2k/source/filemon.shtml
then running this, this monitors all file activity on the computer, it should let you see where it is trying to save
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ecomasterAuthor Commented:
Hi, sorry for the late response. The tools on the site were very helpful to find out which temp directory is used.
It seemed to have been a problem with user rights, cause I reinstalled the service using an administrator account and haven't been able to reproduce the error since.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.