当前位置:编程学习 > C#/ASP.NET >>

500错误 单个页面合成pdf文件不出错,可是当多个页面合成pdf文件时出错

string url2 = Request.Url.AbsoluteUri;
                        int urlIndex2 = url2.LastIndexOf("/");
                        url2 = url2.Substring(0, urlIndex2);
                        Stream myStream2 = wc2.OpenRead(url2 + "/MiddlePage2.aspx?percent=" + percent + "&colorPercent=" + colorPercent);
                        while (wc2.IsBusy) ;
                        StreamReader sr2 = new StreamReader(myStream2);
                        string response2 = sr2.ReadToEnd();
                        myStream2.Close();
                        sr2.Close();
                        Match mm2 = Regex.Match(response2.ToString(), "<img.+>");
                        string str2 = mm2.Value;
                        imgList.Add("img2", str2);
                        wc2.Dispose();

当单个页面合成Pdf文件时不出错,可是当多个页面合成pdf文件时出错,是为什么?是因为每个页面都用了stream吗? --------------------编程问答-------------------- 这个你需要贴出具体的异常信息才知道
--------------------编程问答-------------------- --------------------编程问答--------------------
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,