Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
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.csBlush | :O
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
 
Regards,
Abhishek Mishra
Posted 16-Dec-09 1:51am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Have you tried setting breakpoints in your page and stepping through them ? The other thing to try, is to remove elements from the page until it works, then work out which element is causing the issue.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
 
Regards,
Abhishek Mishra
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Resolving the problem
Choose the most appropriate solution (for your environment) from the choices below:
Solution#1 - Change the ASP.NET identity user to a different identity (which has sufficient rights)
Logon to the Controller webserver as an administrator
Right-click on 'My Computer' and choose 'manage'
Expand 'Services and Applications'
Expand 'Internet Information Services (IIS) Manager'
Expand 'Application Pools'
Right-click on 'DefaultAppPool' and choose 'properties'
Click on 'Identity' tab
Modify the setting from the current (default = predefined "Network Service") to an appropriate value (for example predefined "Local System")
Click OK, OK.
Restart IIS (or reboot entire application server)
Solution#2 - Register the existing ASP.NET identity user (default identity = "NT AUTHORITY\NETWORK SERVICE") to have sufficient rights for ASP.NET
Logon to the Controller webserver as an administrator
START - RUN - "CMD" <Enter>
c:
cd %windir%
cd microsoft.net
cd framework
cd v2.0.50727
aspnet_regiis -ga "NT AUTHORITY\NETWORK SERVICE"
  Permalink  

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

  Print Answers RSS
0 Maciej Los 295
1 OriginalGriff 249
2 Sergey Alexandrovich Kryukov 205
3 Aajmot Sk 197
4 Sinisa Hajnal 176
0 OriginalGriff 7,800
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,790


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 28 Dec 2009
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100