Microsoft KB Archive/939306

= How to add a custom Web Part that was created by using Visual Basic to a SharePoint Server 2007 Web site =

Article ID: 939306

Article Last Modified on 9/5/2007

-

APPLIES TO


 * Microsoft Office SharePoint Server 2007

-



INTRODUCTION
This article describes how to add a custom Web Part that was created by using Microsoft Visual Basic to a Microsoft Office SharePoint Server 2007 Web site.



MORE INFORMATION
To add a custom Web Part to a SharePoint Server 2007 Web site, follow these steps:  On the computer that is running SharePoint Server 2007, copy the compiled .dll file to the Web application folder. For example, copy the compiled .dll file to the following folder:

\Inetpub\wwwroot\wss\VirtualDirectories\ \bin

Note  is a placeholder for the name of the compiled .dll file. is a placeholder for the name of the Web application folder. In the \Inetpub\wwwroot\wss\VirtualDirectories\ folder, right-click the Web.config file, click Open With, and then click Notepad. In the Web.config file, add the following element under the  element:



 Click File, and then click Save. Start Windows Internet Explorer, and then visit the SharePoint Server 2007 Web site. On the SharePoint Server 2007 Web site, click Site Actions, and then click Site Settings.</li> On the Site Settings page, click Web Parts under Galleries.</li> On the Web Part Gallery page, click New.</li> On the Web Part Gallery: New Web Parts page, click to select the check box next to the Web Part that you want to add, and then click Populate Gallery.</li> Visit the SharePoint Server 2007 Web site, click Site Actions, and then click Edit Page.</li> On the SharePoint Server 2007 Web site, click Add a Web Part.</li> In the Add Web Parts dialog box, expand All Web Parts, click to select the check box next to the Web Part that you want to add, and then click Add.</li> To publish your changes, click Publish.</li></ol>

Keywords: kbhowto kbinfo kbexpertiseinter KB939306

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.