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 { /// /// Designer support for paging /// public class PagingDesigner : System.Web.UI.Design.ControlDesigner Help I cannot see why this is failing
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>
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.
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: {
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.
westdh
Member
305 Points
65 Posts
The type or namespace name 'ControlDesigner' does not exist
Nov 19, 2004 02:37 AM|LINK
irasmith
Member
636 Points
176 Posts
Re: The type or namespace name 'ControlDesigner' does not exist
Nov 18, 2005 10:05 PM|LINK
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:
Source File: c:\Rainbow\app_code\Rainbow\UI\Design\PagingDesigner.cs Line: 11
hardlyNotica...
Member
5 Points
1 Post
Re: The type or namespace name 'ControlDesigner' does not exist
Dec 18, 2005 03:32 AM|LINK
xtremity
Member
5 Points
1 Post
Re: The type or namespace name 'ControlDesigner' does not exist
Dec 20, 2005 03:06 PM|LINK
Go to Add Reference and start adding System.Design. That should be able to solve your problem.
Principal Consultant
(281)686-3281
irasmith
Member
636 Points
176 Posts
Re: The type or namespace name 'ControlDesigner' does not exist
Dec 22, 2005 12:25 AM|LINK
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
assassinz
Member
5 Points
1 Post
Re: The type or namespace name 'ControlDesigner' does not exist
Dec 28, 2005 06:19 AM|LINK
i have a same error, i dont know to solve this one :(
Anyone can help me?
[URL=http://img387.imageshack.us/my.php?image=rainbowerror8fp.jpg][IMG]http://img387.imageshack.us/img387/9012/rainbowerror8fp.th.jpg[/IMG][/URL]
pantotamago
Member
10 Points
2 Posts
Re: The type or namespace name 'ControlDesigner' does not exist
Apr 22, 2006 11:26 AM|LINK
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:
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.
cdutoit
Member
5 Points
7 Posts
Re: The type or namespace name 'ControlDesigner' does not exist
May 03, 2007 09:59 AM|LINK
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.
quanghx
Member
2 Points
1 Post
Re: The type or namespace name 'ControlDesigner' does not exist
May 03, 2007 10:32 AM|LINK
gaspoda
Member
2 Points
2 Posts
Re: The type or namespace name 'ControlDesigner' does not exist
Jan 19, 2008 09:32 AM|LINK
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.
build error assembly reference namespace