The type or namespace name 'ControlDesigner' does not exist

Last post 06-16-2009 6:08 AM by Noodle3827. 11 replies.

Sort Posts:

  • The type or namespace name 'ControlDesigner' does not exist

    11-18-2004, 10:37 PM
    • Member
      305 point Member
    • westdh
    • Member since 10-23-2002, 12:20 PM
    • Medford Oregon
    • Posts 64
    The type or namespace name 'ControlDesigner' does not exist in the class or namespace 'System.Web.UI.Design' (are you missing an assembly reference?)

    using System;
    using System.IO;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.ComponentModel;

    namespace Rainbow.UI.Design
    {
    /// <summary>
    /// Designer support for paging
    /// </summary>
    public class PagingDesigner : System.Web.UI.Design.ControlDesigner

    Help I cannot see why this is failing
  • Re: The type or namespace name 'ControlDesigner' does not exist

    11-18-2005, 6:05 PM
    • Member
      636 point Member
    • irasmith
    • Member since 01-09-2004, 8:36 AM
    • Tennessee
    • Posts 176
    I am getting an error message close to what you reported.  I am trying to install the 10/26/05 Rainbow release locally on my WinXP Pro system where I have IIS and MSDE SQL 2000 running locally.  Here is the full error that I am getting.

    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: CS0246: The type or namespace name 'ControlDesigner' could not be found (are you missing a using directive or an assembly reference?)

    Source Error:

    Line 9:  	/// Designer support for paging
    Line 10: 	/// </summary>
    Line 11: 	public class PagingDesigner : ControlDesigner 
    Line 12: 	{
    Line 13: 		/// <summary>

    Source File: c:\Rainbow\app_code\Rainbow\UI\Design\PagingDesigner.cs    Line: 11
  • Re: The type or namespace name 'ControlDesigner' does not exist

    12-17-2005, 11:32 PM
    I'm having exactly the same problem.  If you have found a solution, would you mind posting it?
  • Re: The type or namespace name 'ControlDesigner' does not exist

    12-20-2005, 11:06 AM
    • Member
      5 point Member
    • xtremity
    • Member since 12-20-2005, 4:04 PM
    • Posts 1

    Go to Add Reference and start adding System.Design. That should be able to solve your problem.

    HNH Innovation, LLC.
    Principal Consultant
    (281)686-3281
  • Re: The type or namespace name 'ControlDesigner' does not exist

    12-21-2005, 8:25 PM
    • Member
      636 point Member
    • irasmith
    • Member since 01-09-2004, 8:36 AM
    • Tennessee
    • Posts 176

    Thanks for the suggestion, I will keep it in mind.

    To help fill in the blanks regarding my posting, the machine I was trying to perform the install on may have not been properly functional when I did the install.  I had recently replaced the hard drive in that computer, reinstalled all of my .NET 1.1 items, then installed .NET 2.0.  I think in my reinstall blitz that took place late in the night, I may have incorrectly registered within IIS the .NET 2.0 and that may have something to do with my problem.

    I say that because I just received a new laptop computer for an early Christmas present to myself.  I installed only my .NET 1.1 related items such as VS.NET 2003 and the like, no .NET 2.0 stuff yet.  I installed the non-2006 release of Rainbow and that worked just fine.  I removed it, and just this evening installed the 2006 Rainbow release and that installed without a problem.  So I am working now with 2006 locally to get a web site created and then I'll upload that to my web hosting space.

    Ira

     

  • Re: The type or namespace name 'ControlDesigner' does not exist

    12-28-2005, 2:19 AM
    • Member
      5 point Member
    • assassinz
    • Member since 12-28-2005, 7:14 AM
    • Posts 1

    i have a same error, i dont know to solve this one :(

    Anyone can help me?

  • Re: The type or namespace name 'ControlDesigner' does not exist

    04-22-2006, 7:26 AM
    • Member
      10 point Member
    • pantotamago
    • Member since 04-22-2006, 11:17 AM
    • Posts 2
    xtremity:

    Go to Add Reference and start adding System.Design. That should be able to solve your problem.

     

    I have a same error when trying to setup Rainbow version 26/10/2005, I don't know the reason is.

    I use WinXP, VS2003, .net framework 2.0; SQL 2000

    Can you show me where is "Add Reference" ?

    when I add System.Design in PagingDesigner.cs, i receive error message:

     

    Compilation Error

    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: CS0234: The type or namespace name 'Design' does not exist in the namespace 'System' (are you missing an assembly reference?)

    Source Error:

    Line 3:  using System.Web.UI.Design;
    Line 4:  using Rainbow.UI.WebControls;
    Line 5:  using System.Design; // them vao
    Line 6:  namespace Rainbow.UI.Design
    Line 7:  {


    Source File: d:\STUDY\ASPNET_sample\Rainbow\app_code\Rainbow\UI\Design\PagingDesigner.cs    Line: 5

    Help me, I'm a newbie. Thanks so much.

  • Re: The type or namespace name 'ControlDesigner' does not exist

    05-03-2007, 5:59 AM
    • Member
      4 point Member
    • cdutoit
    • Member since 11-30-2006, 12:38 PM
    • Posts 5

    As for the compile error you mentioned, I think the problem is likely
    caused by the required assemblies not
    referenced in your project. Just by adding the "using ..." statement is not
    enought. You should also reference the required assemblies via the "Add Reference" function in the VS.NET IDE.

     You need to add:

    System.Design.dll

    In my case it was already there, but re-adding it fixed the problem for me.


  • Re: The type or namespace name 'ControlDesigner' does not exist

    05-03-2007, 6:32 AM
    • Member
      2 point Member
    • quanghx
    • Member since 05-23-2006, 9:01 AM
    • Việt nam
    • Posts 1
    It fixed the problem for me too, thanks!
    maly.moon
  • Re: The type or namespace name 'ControlDesigner' does not exist

    01-19-2008, 5:32 AM
    • Member
      2 point Member
    • gaspoda
    • Member since 01-19-2008, 10:28 AM
    • Posts 2

    I had not same but similar problem.I had Projects A and B in solution, A referenced B and this error was displayed:

    The type or namespace name 'XXX' does not exist in the class or namespace 'B' (are you missing an assembly reference?)
     
    The problem was that there was error in project B that caused B to be not built. See your output window for built errors.

  • Re: The type or namespace name 'ControlDesigner' does not exist

    11-20-2008, 3:39 AM
    • Member
      7 point Member
    • hungtm
    • Member since 07-24-2008, 2:38 AM
    • Posts 13

     I have the same problem. hix. please share your solution if you found it.

    Thanks

    Never give up, never quit
  • Re: The type or namespace name 'ControlDesigner' does not exist

    06-16-2009, 6:08 AM
    • Member
      2 point Member
    • Noodle3827
    • Member since 06-16-2009, 6:03 AM
    • Posts 1

     Add the following to your web.config

            <compilation debug="false" strict="false" explicit="true">  <!-- or whatever attributes you want -->
                <assemblies>
                    <!-- you may have other assemblies here -->
                    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                </assemblies>
            </compilation>

Page 1 of 1 (12 items)