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

未将对象引用设置到对象的实例。

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

异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。

源错误:


行 4627:    public static string GetThumbnailPath(string OriginalPath, string ThumbnailName)
行 4628:    {
行 4629:        string PictureExt = System.IO.Path.GetExtension(OriginalPath).Remove(0, 1);
行 4630:        int index = OriginalPath.IndexOf(".");
行 4631:        string TempStr = OriginalPath.Substring(0, index) + ThumbnailName + "." + PictureExt;

源文件: d:\ftp\wwwroot\FreshShenyangOffice\App_Code\DataRelated.cs    行: 4629

堆栈跟踪:


[NullReferenceException: 未将对象引用设置到对象的实例。]
   DataRelated.GetThumbnailPath(String OriginalPath, String ThumbnailName) in d:\ftp\wwwroot\FreshShenyangOffice\App_Code\DataRelated.cs:4629
   xiezilou_PictureView.BindBasic(Int32 PicID, Int32 BuildingID, Int32 TypeID) in d:\ftp\wwwroot\FreshShenyangOffice\xiezilou\PictureView.aspx.cs:138
   xiezilou_PictureView.BindData(Int32 BuildingID, Int32 PicID) in d:\ftp\wwwroot\FreshShenyangOffice\xiezilou\PictureView.aspx.cs:61
   xiezilou_PictureView.Page_Load(Object sender, EventArgs e) in d:\ftp\wwwroot\FreshShenyangOffice\xiezilou\PictureView.aspx.cs:42
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +41
   System.Web.UI.Control.OnLoad(EventArgs e) +131
   System.Web.UI.Control.LoadRecursive() +65
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427


版本信息: Microsoft .NET Framework 版本:2.0.50727.8793; ASP.NET 版本:2.0.50727.8762