Web Control Library (Managed Code)
The Web Control Library project template creates a DLL. Because the class library is a DLL, you cannot run it directly. You must create a ASP.NET page that embeds the control. For more information, see 00666b07-71d2-4ace-a13c-cc130a3ce372.
To debug a Web Control Library (Method 1)
Open an existing Web Control Library project, or create a new one.
Create a ASP.NET page that embeds the control.
In the Web site that is hosting the ASP.NET test harness, create a subdirectory called /Code.
Copy the source code for the control into the /Code subdirectory.
Open the source code in the /Code subdirectory and set breakpoints.
Open a browser window with a URL that points to the test harness. A breakpoint in the control will be hit, and you can start debugging.
To debug a Web Control Library (Method 2)
Create the host application project and the Web control project in the same solution.
In Solution Explorer, right-click the host application and choose Add Reference.
Add a reference to the web control project.