0
我試圖使用概述here概述的解決方案從視圖中生成pdf文檔,但當我到達此行時不斷收到「非法字符在路徑中」錯誤:在asp.net中使用iTextSharp的路徑中的非法字符MVC
var parsed = iTextSharp.text.html.simpleparser.HTMLWorker.ParseToList(htmlRdr, null);
我返回的視圖包含多個部分視圖並使用母版頁(如果有幫助)。有關如何在解析期間保護html的任何想法?
什麼是堆棧跟蹤? – SLaks
@SLaks:'System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String [] str)at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access,AccessControlActions control,String [] pathListOrig,Boolean checkForDuplicates,Boolean needFullPath,Boolean copyPathList) at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access,String [] pathList,Boolean checkForDuplicates,Boolean needFullPath) ' – acullen72