By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,292 Members | 1,718 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,292 IT Pros & Developers. It's quick & easy.

ASP.NET "Object reference not set to an instance of an object" error..

P: 12

I am using visual studio 2005 and recently created a new web service project. I seem to have edited the global config file (inadvertently) somewhere along the line.

All new projects I have created since the above web service project have generated two errors while debugging. The first error, I believe I have fixed but I cannot fix the second error. I mention the first error below incase it is the cause of the second error..

1) The initial error I received was:

No http handler was found for request type 'GET'

I fixed this by adding the following to the machine.config file:
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory"/>

2) Now the second error which I cannot work out is:

Object reference not set to an instance of an object.

Can anyone help?

Many thanks!

~Further detail of error~
Source Error:

[No relevant source lines]

Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temp orary ASP.NET Files\test\707aa381\7394c385\App_Web_tkfgqqdr.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(Http Context 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\Temp orary ASP.NET Files\test\707aa381\7394c385\App_Web_tkfgqqdr.0.cs :0
System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously) +75
Oct 6 '08 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 1,754
HI Snester,

This error is caused my reference to namespaces, check that out.
Oct 6 '08 #2

P: 12
Thank you, found the problem..

I was on the right track but didn't quite get it.. 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.
Oct 6 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.