hi
I got an error when working in ASP.NET with codebehind C#. It is an E-Com domain.
System.InvalidCastException: Specified cast is not valid
at Mondera.Shop.Basket.GCheckoutButton1_Click(Object sender, ImageClickEventArgs e)
But the codings is correct and it gives the result but this type of exception i got what's the reason.
Can any one help me...
Regards,
Prakash
waqar laghariPosted Apr 16, 2009, 9:39 AM
Dear brother please use the try and catch and find out where Exception is generated and use this to translate the exception
try
{
}
catch (Exception ex)
{
throw new ExceptionTranslator(ex)
}
this will give you correct reason that why exception is occuring..
Best reagrds
Waqar Hussain Laghari