I am using DocumentFormat dll in my application to write a Word file from another Word file. The file from which I copy the contents is placed on 14 hive location. When I try accessing it using the code given below:
WordprocessingDocument objWordDocx = WordprocessingDocument.Open(sTempFileName, true);
Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
is thrown. I am unable to figure out the issue. Please guide.