Click here to Skip to main content
15,901,122 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I am facing new problem when i am executing any of wesite.
anyone can suggest me.
Thanks in advance.

Server Error in '/Test' 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:


[Source Error:


[No relevant source lines]]


Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\test\6abf591b\d2d663ec\App_Web_pjtzq-t1.0.cs Line: 0

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
System.Web.UI.Page.SetIntrinsics(HttpContext context, Boolean allowAsync) +200
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +14
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.default_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\test\6abf591b\d2d663ec\App_Web_pjtzq-t1.0.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3053
Regards,
Abhishek Mishra
Posted
Updated 16-Dec-09 1:00am
v2

You have a null-reference error - this means you are trying to use an object that is null. Always check that an object is not null before trying to use it.

Please Bing or Yahoo "null reference error" for more information.
 
Share this answer
 
thanks,
I am not using any null object...
this error come when i launch any wesite with a small code,
I am pasting the cs file also
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
TextBox TextBox1 = new TextBox();
TextBox1.Text = "Successfull";
}

}
i guss problwm is not in the code.may be in the path
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\test\6abf591b\d2d663ec\App_Web_pjtzq-t1.0.cs

Guess may be some memory or dll problem
 
Share this answer
 
Debug the code to find where exactly the error arises, and check if the object is not null.
If you cant really find any solution try clearing the asp.net temporary files.
 
Share this answer
 
I Guss the error was caused within the web.config file located in the Microsoft.NET\Framework\v2.0.50727\CONFIG\ folder. It seems somehow I managed to save over this web.config file with my web services project web.config file.
I think it is due to the handy feature in Visual Studio which allows the opening of external files into a new tab, on the same screen as a project. Opps
 
Share this answer
 
Issue has been resolved by simple replace the Web.config File from the path C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG
actully my Framework's Web.config file got corrupted.
 
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