c# - Can't access Exception property -


i catching argumentexception, of want specific property. when put breakpoint on code argumentexception caught, see has errormessage property:

enter image description here

but trying access gives result:

enter image description here

what's going on here?

the problem in first screenshot display httpwebresponse or similar object, while in second screenshot working actual exception.

exceptions have message property , not errormessage. change second code ex.message , work.


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -