Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ObjectDataSource Refresh Schema Error

Thread Tools

ObjectDataSource Refresh Schema Error
Posts: n/a
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

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.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How Can I retrieve Column/Schema Information From ObjectDataSource Axel Dahmen ASP .Net 2 11-29-2007 03:20 PM
AJAX + ObjectDataSource Refresh Issue Phillip Ian ASP .Net 0 05-02-2007 12:44 PM
ObjectDataSource method as another ObjectDataSource David Thielen ASP .Net Web Controls 3 03-23-2006 01:50 AM
ObjectDataSource's underlying data/schema =?Utf-8?B?RGljaw==?= ASP .Net 2 03-01-2006 08:26 AM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM