ObjectDataSource Refresh Schema Error

Discussion in 'ASP .Net' started by yisroem@gmail.com, Jul 4, 2007.

  1. Guest

    Hi Everybody,

    I am just getting to grips with ASP.NET 2.0. as per my reading I
    understand that it is possible for a data control (such as the
    GridView, DetailsView etc.) to reflect upon the object that it is
    connect to, and refresh its columns according to the properties of the
    object.

    In reality, though, when I connect the ObjectDataSource to an object
    (VB Class) and then select Refresh Schema on the smart tag I get an
    error message stating:

    The schema of type 'Songs[]' could not be retrieved.
    Operation is not valid due to the current state of the object.

    I should state that I have tried this with various control and object/
    class combinations with no luck. I also do not seem to find a single
    post about this specific error message in Google groups, nor on the
    web. Am I so odd? <g>

    I did find some complaints about a similar issue when someone makes
    changes in the underlying object or table, and the changes are not
    reflected in the data control. I, though, am having this problem from
    stage 1.

    I've seen a suggestion to close and reopen the designer page, didn't
    work either. Neither closing Visual Web Developer 2005 and reopening.

    Another point: when I go to 'Edit Columns' or 'Edit Fields' in the
    data control's smart tag, I do not get a DropDownList of the class'
    properties for the column's/field's DataField property.

    I will appreciate any and all leads in solving this problem.
    Thankfully,
    Yisman
     
    , Jul 4, 2007
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?RGljaw==?=

    ObjectDataSource's underlying data/schema

    =?Utf-8?B?RGljaw==?=, Mar 1, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    1,913
    Steven Cheng[MSFT]
    Mar 1, 2006
  2. Markus
    Replies:
    1
    Views:
    1,908
    Markus
    Nov 23, 2005
  3. Stanimir Stamenkov
    Replies:
    3
    Views:
    1,549
    Stanimir Stamenkov
    Apr 25, 2005
  4. =?Utf-8?B?RGVuaXMgU29oZXQ=?=

    Error with ObjectDataSource and DetailsView - conversion error

    =?Utf-8?B?RGVuaXMgU29oZXQ=?=, Mar 28, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    550
    =?Utf-8?B?RGVuaXMgU29oZXQ=?=
    Mar 28, 2007
  5. Phillip Ian

    AJAX + ObjectDataSource Refresh Issue

    Phillip Ian, May 2, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    1,320
    Phillip Ian
    May 2, 2007
  6. Max2006
    Replies:
    2
    Views:
    8,546
    Eliyahu Goldin
    Jul 10, 2007
  7. Axel Dahmen
    Replies:
    2
    Views:
    474
    Axel Dahmen
    Nov 29, 2007
  8. David Thielen

    ObjectDataSource method as another ObjectDataSource

    David Thielen, Mar 21, 2006, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    417
    Steven Cheng[MSFT]
    Mar 23, 2006
Loading...