| | |
TagPrefix and Assembly error
Please support our C# 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:
c# 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
c# 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> : : : :
Thanks in advance.
Last edited by csharplearner; Jan 4th, 2009 at 12:30 am.
ASP.NET forum http://www.daniweb.com/forums/forum18.html
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Are you saying you want me to post it in ASP.NET forum ?!
I have already run a search for my query there and did not get any related issues.
May be i have to post the query there fr getting better answers.
Thanx.
I have already run a search for my query there and did not get any related issues.
May be i have to post the query there fr getting better answers.
Thanx.
•
•
Join Date: Aug 2008
Posts: 1,735
Reputation:
Solved Threads: 186
Is the error on your machine or on the webserver you uploaded to? the asp.net forum would be better as this is a generic c# forum, the guys in the asp.net are more dedicated to webservers
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
![]() |
Similar Threads
- Runtime Error (ASP.NET)
- pls reply (Computer Science)
Other Threads in the C# Forum
- Previous Thread: Open file dialog
- Next Thread: Loop through all files in folder
| Thread Tools | Search this Thread |
.net access algorithm animation array barchart bitmap box broadcast c# check checkbox client code combobox control conversion csharp custom database datagrid datagridview dataset datastructure datetime degrees development directrobot display draganddrop drawing encryption enum excel file form format formbox forms function gdi+ hash image index input install java label list listbox mandelbrot math mouseclick mp3 mysql native networking operator packaging path photoshop picturebox pixelinversion post print process programming radians regex remoting richtextbox safari server sleep snooze socket sql statistics stream string table tables tcp text textbox thread time timer treeview update usercontrol usercontrols validation visualstudio webbrowser wfa windows winforms wpf xml






