Remote SharePoint code release and App Pool recycling

Search

Accessible SharePoint WebSites
Download ARF

Remote SharePoint code release and App Pool recycling

http://blog.thekid.me.uk

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)

Posted by Vincent Rothwell on Friday, 23 Nov 2007 17:22  - 5 Comments
Orininally printed from http://thekid.me.uk - Copyright Vincent Rothwell 2007
 

Comments

Sunday, 27 Jul 2008 10:37 by John Haigh
Hi, I downloaded zip file but did not see the file GacUtil.aspx inside the zip file. GacUtil.aspx appears to be missing. Can you reupload? John

Sunday, 27 Jul 2008 10:37 by Vince
Sorry John (and everyone else), I have uploaded the correct ZIP file. -Vince

Sunday, 27 Jul 2008 10:37 by John McCaffrey
Vince, i get an 'Unknown error' when I try to load the aspx file in a browser. i am running as the Admin on the box, and sharepoint. Is there any other setup steps that need to be taken, other than just copying the aspx file into 12\template\layouts ?

Sunday, 27 Jul 2008 10:37 by Will du Preez
Hey Vince Have you ever looked at PSExec - part of the SysInterals toolset? I generally use that to execute GACUTIL remotely. It's obviously not suitable for all scenario (you need to have UNC access to the server) but should work for most development environments. Will

Tuesday, 16 Mar 2010 12:47 by saif
Thanks a lot for sharing!



Url

Email

Comments