We develop WSP solutions and embed the DLLs within the WSP and give to our customers along with power-shell script to deploy the solution on their farm.

Today, we have purchased a WebPart from an Software company but they have provided to us a WSP along with 3 DLLS. Now, what would be the installation procedure to deploy this wsp?

1) How do I install it?;

2) Do I manually run gacutil? or drag and drop DLLs into the assembly folder?;

3) And do I hardcode safe controls under web.config?

Also, isnt it a bad practice to keep DLLs outside the WSP? Please guide best practice and steps to install this webpart so we can use it in the site UI.

1 Answer 1


Normally all the artifacts should be part of the WSP itself. You should be simply Adding the solution and then deploying it. No need to manually adding the dlls to GAC and adding safe control entries. You should get in contact with the company from whom you purchased the web part. They can provide you better guidance. However, I remember the days when I started working on WSS and had not heard of the tools like WSPBuilder, Visual Studio extensions etc. And I used to perform it all manually as you mentioned in your steps.

  • We have been chasing them about this issue, sadly there is no response and we would like to do it manually, could you provide the steps or are the steps I mentioned the right method..
    – variable
    Commented Feb 10, 2014 at 12:30
  • In that case the steps you mentioned are right. Commented Feb 10, 2014 at 12:33
  • OK, so Step1:Run gacutil.exe for the 3 dlls. Then, Step2:Add the 3 dlls name as safe control in the web.config. Can you reassure this is correct plz.
    – variable
    Commented Feb 10, 2014 at 12:35
  • 1
    If all the webpart contains is few dlls and no user controls which reside in control templates like for visual webpart or anything similar, then above steps should work. Commented Feb 10, 2014 at 12:40
  • And by the way you should test in Dev environment first just in case anything goes wrong Commented Feb 10, 2014 at 12:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.