Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey, I'm totally muddling my way through this, and I would love some help! I just transferred a website to a new host. I have a asp.net form in a page. Everytime I try to submit the form, I get the message below. Apparently this is a common error, but I can't figure out what to do. I've looked at articles and posts about this, but I need something in laymen's terms (if that's possible).Can someone point me in the right direction.Thanks so much!

MSIL
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.]
   wsppgApplication.enrollmentApp.sendTheMessage()
   wsppgApplication.enrollmentApp.btnappSubmit_Click(Object sender, EventArgs e)
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain() +1292

Version Information: Microsoft .NET Framework Version:1.1.4322.2443; ASP.NET Version:1.1.4322.2470
Posted

There must be some object that is not initialised and you are accessing something out of it. Debug you code, you'll get the cause
 
Share this answer
 
You would need to put some code here for someone to help you.

However, it does appear you are trying tor reference an object instance that is null or does not exist.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900