1
Vote

Not working in windows service

description

I've used this to create password protected zip file in the windows service. When I deploy the service on the server it gives error "could not find a part of the path C:\Windows\System32\TEmp\DotNetZip-ewtkhsc.tn" on zip.Save() line. I set below property to overcome this problem.

zip.TempFileFolder = applicationPath + "\Temp";

The path given above is the valid one and service has all permission (read, write) to this path. Still zip.Save() is giving me "could not find a part of the path" error.

Any help would be appreciated.

Thanks in advance.

comments