I have installed the MS Web controls and ran the Build.bat. I also created a folder named webctrl_client\1_0 under...
c:\inetpub\wwwroot. When I try to build some Web controls, I am still getting an error:
File or assembly name Microsoft.Web.UI.WebControls, or one of its dependencies, was not found.
Error found in Line 2:
<%@ Register TagPrefix="mytree" Namespace="Microsoft.Web.UI.WebControls">
So it can't find the Web control DLL's I assume. What am I doing wrong?
I don't see your Assembly attribute. It's required in order to locate the assembly where the control lives. If that doesn't solve the problem (or if you're already putting that in place), try manually adding the assembly to the GAC, using the .NET Framework configuration tool (inside Administrative Tools). Select Manage the Assembly Cache, then the Add an Assembly to the Assembly Cache. Locate the webcontrols DLL and that should do the trick.
Related Q&A from Daniel Cazzulino
Here Daniel Cazzulino explains how to load a DSL (domain specific language) domain model instance file programmatically. This requires the .NET type ...continue reading
Here we offer a glimpse at 12 of .NET development expert Danny Cazzulino's top ASP.NET questions and answers.continue reading
C# developers should NOT be modifying InitializeComponent method in the code-behind (or any of the variable definitions) by hand.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.