Handling the execption with Global handler

Hello All,

There is an issue with DB connect below is the error.

ERROR-
System.Data.SqlClient.SqlException (0x80131904): A severe error occurred on the current command. The results, if any, should be discarded.

with Global handler Bot has failed again and send another error.

ERROR-
System.InvalidOperationException: There is already an open DataReader associated with this Command which must be closed first.

So now - How we can pass more value as it’s need few action in Global handler and it’s auto call when exception occur.

Thanks again.

@Sumit_Sharma3

You can read the config again in global exception handler and get the values…and these extra values also can be written and fetched from
There

Cheers

Hello Anil,

Thanks for sharing your input.

Want to know how we can identify that which type of error .

  1. Web based or error to connect DB ?

@Sumit_Sharma3

Exception.GetType.ToString will give you the exception type…You can try segregating based on them

Hope this helps

cheers