Results 1 to 5 of 5

Thread: Design-time error not finding a UserControl Type?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Design-time error not finding a UserControl Type?

    I've created a WebForm UserControl to be placed in a GridView control. When I try to update a control within the UC, I get the following error: "Type 'apps_Inspection_UserControls_IQ_MicroVu' is not defined. Now 'apps_Inspection_UserControls_IQ_MicroVu' is the UC Class name. I'm not sure why it's giving me this error. I've attached a code screenshot that shows the error message exactly as it looks in the code-behind.

    Thanks,
    Attached Images Attached Images  
    Blake

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,348

    Re: Design-time error not finding a UserControl Type?

    Is that UC in the same project? Is it in the same namespace?

  3. #3
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,606

    Re: Design-time error not finding a UserControl Type?

    I'm not sure if that is the case but in other companies controls you have (either automatically or manually) to define them on handlers or assemblies in web.config .
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: Design-time error not finding a UserControl Type?

    No, the UC is not in the same namespace!
    Blake

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,348

    Re: Design-time error not finding a UserControl Type?

    Quote Originally Posted by blakemckenna View Post
    No, the UC is not in the same namespace!
    Is the namespace imported in that code file? The designer should handle that sort of thing automatically but if there could be a bug that caused the addition of the import to fail or your having changed the namespace later would might account for it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width