简体   繁体   English

C#中的ASPPDFLib没有MTS对象上下文

[英]There is no MTS object context with ASPPDFLib in c#

When trying to convert a page to pdf, the page returns this YSOD error: 尝试将页面转换为pdf时,页面返回此YSOD错误:

Obtaining Object Context failed: There is no MTS object context

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Runtime.InteropServices.COMException: Obtaining Object Context failed: There is no MTS object context

And it took me quite a while to figure out, so hope I help someone someday :) 我花了很长时间才弄清楚,所以希望有一天我能帮助某个人:)

解决此问题的方法是在页面顶部与@Page一起包括AspCompat =“ True”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM