Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

How to use Third Party dll in SharePoint Visual Studio 2010 web part ?

$
0
0
Hi,

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

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

& 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.

Thanks,

Aasai

Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>