Click to See Complete Forum and Search --> : Specified cast is not valid. !!!!!!!!!!!!!!


j-dearden
08-03-2007, 06:35 AM
Hi,

i am getting the following error, using visual studio 2005, c# asp.net 2.0

--------------------------------------------------

Specified cast is not valid.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Specified cast is not valid.

-------------------------------------------------

this occurs on the following line

servCRM.WebServ(false, int.Parse(Request.Cookies["SessionState"]["CompanyID"]), (int)GetArg("MCSComp"), (int)GetArg("CustomerAccountNumber"), DateTime.Now,
DupCode, "", int.Parse(li.Value), result, "");

Any suggestions i am loosing my patients!

thanks

Detect
08-03-2007, 10:08 AM
What are the values (and types) for GetArg("MCSComp") and GetArg("CustomerAccountNumber")?