Unable to display custom control in the toolbox of Visual Studio IDE

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Edward (anonymous_at_discussions.microsoft.com)
Date: 03/25/04


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



Relevant Pages

  • Re: What does this mean(Generics)
    ... What I find interesting about this example is that if you constrain T ... to be a “struct” then you will get a compile error. ... only permitted when comparing a value of a type supplied to a generic type ... then those overloads will be used. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Debugging an ASP.Net application
    ... I've changed the web.config file to match my test server and I compile ... Does the page in browse supposed to access the database and retreive data ... I noticed the production bin file has alot of .dll files. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: help installing DBD
    ... I am using perl version 5.10. ... That's why I am trying to compile it for the last 2 days. ... Do you have the MySQL libraries (.dll files) and header files installed? ... If you do not have a hard requirement to use ActiveState, ...
    (perl.dbi.users)
  • Re: timeouts
    ... Comparing my version of s-osprim.adb and the one from ACT, ... Of course you'll then need to compile s-osprim.adb with the compiler ... option that lets to recompile system components (which I don't recall ...
    (comp.lang.ada)
  • Re: My First Web
    ... The only thing in the BIN folder are the DLL files. ... to compile in Release mode before copying the DLL files! ...
    (microsoft.public.dotnet.framework.aspnet)