I added a try catch in my code to raise error
but there shows error--->The name ex doesnot exist in the corrent contest
I also added a namespace--->using System.Runtime.Remoting.Contexts;
Still ex shows red in clr...How can I fix it?
try
{
//line of code
}
catch (Exception exc)
{
ex.errlog(exc, HttpContext.Current.Request.URL.ToString());
}

Rafnas T PRank #280 · 8.8K reputationPosted Apr 7, 2018, 6:10 AM EDT
exc.StackTrace
Soumya Ps148 reputationPosted Apr 9, 2018, 9:46 PM EDT
Manav PandyaRank #166 · 14.3K reputationPosted Apr 7, 2018, 10:36 AM EDT
Soumya Ps148 reputationPosted Apr 10, 2018, 6:26 PM EDT