簡體   English   中英

Xsl轉換時的AccessViolationException

[英]AccessViolationException at Xsl Transform

以下是執行xsl轉換的代碼。 如果xslt文件包含15張或更少的紙,則代碼工作正常。 但是,如果有超過15張紙,則會出現以下錯誤。

嘗試讀取或寫入受保護的內存。 這通常表明其他內存已損壞。

                    using (var tw = new XmlTextWriter(xlsFileNameWithPath, System.Text.Encoding.UTF8))
                    {
                        tw.Formatting = Formatting.Indented;
                        tw.Indentation = 3;
                        tw.WriteStartDocument();
                        xsl.Transform(xmldoc, null, tw); //Performa XSLT transformation.
                    }

轉換的張數或文件大小是否有限制? 任何幫助將不勝感激。

我已將項目從.net framework 3.5遷移到.net framework 4.5,該問題不再存在。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM