Hi!
I have made an NSF hook. In the hook, I log different things. I have feature where it is possible to rename the log file. It worked fine on a version 5 server, but after I have upgraded to version 6, I get an error 13 = Access denied error? Any suggestion would be very appreciated.
Casper
Subject: Rename problem
Hello Casper,
I can think of a few things…
First, check the Server document to make sure that the log file is still configured to the new name you gave your log file.
Then, check the ACL on both the new log file and the modified template.
The server upgrade may have modified this since it always looks for the file name “log.nsf” and it is not recommended to rename the log file, so this may also be it.
Another thing - when you modified the name of the log file, did you also modify the template (log.ntf). Did you back up the original log template before renaming it and move it out of the notes/data directory? If not, look for the file “log.nsf” and if it exists, you not only have a conflict, you should check that ACL as well. When the design task runs, it looks for the log.ntf.
**Also - when you upgrade the server it automatically looks for the log.nsf and if it cannot find it, it creates a log.nsf off of the log.ntf template.
I can think of a few things that may have happened, but I need a little more information.
I’m sure this can be fixed!!
Thanks… I’ll check back soon.
Jeannie
Subject: RE: Rename problem
Hi!
Thank you for your response. But the problem hasn’t anything to do with log.nsf file. My hook creates a simple text file where it logs different thing in. And it is also the hook that renames the file.
Casper
Subject: Rename problem
Are you using an agent to change the name of the log file? You may need to change the security setting in the Agent Properties to allow restricted operations.
If this does not fix your problem, please post the code which is having the problem. Maybe someone will look it over and spot a problem.
Emily.
Subject: Rename problem
Could it be that another process holds on to the file? I don’t know much about the other processes?
Subject: RE: Rename problem
hi Casper…
Sorry for the misunderstanding!
I’ve never had a problem with a text log file before. I can check around though.
What release are you working with (both client and server) just to rule out any bugs 
thanks!
Jeannie