Specified cast is not valid. PLEASE HELP!

Discussion in 'ASP.NET / ASP.NET Core' started by ashwani, Mar 26, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hello, I having a following error:

    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.

    Source Error:

    An unhandled exception was generated during the execution of the current web
    request. Information regarding the origin and location of the exception can be
    identified using the exception stack trace below.

    Stack Trace:


    [InvalidCastException: Specified cast is not valid.]
    dCart.mcat_list.mcategory_CreateDataSource()
    dCart.mcat_list.Page_Load(Object sender, EventArgs e)
    System.Web.UI.Control.OnLoad(EventArgs e) +67
    System.Web.UI.Control.LoadRecursive() +35
    System.Web.UI.Page.ProcessRequestMain() +750

    Please help!

    Thank you.
     
  2. The error genarated from the line that has the (cast) exprission either by cint(exprission) or convert.Tostring(exprission) ...


    Would you mind pasting it here ... just the code that has the casting.


    Ash
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page