主题:大家有没有碰到过这样的问题
我有个用Delphi2006写的项目,后面因为要对其修改.所以,我COPY了一份到D盘,原来是E盘(打算E盘的为原版本,做为备份);
但是COPY过去后出现了.
Server Error in '/NetelBBS' Application.
--------------------------------------------------------------------------------
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
System.Web.UI.WebControls.LinkButton.add_Click(EventHandler value) +7
MenuHeadCtr.TWebUserControl1.InitializeComponent() in E:\sheicObject\BBS_D2006\MenuHeadCtr.pas:68
MenuHeadCtr.TWebUserControl1.OnInit(EventArgs e) in E:\sheicObject\BBS_D2006\MenuHeadCtr.pas:54
System.Web.UI.Control.InitRecursive(Control namingContainer) +240
System.Web.UI.Control.InitRecursive(Control namingContainer) +178
System.Web.UI.Control.InitRecursive(Control namingContainer) +178
System.Web.UI.Page.ProcessRequestMain() +197
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
其中 MenuHeadCtr.TWebUserControl1.InitializeComponent() in E:\sheicObject\BBS_D2006\MenuHeadCtr.pas:68
MenuHeadCtr.TWebUserControl1.OnInit(EventArgs e) in E:\sheicObject\BBS_D2006\MenuHeadCtr.pas:54
MenuHeadCtr.pas是首页上面的一个UserControl;而 E:\sheicObject\BBS_D2006 这个是原备份的目录;
我明明将项目COPY到了D盘.怎么还还会读到E盘的文件去了?后来,我找到了Project下面Options下面的ASP.NET也改成新的路径;但是,提示还一样;在Web.config里面也找了. 没有找到,有将路径写死的地方;
有碰到这样问题帮个忙啊!!! 小弟先谢了!!!
但是COPY过去后出现了.
Server Error in '/NetelBBS' Application.
--------------------------------------------------------------------------------
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
System.Web.UI.WebControls.LinkButton.add_Click(EventHandler value) +7
MenuHeadCtr.TWebUserControl1.InitializeComponent() in E:\sheicObject\BBS_D2006\MenuHeadCtr.pas:68
MenuHeadCtr.TWebUserControl1.OnInit(EventArgs e) in E:\sheicObject\BBS_D2006\MenuHeadCtr.pas:54
System.Web.UI.Control.InitRecursive(Control namingContainer) +240
System.Web.UI.Control.InitRecursive(Control namingContainer) +178
System.Web.UI.Control.InitRecursive(Control namingContainer) +178
System.Web.UI.Page.ProcessRequestMain() +197
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
其中 MenuHeadCtr.TWebUserControl1.InitializeComponent() in E:\sheicObject\BBS_D2006\MenuHeadCtr.pas:68
MenuHeadCtr.TWebUserControl1.OnInit(EventArgs e) in E:\sheicObject\BBS_D2006\MenuHeadCtr.pas:54
MenuHeadCtr.pas是首页上面的一个UserControl;而 E:\sheicObject\BBS_D2006 这个是原备份的目录;
我明明将项目COPY到了D盘.怎么还还会读到E盘的文件去了?后来,我找到了Project下面Options下面的ASP.NET也改成新的路径;但是,提示还一样;在Web.config里面也找了. 没有找到,有将路径写死的地方;
有碰到这样问题帮个忙啊!!! 小弟先谢了!!!