trace enabled, get app. error, doesn't enabled, on runs without error

G

Gabor

Hí All,

Does anybody can help to solve this problem?

When I set in the web.config file <trace enabled="true"/>, I get the
following error in one of main web pages:

[NullReferenceException: Object reference not set to an instance of an
object.]
System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
calcViewState)
System.Web.UI.Page.ProcessRequestMain()

If I set the <trace enabled="false"/>, the application executes normally.

I'm using dotnet framework 1.0 on Windows XP prof.

Thanks in advance

Gabor
 
S

S. Justin Gengo

Gabor,

It sounds as if you're missing a "New" statement on that object.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
 
G

Gabor

Thank You for the quick answer, but WICH object?

From the error message, I can't find where is the suspicious object, and
more interestingly, the app. executes well, if trace disabled.

When I debug the application, the default.aspx file form_load event executes
normally, and the project built without error.

??

Thanks in advance

Gabor

S. Justin Gengo said:
Gabor,

It sounds as if you're missing a "New" statement on that object.

Sincerely,

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche


Gabor said:
Hí All,

Does anybody can help to solve this problem?

When I set in the web.config file <trace enabled="true"/>, I get the
following error in one of main web pages:

[NullReferenceException: Object reference not set to an instance of an
object.]
System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
calcViewState)
System.Web.UI.Page.ProcessRequestMain()

If I set the <trace enabled="false"/>, the application executes normally.

I'm using dotnet framework 1.0 on Windows XP prof.

Thanks in advance

Gabor
 
J

Jacob Yang [MSFT]

Hi Gabor,

I notice that you have provided more detailed information for this issue on
another post in the microsoft.public.dotnet.framework.aspnet group. I think
that we should work on this issue on that thread.

Trace enabling in web config cause app. error

If you have any concerns, please feel free to let me know.

Best regards,

Jacob Yang
Microsoft Online Partner Support
<MCSD>
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top