“/”应用程序中的服务器错误。

亚博下载官网下载_亚博亚博体育_亚博体育网址

说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.IO.FileNotFoundException: 亚博下载官网下载_亚博亚博体育_亚博体育网址

源错误:


行 205:                        string path = Server.MapPath("/" + str[i]);
行 206:                        //string path = "E:\\strong.com\\car.srtong.com\\" + str[i].ToString();
行 207:                        System.Drawing.Image image = System.Drawing.Image.FromFile(path);
行 208:                        if (image.Width > 670)
行 209:                            strRe = strRe + "<li><img width='670' src='http://2sc.srtong.com/" + str[i] + "' alt=\"" + title + "\"  /></li>";

源文件: e:\wwwroot\2sc.srtong.com\web\sale\saleShow.aspx.cs    行: 207

堆栈跟踪:


[FileNotFoundException: 亚博下载官网下载_亚博亚博体育_亚博体育网址]
   System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) +382099
   System.Drawing.Image.FromFile(String filename) +6
   sale_saleShow.getpic(String pic, String title) in e:\wwwroot\2sc.srtong.com\web\sale\saleShow.aspx.cs:207
   ASP.sale_saleshow_aspx.__DataBind__control10(Object sender, EventArgs e) in e:\wwwroot\2sc.srtong.com\web\sale\saleShow.aspx:85
   System.Web.UI.Control.OnDataBinding(EventArgs e) +99
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.Control.DataBindChildren() +211
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
   System.Web.UI.Control.DataBind() +15
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +124
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +443
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +51
   System.Web.UI.WebControls.Repeater.DataBind() +75
   sale_saleShow.Page_Load(Object sender, EventArgs e) in e:\wwwroot\2sc.srtong.com\web\sale\saleShow.aspx.cs:28
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


版本信息: Microsoft .NET Framework 版本:2.0.50727.8000; ASP.NET 版本:2.0.50727.8001