W
Will .H
Guest
Hi there,
our source code of ASP .NET will be managed by using TFS. My ex-colleague had quitted the job and I take over his source code. Now I found a strange a problem is when I amend the source code and publish to our client environment. I got the error message. the following the message like this:
Unhandled Execution Error
Object reference not set to an instance of an object.
at MCD.CCHS.OnlineForm.contactus.ContactUs.btnSubmit_Click(Object sender, EventArgs e) in p:\KenonSiu\McDonald\SourceSafe\XXXXXXXX\XXXXX\XXXXXXX\ContactUs.aspx.cs:line 171
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
BUT the path is wrong: p:\KenonSiu\McDonald\SourceSafe\XXXXXXXX\XXXXX\XXXXXXX\ContactUs.aspx
Actually the physical path of program should be c:\XXXXXXXXX, but when we run the webpage, it always call the page located in the p:\KenonSiu\McDonald\SourceSafe\XXXXXXXX\XXXXX\XXXXXXX\ContactUs.aspx.cs
so how should I sort it out.
Thanks.
Hi there, if you found my comment very helpful then please | Propose as answer | . Thanks and Regards.
Continue reading...
our source code of ASP .NET will be managed by using TFS. My ex-colleague had quitted the job and I take over his source code. Now I found a strange a problem is when I amend the source code and publish to our client environment. I got the error message. the following the message like this:
Unhandled Execution Error
Object reference not set to an instance of an object.
at MCD.CCHS.OnlineForm.contactus.ContactUs.btnSubmit_Click(Object sender, EventArgs e) in p:\KenonSiu\McDonald\SourceSafe\XXXXXXXX\XXXXX\XXXXXXX\ContactUs.aspx.cs:line 171
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
BUT the path is wrong: p:\KenonSiu\McDonald\SourceSafe\XXXXXXXX\XXXXX\XXXXXXX\ContactUs.aspx
Actually the physical path of program should be c:\XXXXXXXXX, but when we run the webpage, it always call the page located in the p:\KenonSiu\McDonald\SourceSafe\XXXXXXXX\XXXXX\XXXXXXX\ContactUs.aspx.cs
so how should I sort it out.
Thanks.
Hi there, if you found my comment very helpful then please | Propose as answer | . Thanks and Regards.
Continue reading...