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. Web Development
  3. ASP.NET
  4. Can not find TypeName property of ObjectDataSource???

Can not find TypeName property of ObjectDataSource???

Scheduled Pinned Locked Moved ASP.NET
helpquestion
6 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.
  • J Offline
    J Offline
    JimFeng
    wrote on last edited by
    #1

    After coverting 2005 Web Site Project to 2005 Web Application Project, I got the following errors on all ObjectDataSource: The type specified in the TypeName property of ObjectDataSource 'odsName' could not be found. Any help is appreciated.

    A 1 Reply Last reply
    0
    • J JimFeng

      After coverting 2005 Web Site Project to 2005 Web Application Project, I got the following errors on all ObjectDataSource: The type specified in the TypeName property of ObjectDataSource 'odsName' could not be found. Any help is appreciated.

      A Offline
      A Offline
      Albert Pascual
      wrote on last edited by
      #2

      Missing using System.Data; ? Or the DLL? Cheers Al My eMail control My Blog

      J 1 Reply Last reply
      0
      • A Albert Pascual

        Missing using System.Data; ? Or the DLL? Cheers Al My eMail control My Blog

        J Offline
        J Offline
        JimFeng
        wrote on last edited by
        #3

        After I converted to 2005 web application project, the App_Code folder was changed to Old_App_Code. My public class for TypeName property of ObjectDataSource is located on this folder.

        M 1 Reply Last reply
        0
        • J JimFeng

          After I converted to 2005 web application project, the App_Code folder was changed to Old_App_Code. My public class for TypeName property of ObjectDataSource is located on this folder.

          M Offline
          M Offline
          minhpc_bk
          wrote on last edited by
          #4

          Hi Jim, Have you gone through this tutorial[^]? Do you compile the project before running? Do you get the error when you build the project after converting or at runtime?

          J 1 Reply Last reply
          0
          • M minhpc_bk

            Hi Jim, Have you gone through this tutorial[^]? Do you compile the project before running? Do you get the error when you build the project after converting or at runtime?

            J Offline
            J Offline
            JimFeng
            wrote on last edited by
            #5

            I exactly followed this tutorial. There is no error when I rebuild the application.

            M 1 Reply Last reply
            0
            • J JimFeng

              I exactly followed this tutorial. There is no error when I rebuild the application.

              M Offline
              M Offline
              minhpc_bk
              wrote on last edited by
              #6

              Your class's now only in the Old_App_Code folder, or you also keep another copy of the class in the App_Code folder? Do you use the IIS or the built-in server to do testing? I have tried converting a web site with a datasource control and a custom business class in App_Code folder, and it's working after the conversion, perhaps my example is much simpler than yours. Are you sure that the output assembly in the bin folder contains your custom business class?

              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