You must Sign In to post a response.
  • Category: Sharepoint

    How to use Third Party Dll in Visual Studio Web Part ?

    Are you looking for information on web parts and its usage? Want to know how to use Third Party Dll in Visual Studio Web Part? Then read this thread to learn more about it.


    I have added the following code on the Package.template.xml

    <Assembly Location="ThirdParty.dll" DeploymentTarget="GlobalAssemblyCache">
    <SafeControl Assembly="ThirdParty, Version=, Culture=neutral, PublicKeyToken=3E1E8E3744A5C13F" Namespace="ThirdParty" TypeName="*" Safe="True"/>

    & then added dll from advanced>existing assembly > from Gac-msil folder.

    Even i am getting error, when i am deploy the wsp on other server, dll added correctly & safe control added in web config also. but web part doesn't appear, it is showing the "object reference not set to an instant of object" error.

    Please advice.


  • #736316
    Hi Asaithambi,

    its better to add dll from add reference.
    tell me if i am wrong.?

    Nirav Lalan
    DNS Gold Member
    "If you can dream it, you can do it."

  • Sign In to post your comments