Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

Regards,
Abhishek Mishra
Posted

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.
 
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.

Regards,
Abhishek Mishra
 
Share this answer
 
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"
 
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