How to deploy SharePoint Web Parts from a Visual Studio Development Environment to Production

Posted on 2011-10-10
Last Modified: 2012-05-12
Hi all,

When developing Sharepoint 2010 Web Parts with Visual Studio, I understand you need to have SharePoint installed on the same development box. (This all works fine) Now when we need to deploy the solution/ Web part to our Production SharePoint server do we simply export the web part and upload through Sharepoint? or do we need Visual Studio on the Production box also?

And should we deploy using the sandbox option?

We managed to deploy web part using the sandbox option but when our developer made changes to the solution and redeployed we still only see the old web part. (We deactivated the old web part and even deleted it ) It's as if it is being cached. Any ideas?
Question by:pancho15
    LVL 18

    Accepted Solution

    First there are several ways to deploy web part to production. One way is manual way, you can copy dll of your webpart to production and then upload webpart file to SharePoint web part library (I guess this is what you did).
    The other way (the better way) is to deploy web part inside wsp package. You should build wsp package in Visual studio, copy package to production server and deploy package usinf PowerShell or stsadm (

    In both case you should if you want to deploy webpart as sandbox or not (this is security question). As for caching, the webpart dll may be cached in w3wp process, did you reset iis after dll update?
    LVL 5

    Expert Comment


    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now