Unable to display custom control in the toolbox of Visual Studio IDE
From: Edward (anonymous_at_discussions.microsoft.com)
Date: 03/25/04
- Next message: charles b black: "Re: Unable to display custom control in the toolbox of Visual Studio IDE"
- Previous message: charles b black: "opening a asp.net web application that uses custom server control"
- Next in thread: charles b black: "Re: Unable to display custom control in the toolbox of Visual Studio IDE"
- Reply: charles b black: "Re: Unable to display custom control in the toolbox of Visual Studio IDE"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 25 Mar 2004 15:26:06 -0800
Hello,
I'm learning to develop custom server controls and right now I'm at the stage of creating custom controls with Design-Time attributes. Currently, when I compile the 2 .cs files into a library, I can't get the Visual Studio IDE to import the control into the toolbox. It gives me the error: "There are no components in '... .dll' that can be placed on the toolbox.".
Here's the line I use to compile:
csc /out:ServerControl.dll /t:Library /r:System.dll /r:System.Web.dll CustomControl.cs CustomControlModule.cs
The weird thing is if I create a new WebControl Library in the Visual Studio IDE, include the two files CustomControl.cs and CustomControlModule.cs into the project and then build it, then, importing the dll into the toolbox WILL work and I'm not getting the "There are no components" error.
I also tried comparing the two dll files in IDLSAM.EXE to see if there's a difference between the Assembly I generated manually and the assembly Visual Studio created, but there's absolutely no difference at all.
Is there anything I'm doing wrong? Maybe there are extra options I need to add in the csc line, but I just don't know which one.
Thanks for the help!!
Edward
- Next message: charles b black: "Re: Unable to display custom control in the toolbox of Visual Studio IDE"
- Previous message: charles b black: "opening a asp.net web application that uses custom server control"
- Next in thread: charles b black: "Re: Unable to display custom control in the toolbox of Visual Studio IDE"
- Reply: charles b black: "Re: Unable to display custom control in the toolbox of Visual Studio IDE"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|