Hello,
We’ve recently been getting FileCorruptedException every time we try to open a word document from our server. This application has been running for about 3 years, without any problems. Recently we had to change virtual directories and ended up with it running on a new application pool. Do note, none of the files ever changed physical location in this process. Just a new virtual directory and application pool.
So now, every time we try and open any document, it gives us a FileCorruptedException.
We get the exception on the following line:
Document doc = new Document(HttpContext.Current.Server.MapPath("/documents/" + FileLocation));
at Aspose.Words.Document.ࠈ(Stream ؟, LoadFormat ࠉ, String )
at Aspose.Words.Document…ctor(String fileName, LoadFormat loadFormat, String password)
We tried a File.Exist on the exact same mappath which returned true. We’re getting this on all the documents, but when copied to our local machines, we can open it in word without a problem.
I think it has something to do with rights, there’s probably a folder that we missed or a setting that we forgot. Could anybody give me a list of users we need to give modify rights to and on what folders to set those rights? (besides the folders the documents themselves are in)
Or is something else going wrong here?