The Artima Developer Community
Sponsored Link

.NET Buzz Forum
How to deploy web parts

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Mark Harrison

Posts: 3775
Nickname: mharrison
Registered: Dec, 2003

Mark Harrison is Microsoft UK Systems Engineer focussing on .NET eBiz and Portals
How to deploy web parts Posted: Jul 1, 2005 3:41 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Mark Harrison.
Original Post: How to deploy web parts
Feed Title: Mark Harrison
Feed URL: http://markharrison.co.uk/blog/xml.aspx
Feed Description: .NET Portals, Collaboration and eBiz
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Mark Harrison
Latest Posts From Mark Harrison

Advertisement

From UK Office Dev Con ...

Method 1 - manual

  • Copy assembly DLL to either
    - /bin directory for a given IIS virtual server (e.g., c:\inetpub\wwwroot\bin)
    - Global Assembly Cache (e.g., c:\windows\assembly)
  • Copy DWP file to C:\Inetpub\wwwroot\wpcatalog
  • Copy resources to
    - For GAC-registered parts, C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources
    - For Web Parts in the /bin directory, C:\Inetpub\wwwroot\wpresources
  • Adjust web.config
    - Register as SafeControl
    - Select Code Access Security settings


Method 2: CAB File

  • CAB file should contain
    -Assembly DLL
    -DWP file(s)
    -Manifest.XML
    -Resource files (if needed)
  • CAB won't contain
    - Code Access Security settings
  • Server-side object model has methods for deploying such a CAB file
  • Deploy with STSADM.EXE
    Located in C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\BIN
    Add it to your path
    Stsadm -o addwppack -filename filename [-globalinstall] [-force]


Method 3: MSI File via WPPackager

  • All of the features of CAB file deployment, but with
    - Code Access Security support
    - Ability to uninstall via Control Panel
  • Get WPPackager.EXE from here
  • Add additional files to project for use by WPPackager
  • Run WPPackager after project is built

Read: How to deploy web parts

Topic: Accessing a project-level file at runtime Previous Topic   Next Topic Topic: Zero Email Bounce

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use