Event Viewer

  • Thread starter Thread starter john
  • Start date Start date
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?
 
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)
 
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.
 
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)
 
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,
 

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

Back
Top