更新时间:2023-02-03 10:09:36
经过长时间的奋斗,我找到了原因.导致该错误的原因是,当从编程上下文传递字符串时,它会继续添加到 System.Web.HttpResponseBase Response
对象中.当我通过硬编码直接传递字符串时,它不会再混乱 System.Web.HttpResponseBase响应
对象.因此,最终的解决方案是添加一段代码 Response.clear();
,以清除所有先前的Response对象.现在,它的工作正常.谢谢大家的建议.欢呼!!
After a long struggle I found the reason. The error is caused because when the string is passed from the programming context it keeps on adding to System.Web.HttpResponseBase Response
object. when I pass the string directly by hard coding it is not messing again with
System.Web.HttpResponseBase Response
object. So the final solution is to add a piece of code Response.clear();
which clears all the previous Response objects. Now its working fine. Thanks all for your suggestions. cheers!!