WCF服务访问Sharepoint文档库的UNC路径

时间:2016-05-19 21:43:56

标签: wcf sharepoint aspose

我有一个WCF服务,它访问Sharepoint文档库UNC路径,挑选word文件并使用aspose.words转换为pdf,并使用UNC路径将转换后的文件删除到另一个文档库。

当我使用VS WCF测试客户端运行服务时,它工作正常,当我将服务发布到IIS时不工作。感谢您的帮助。

这是错误:

System.IO.IOException: Access Denied. 

Before opening files in this location, you must first add the web site to your trusted sites list, browse to the web site, and select the option to login automatically.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n     
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n       
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)\r\n   at Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)\r\n   at Word2PdfSvc.Convert2Pdf.SavePdf(String sourceUrl, String srcFileName, String destinationUrl, String dstFileName)"

0 个答案:

没有答案
相关问题