Home > Work > Deleting the #SharePoint Training Kit site

Deleting the #SharePoint Training Kit site

So you have had your SharePoint environment installed for a while and you installed the SharePoint Training Kit as a site for end users to get used to the idea of lists, libraries, check in / out etc…  but you are a couple of years into your implementation now and you want to clean up sites that aren’t being used anymore.

STK

The SharePoint Training Kit site hasn’t had usage for a while (you can see this from your analytic stats) and you make the decision to get rid of it.

You attempt to delete and you get the following message:

Cannot delete the training web site becasue you are not authorized or other training site depends on this site.  at
Microsoft.SharePoint.Library.SPRequestInternalClass.DeleteWeb(String bstrUrl) 
   at Microsoft.SharePoint.Library.SPRequest.DeleteWeb(String bstrUrl)

Well thanks to this blog post, there is a nice step by step guide:

http://blogs.msdn.com/b/ekraus/archive/2008/05/22/sharepoint-training-kit-cannot-delete-site.aspx

 

Just for my own reference, I will place the steps to resolve here:


The deactivate event in the feature receiver is restricting the DeleteWeb call.  To get past this, remove the two assemblies that are installed in the GAC when you ran the install:

  • Micrososft.SharePointTrainingKit.dll
  • Microsoft.SharePointTraining.Features.dll

1.  Browse to %WINDIR%\assembly
2.  Find the assembly, Right click > Uninstall

  • Run  IISRESET
    You should now be able to delete the three subwebs, and finally the top level web. 
    Note:  To add the DLLs back into the GAC:

1.  Browse to the install location of the Training Kit  (typically  C:\Program Files\Microsoft Office SharePoint Server 2007 Training) 
2.  Copy the MossTraining.wsp  file and past in the same folder (name is not important)
3.  Change the copied *.wsp  file’s extension to  *.cab
4.  Double click on the *.cab file to open it up in an explorer window
5.  Find the two assemblies mentioned above, right click > Copy
6.  Browse back up one level and paste them into your install folder
7.  Open a new explorer window and browse to %WINDIR%\assembly
8.  DRAG the assemblies into the assembly folder  (copy & paste will not work)

  • Run IISRESET

Thanks Eric Kraus, this could have been a nightmare to debug without your blog Smile

Advertisement

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: