Event Viewer

J

john

I am getting warning events like
Process information:
Process ID: 2764
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:
Exception type: InvalidCastException
Exception message: Conversion from string "" to type 'Boolean' is
not valid.

The problem is it will not tell me which line of the code caused this
error. Sometimes it is really hard to identify the place where the
code fails. Is there any way to add line number to warnings like this?
 
B

bruce barker

compile with debug (this will compile in the line numbers), but do not set
debug on in the web.config (as this effects asp.net performance).

-- bruce (sqlwork.com)
 
J

john

compile with debug (this will compile in the line numbers), but do not set
debug on in the web.config (as this effects asp.net performance).

-- bruce (sqlwork.com)







- Show quoted text -

I cannot do it. I am getting this error only in production. In
development I cannot recreate it.
 
B

bruce barker

then follow my directions. compile the production site with debug (which adds
line number support), but don't set debug in the web.config

-- bruce (sqlwork.com)
 
J

john

then follow my directions. compile the production site with debug (which adds
line number support), but don't set debug in the web.config

-- bruce (sqlwork.com)






- Show quoted text -

I tested it, seems like this is exactly what I was looking for.
Thanks,
 
C

Cowboy \(Gregory A. Beamer\)

You can get the PDBs without debug compile, if that is what you are aiming
at.
 

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,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top