Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. WebPart Error

WebPart Error

Scheduled Pinned Locked Moved SharePoint
sharepointdesigndockerhelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Steve Holdorf
    wrote on last edited by
    #1

    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?

    N I 2 Replies Last reply
    0
    • S Steve Holdorf

      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?

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • S Steve Holdorf

        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 Offline
        I Offline
        Ibrahim Hebish
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups