Connecting Tech Pros Worldwide Help | Site Map

ASP.NET ObjectDataSource Problem...

Newbie
 
Join Date: Sep 2009
Posts: 2
#1: Sep 26 '09
I am having exactly the same problem Mr. Fischer reported below. Except in my case the page loads without any problem when run from my computer (localhost).

Any suggestion would be appreciated.

Thanks,
Quote:
Bryce Fischer
Guest

Posts: n/a
I've got a simple (I think) asp.net application.

I've created a DataSet in App_Code/ItemDataSet.xsd. Tested connection,
seemed to work fine.

In my ASPX file, I first dropped an ObjectDataSource onto the form, and
pointed it to the dataset created above.

I then dropped a GridView on the form, and selected the ObjectDataSource
I created above. In the Design view it seems to be at least loading the
columns (if not the data) correctly.

When I try to access on the server, I am getting the following error
(full stack trace at bottom of message):

[InvalidOperationException: The type specified in the TypeName property
of ObjectDataSource 'ObjectDataSource1' could not be found.]
jhardman's Avatar
Moderator
 
Join Date: Jan 2007
Location: logan, utah
Posts: 2,690
#2: Sep 30 '09

re: ASP.NET ObjectDataSource Problem...


JoJo,

I moved your post over to the ASP.NET forum, it was accidentally posted inthe classic ASP forum. Hopefully you will get some answers here.

Jared
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,066
#3: Oct 1 '09

re: ASP.NET ObjectDataSource Problem...


What is the Type that you are trying to display...and what have you specified for the TypeName property?

-Frinny
Reply

Tags
objectdatasource error