Skip to main content

Posts

Showing posts with the label Web part deployment

Different ways to deploy webpart

Dear All,  If you are facing a problem to deploy SharePoint through one way, Than Here I am writing different  ways to deploy the Customized Web Part Under SharePoint Portal Here we go....  When you are done developing a WebPart, you need to deploy it to the SharePoint server. However, depending on your server setup, you may have to use specific deployment methodology and that is why it is important to know your options. This post describes different ways to achieve this goal. Basic understanding Whatever method you use to develop your WebPart, you will always end up with a WebPart DLL and in some cases you will have WSP file (both of these files are in debug folder of your project). It is the DLL file that plays a key role in getting your WebPart inside SharePoint server. Ways to deploy a WebPart There are more ways but i mentioned here four ways we can deploy a WebPart on SharePoint server that I will cover in this post: Using Visual Studio to dep...

Power-Shell scripts to install your package to your SharePoint Server.

To Add the Solution in SharePoint Add-SPSolution C:\YourFolder\SampleWebPart.wsp To Update your Solution in  SharePoint you will need this if you want to update the Webpart that is already installed Update-SPSolution –Identity SampleWebPart.wsp –LiteralPath C:\YourFolder\SampleWebPart.wsp –GACDeployment To Install the Solution to your  SharePoint Install-SPSolution -identity SampleWebPart.wsp -WebApplication http://yoursharepointserver -GACDeployment ---- If you want to install in all web application in one go Install-SPSolution -identity City_Wise_Requirements.wsp -AllWebApplications -GACDeployment Note: After install you need to populate the webpart by following steps  1) Go to site setting (Main site collection in case if you are in subsite)  2) Click on Under Web Design Gallery  > Web part 3) Click New Document 4) Select Web part and then click on populate button Now if something went horribly wrong or you just want to unin...