Skip to main content

Cloud

Where to stick your WebPart….

WebPart Installation

For SPS WebPart installation purposes we need the .cab file from the setup project and the .dll assembly file from the WebPart project.

As is the case with many things in the world of .Net, there are a number of different ways to install the webpart. I have standardized in the following method that utilizes the command-line utility STSADM.exe.

For a typical SharePoint install this handy little app lives in C:Program FilesCommon FilesMicrosoft Sharedweb server extensions60BIN

Open a command prompt in this directory or add it to your path variable.

It is common to have a set location for resources used by your code in SharePoint webparts, and for this example I recommend c:InetPubwwwrootbin.

Copy the assembly .dll and setup .cab files to this directory.

Using the Microsoft..Net Framework 1.1 Configuration utility, add the assembly .dll file to the Global Assembly Cache.

From the command-line type:

Stsadm.exe -o addwppack -filename c:InetPubwwwrootbin[setup project name].cab -force -globalinstall

A success is indicated by an onscreen message.

Once the webpart is installed correctly it is ready for use.

In the Add Web Parts Panel, select the Virtual Server Galley if you WebPart does not appear in the Web Part List.

Drag the Web Part into the zone of interest on the page you are editing.

Enjoy.

The next blog will get back to basic and delve into better and more familiar ways for ASP.Net developers.

Can hardly wait.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

PointBridge Blogs

More from this Author

Follow Us