I am getting an error in the “GroupDocs.Viewer.WebForms.Sample” project when I replace the “candy.pdf” document to read off our internal file server instead. I just change that one line, and it seems like it is wanting to write over the origin file. Here is the exception:
Cannot create “\FileServerBlah\blahblah\blah.pdf” because a file or directory with the same name already exists.
Again, I have changed nothing whatsoever in the sample code except the one line. I changed
<%= Viewer.ClientCode()
.TargetElementSelector("#test
")
.FilePath(“candy.pdf”)
.ZoomToFitWidth()
%>
to
<%= Viewer.ClientCode()
.TargetElementSelector("#test
")
.FilePath("\FileServerBlah\blahblah\blah.pdf")
.ZoomToFitWidth()
Why is it attempting to create the directory/file?
Please help!
Hello,
Thank you, that works, however I do NOT want the cache directory to be the same as the source directory. Can I configure the cache directory to be somewhere else?(i.e. not on the source store, but on a local store) It won’t be acceptable to write to the source disk.
Hello,
Hello, I tried setting the workingpath, and it did store the cached images there, but it is still writing to the source directory as well(putting a bin file, and caching thumbnails there as well)
How do I prevent ANY writing to the source directory?
Thanks.
Hello,
Thanks for your explanation. Yes we will not be able to write to the source directory, we need a 100% separate directory for caching/processing.(the source directory should be used in a read-only fashion) Do you know how long this would take to analyze/implement? I’m guessing it wouldn’t take too much since it’s just a configuration path change, but please do let me know.
Best regards,
Evgen Efimov
http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+