Remote SharePoint code release and App Pool recycling

by Shawn 12. November 2010 07:19

This article is a repost from here

Working locally with DLLs deployed to the GAC is straight forward enough and can be made easy with post build scripts. However, when you are working with a remote server and the DLL needs to be in the GAC its a bit more tricky...particularly if you cannot get a file share to the machine.

Copying the DLL, remoting into the server, adding the DLL to the GAC and recycling the application pool all takes time...this is a solution to the problem.

image

The solution is an ASPX page in the layouts folder. This allows you to upload a file (to c:\temp) and optionally register it in the GAC (if it is a DLL). Once it has been added to the GAC you can then recycle the application pool of the current application.

All the c# code is in the ASPX page and so to install you just need to copy the file to the 12\TEMPLATE\LAYOUTS folder and access the file at http://<your site>/_layouts/GacUtil.aspx ... this also means you can easily modify the code to suit your needs.

You will need to be a Farm administrator to access the page. You also need to be a local administrator to add the file to the GAC and write the file to c:\temp...this should be possible on development machine though :-)

Download gacutil.aspx (zipped)

 

Tags:

SharePoint

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

Powered by BlogEngine.NET 2.5.0.6
Theme by Mads Kristensen | Modified by Mooglegiant

About the author

As an individual with a passion for technology and knolwedge I have long enjoyed being part of the computer industry as both a systems architect and infrastructure engineering.  This blog is way for me to share some thoughts. ideas, and ponderings on all of these things.

Calendar

<<  May 2012  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

View posts in large calendar

Calendar Of Posts