ASP.NET ObjectDataSource Problem...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jojojulian
    New Member
    • Sep 2009
    • 2

    #1

    ASP.NET ObjectDataSource Problem...

    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,
    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 ObjectDataSourc e onto the form, and
    pointed it to the dataset created above.

    I then dropped a GridView on the form, and selected the ObjectDataSourc e
    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):

    [InvalidOperatio nException: The type specified in the TypeName property
    of ObjectDataSourc e 'ObjectDataSour ce1' could not be found.]
    Last edited by jhardman; Sep 30 '09, 07:14 PM. Reason: moved to the ASP.NET forum. It was accidentally posted in the classic ASP forum.
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    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

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

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

      -Frinny

      Comment

      Working...