Try to save excel file on sever hard drive

Hi, I am try to save excel file on harddrive of server.

user have the intrface on the basis of user selection file will generate.

i am using “agent.run” then its workfine. it create excel file on local harddrive but when i try to save this file on sever

with using of “agn.RunOnServer(uidoc.Document.NoteId)” its shows error on srever that “Operation is disallowed in this session”.please help me and give any idea so that i can save file on sever hard drive

Subject: Try to save excel file on sever hard drive

Try setting runtime security level of your agent (second tab in agent properties) to 2 or 3.

Make sure the path exists on the machine where the server runs on.