| | |
Tag Prefix and Assembly error
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
Hi all,
I am trying to create Web Controls and i am getting this error:
Could not load file or assembly 'Microsoft.Web.UI.WebControls' or one of its dependencies. The system cannot find the file specified.
i inserted all respective directives and namespaces at the begining of the page and also in the web.config file. But it still says it cannot find the file specified.
My code goes as following:
i inserted the tagprefix in the page elements section of the web.config file too as following
Thanks in advance.
I am trying to create Web Controls and i am getting this error:
Could not load file or assembly 'Microsoft.Web.UI.WebControls' or one of its dependencies. The system cannot find the file specified.
i inserted all respective directives and namespaces at the begining of the page and also in the web.config file. But it still says it cannot find the file specified.
My code goes as following:
ASP.NET Syntax (Toggle Plain Text)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="toolbars.aspx.cs" Inherits="toolbars" %> <%@ Import Namespace="Microsoft.Web.UI.WebControls" %> <%@ Register TagPrefix="webControls" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %> <html > <head runat="server"> <title>Untitled Page</title> <script language="c#" runat="server"> public void buttonSelected(Object sender, EventArgs e) { string name; name = sender.ToString(); Response.Write(name); } </script> </head> <body> <form id="form1" runat="server"> <div> <h1>USING TOOLBAR ELEMENTS</h1> <webControls:Toolbar id="toolbar" runat="server" onButtonClick="buttonSelected" > <webControls:ToolbarButton id="home" Text="Home" /> <webControls:ToolbarButton id="call" Text="Callus" /> </webControls:Toolbar> </div> </form> </body> </html>
i inserted the tagprefix in the page elements section of the web.config file too as following
ASP.NET Syntax (Toggle Plain Text)
: : : : <pages enableViewStateMac="false" > <controls> <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add tagPrefix="webControls" namespace="Microsoft.Web.UI.WebControls" assembly="Microsoft.Web.UI.WebControls" /> </controls> </pages> : : : :
Last edited by csharplearner; Jan 4th, 2009 at 12:04 pm.
•
•
Join Date: Jul 2008
Posts: 49
Reputation:
Solved Threads: 7
The problem is exactly what the error says. The compiler cannot find Microsoft.Web.UI.WebControls in your project. I'm assuming this is the library for IE controls because i don't recognize it as part of the standard libraries. Hence, you probably need to download it, locate it on your machine and reference it in your project.
•
•
•
•
The problem is exactly what the error says. The compiler cannot find Microsoft.Web.UI.WebControls in your project. I'm assuming this is the library for IE controls because i don't recognize it as part of the standard libraries. Hence, you probably need to download it, locate it on your machine and reference it in your project.
I downloaded trial version of Visual Studio 2008 Professional.. so doesnt it come with the package?Can u please tell how to check if a particular library is present in the package or not?!
![]() |
Other Threads in the ASP.NET Forum
- Previous Thread: Roles.IsUserInRole() can't get it work !!!
- Next Thread: Login Controls
| Thread Tools | Search this Thread |
.net 2.0 activexcontrol advice ajax alltypeofvideos appliances asp asp.net bc30451 beginner bottomasp.net browser button c# c#gridviewcolumn cac checkbox commonfunctions compatible confirmationcodegeneration content courier css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock development dgv dropdownlist dynamically edit fileuploader fill flash formatdecimal forms formview gridview gudi homeedition iframe iis javascript jquery listbox microsoft mono mouse mssql multistepregistration news numerical objects opera panelmasterpagebuttoncontrols radio ratings redirect registration relationaldatabases reportemail rotatepage schoolproject search security serializesmo.table sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 suse textbox tracking treeview unauthorized validatedate validation vb.net video videos virtualdirectory vista visual-studio visualstudio web webapplications webarchitecture webdevelopemnt webprogramming webservice xml xsl youareanotmemberofthedebuggerusers





