NullReferenceException on line 1 of .aspx file ?

  • Thread starter Thread starter G-Fit
  • Start date Start date
G

G-Fit

Hello group,

I'm trying to understand what happened to one of our team member today.
He's getting NullReferenceException on any .aspx from our project he tries
to browse, the error pointing to the first line of the file (be it <%@
Register..., <%@ Page...) with stack :

[NullReferenceException: La référence d'objet n'est pas définie à une
instance d'un objet.]
System.Web.UI.Control.get_Controls()
System.Web.UI.Control.AddParsedSubObject(Object obj)

System.Web.UI.Control.System.Web.UI.IParserAccessor.AddParsedSubObject(Objec
t obj)
ASP.Default_aspx.__BuildControlTree(Control __ctrl) in
c:\inetpub\wwwroot\FaF\default.aspx:1
ASP.Default_aspx.FrameworkInitialize() in
c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\faf\201c543a\a3b8d047\lmpx-wds.0.cs:0
System.Web.UI.Page.ProcessRequest()
System.Web.UI.Page.ProcessRequest(HttpContext context)

System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionSte
p.Execute()
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)

Every person in the team has the same code as his, and doesn't get that.
Does anyone know what is happening ?

Thanks
Karine Proot
 
Hi Karine,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that your .aspx page is generating and
NullReferenceException when loading. If there is any misunderstanding,
please feel free to let me know.

From the position the exception is thrown and the stacktrace, we can see
that the web page is trying to register some third party control to the
page. Could you let me know if this page contains any third party control?
If so, that control might not be registered properly on this machine.
Please try to register it.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Kevin Yu said:
Hi Karine,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that your .aspx page is generating and
NullReferenceException when loading. If there is any misunderstanding,
please feel free to let me know.
Correct, but please note that *any* .aspx page of the project is generating
the exception.
From the position the exception is thrown and the stacktrace, we can see
that the web page is trying to register some third party control to the
page. Could you let me know if this page contains any third party control?
If so, that control might not be registered properly on this machine.
Please try to register it.
Indeed, there are 2 third party control in the project (though not present
in all pages). They are registered properly. The machine was rebooted and
all worked fine from then, so we don't know what happened - but everything
is ok now.

Thanks anyway for your help.
 
Back
Top