Adding of Items through code behind

Last post 06-04-2009, 10:21 PM by cutechat. 4 replies.
Sort Posts: Previous Next
  •  05-28-2009, 2:02 AM 52586

    Adding of Items through code behind

    Data = Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.
     
    The above exception is raised when implemeted as
     
    Attachments1.upload(FileSize, FileName, Stream.Null);
  •  05-31-2009, 9:38 PM 52666 in reply to 52586

    Re: Adding of Items through code behind

    Hi,
     
    Can you post screen shot ?
     
    I tested this and no error :
     
    Attachments1.Upload(0, "hello.zip", Stream.Null);
     
    Regards,
    Terry
     
  •  06-01-2009, 5:54 AM 52696 in reply to 52666

    Re: Adding of Items through code behind

    Hi
       The below is the screen shot of the error
     

     
     

     
     
     
     
    Thanks
  •  06-04-2009, 4:26 AM 52783 in reply to 52666

    Re: Adding of Items through code behind

    Hi please can anybody help me out?
     
       I am uploading the file through Ajax Uploader and saving the file to databse by converting it to stream.
     
       Then retrieving the same from the database and trying to bind it to the Ajax uploader control, but it is throwing a thread aborted exception with inner exceptioon as "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack". Even when i try to give it as stream.Null the same exception is returned.
     
     
    Thanks.
  •  06-04-2009, 10:21 PM 52809 in reply to 52783

    Re: Adding of Items through code behind

    Hi,
     
    Does your code put Response.Redirect(...) into a try-catch block ?
     
    Regards,
    Terry
     
View as RSS news feed in XML