Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Strange Error

Strange Error

Scheduled Pinned Locked Moved C#
questioncsharpc++wpfwcf
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AR Reddy
    wrote on last edited by
    #1

    Hi, I got the following exception error when I debug my .net application in 2005. "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack." Actually I am binding the data to gridview. I am sure that the data is there in dataset and binding to gridview. while binding, I am getting the above error. I have searched in net, I got the solutions like, run in mixed mode (managed and native). I did the same means, I enabled both managed and native code debugging options. But still I am getting the same error. Could you please tell me how can I solve this? I am using windows 2003 server with service pack 2. Thanks in Advance,

    AR Reddy

    R G 2 Replies Last reply
    0
    • A AR Reddy

      Hi, I got the following exception error when I debug my .net application in 2005. "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack." Actually I am binding the data to gridview. I am sure that the data is there in dataset and binding to gridview. while binding, I am getting the above error. I have searched in net, I got the solutions like, run in mixed mode (managed and native). I did the same means, I enabled both managed and native code debugging options. But still I am getting the same error. Could you please tell me how can I solve this? I am using windows 2003 server with service pack 2. Thanks in Advance,

      AR Reddy

      R Offline
      R Offline
      Rocky
      wrote on last edited by
      #2

      well to be honest I dont have an exact idea of this error but i think you should try capturing the DataError Event of that DGV and see whats happening in that.

      Rocky You can't climb up a ladder with your hands in your pockets.

      1 Reply Last reply
      0
      • A AR Reddy

        Hi, I got the following exception error when I debug my .net application in 2005. "Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack." Actually I am binding the data to gridview. I am sure that the data is there in dataset and binding to gridview. while binding, I am getting the above error. I have searched in net, I got the solutions like, run in mixed mode (managed and native). I did the same means, I enabled both managed and native code debugging options. But still I am getting the same error. Could you please tell me how can I solve this? I am using windows 2003 server with service pack 2. Thanks in Advance,

        AR Reddy

        G Offline
        G Offline
        gauthee
        wrote on last edited by
        #3

        Hi Reddy, Interesting error! On googling a bit i found that it can be because of the response.redirect method in the catch block! The response.redirect normallu throws out a thread abortion error so in the catch block it is throwing this error. Remove your response.redirect in your catch block i guess it should work fine! If you want to redirect to a specific on an exception use the web.config instead Hope this helps!

        gauthee

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups