WebPart Error
-
I have created a SharePoint WebPart and added the Telerik.Web.UI to it's references. When I try to open the webpart in SP I get the error: Could not load file or assembly "Telerik.Web.UI" or one of it's dependencies. I have added the Telerik dll to the webpart's bin directory and added a referance in the project. Also, I have added the <@References ... tag to the beginning of the ascx file and added a using Telerik.Web.UI in the ascx.cs file. Note that a webpart is just a user defined control loaded into the WebPart's controls container. This is my first time doing a webpart is there something I'm missing?
-
I have created a SharePoint WebPart and added the Telerik.Web.UI to it's references. When I try to open the webpart in SP I get the error: Could not load file or assembly "Telerik.Web.UI" or one of it's dependencies. I have added the Telerik dll to the webpart's bin directory and added a referance in the project. Also, I have added the <@References ... tag to the beginning of the ascx file and added a using Telerik.Web.UI in the ascx.cs file. Note that a webpart is just a user defined control loaded into the WebPart's controls container. This is my first time doing a webpart is there something I'm missing?
You need to add a SafeControl entry for the assembly. The webpart should be deployed via a solution package that would make the necessary entries automatically.
Failure is not an option; it's the default selection.
-
I have created a SharePoint WebPart and added the Telerik.Web.UI to it's references. When I try to open the webpart in SP I get the error: Could not load file or assembly "Telerik.Web.UI" or one of it's dependencies. I have added the Telerik dll to the webpart's bin directory and added a referance in the project. Also, I have added the <@References ... tag to the beginning of the ascx file and added a using Telerik.Web.UI in the ascx.cs file. Note that a webpart is just a user defined control loaded into the WebPart's controls container. This is my first time doing a webpart is there something I'm missing?
1- register the Telerik dll in the '.ascx' file with fully qualified name of the assembly.
<%@ Register Namespace=" namespace used " Assembly=" assembly full defined with name and public key token" TagPrefix="prefix used in your controls" %>
2- create new folder in your solution and add the Telerik dll in this folder. 3- Open your solution 'package.package' file. >>Select Advanced in package designer >>Press Add button then Add Existing Assembly to add assembly to the package. >>Navigate to the folder you created before in the solution and select the Telerik dll. >> Select Deployment Target for the dll 'GlobalAssemblyCache' or 'WebApplication'. >> Under Safe Controls click add button and enter your assembly name and Namespace >>Deploy your solution and enjoy :)
Sincerely, Ibrahim Hebish | SoftwareDeveloper | Portal Services | EX EgyptNetwork(Com) | GlobeSoft(Com) M: +201281744594 Email: pronto.cs@gmail.com