Martin Hinshelwood's ALM Blog

A Scottish software developer: SSW Solution Architect, Microsoft Visual Studio ALM MVP & Scrum Developer Trainer

  Home  |   Contact  |   Syndication    |   Login
  410 Posts | 10 Stories | 577 Comments | 57 Trackbacks

News

www.SSW.com.auSSW was the first company in the world outside of Microsoft to deploy Visual Studio 2010 Team Foundation Server to production, not once, but twice.

Team Foundation Server

Visual Studi2010 ALM SSW provides expert Visual Studio ALM guidance including installation, configuration and customisation through our four Microsoft Visual Studio ALM MVP’s in three countries; Australia, Beijing and the UK. They have experience deploying to small development shops all the way through to large blue chips.

Call us on +(44) 141 416 0993 or +(61) 2 9953 3000 to get started!

Professional Scrum Developer Training

Professional Scrum Developer Training SSW has six Professional Scrum Developer Trainers who specialise in training your developers in implementing Scrum with Microsoft's Visual Studio ALM tools.

Call us on +(44) 141 416 0993 or +(61) 2 9953 3000 to get started!

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Personal








Locations of visitors to this page

Twitter












Tag Cloud


Article Categories

Archives

Post Categories

Image Galleries

Blogs I read

Blogs of Friends

Personal

Projects

VSTS

If you are trying to get team server to talk to another Sharepoint farm this is something to watch out for. I fell into this one myself, and now my American colleagues have hot the same problem (I have changed things like server, account and company names to protect the, erm, servers?). The key things to look for in the log file are the creation details:

2007-08-17 13:06:33Z | Module: WSS | Thread: 7 | Language id: 1033
2007-08-17 13:06:36Z | Module: WSS | Thread: 7 | Verifying site template exists on the server using http://rddotnettech.amrs.win.rddotnet.com:21617/_vti_bin/Sites.asmx
2007-08-17 13:06:45Z | Module: WSS | Thread: 7 | Creating site with the following parameters
2007-08-17 13:06:45Z | Module: WSS | Thread: 7 | Admin Url: http://rddotnettech.amrs.win.rddotnet.com:21617/_vti_adm/admin.asmx
2007-08-17 13:06:45Z | Module: WSS | Thread: 7 | Site Url: http://rddotnettech.amrs.win.rddotnet.com/sites/SDLC-QA/Test RD 08-17-2007 1305
2007-08-17 13:06:45Z | Module: WSS | Thread: 7 | Site Title: Test RD 08-17-2007 1305
2007-08-17 13:06:45Z | Module: WSS | Thread: 7 | Site Description: This team project was created based on the 'RD SDLC Process Template for CMMI Process Improvement - v2.0' process template.
2007-08-17 13:06:45Z | Module: WSS | Thread: 7 | Lcid: 1033
2007-08-17 13:06:45Z | Module: WSS | Thread: 7 | Template: _GLOBAL_#2
2007-08-17 13:06:45Z | Module: WSS | Thread: 7 | Owner Login: AMRS\aperson
2007-08-17 13:06:45Z | Module: WSS | Thread: 7 | Owner Name: Person, Any(CT)
2007-08-17 13:06:45Z | Module: WSS | Thread: 7 | Owner Email: Any_Person@rddotnet.com
2007-08-17 13:06:45Z | Module: WSS | Thread: 7 | Portal Url:
2007-08-17 13:06:45Z | Module: WSS | Thread: 7 | Portal Name:

These details will help you debug the error. As you can see above there are details for the Sharepoint portal to be created and the location of the Sharepoint sites. Check the actual error message which is always buried  in the log file:

'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Microsoft.TeamFoundation.Proxy.Portal.Admin.CreateSite(String Url, String Title, String Description, Int32 Lcid, String WebTemplate, String OwnerLogin, String OwnerName, String OwnerEmail, String PortalUrl, String PortalName)
   at Microsoft.VisualStudio.TeamFoundation.WssSiteCreator.CreateSite(WssSiteData siteCreationData, ProjectCreationContext context)
   at Microsoft.VisualStudio.TeamFoundation.WssSiteCreator.Execute(ProjectCreationContext context, XmlNode taskXml)
---begin Exception entry---
Time: 2007-08-17 13:06:46Z
Module: Engine
Event Description: TF30162: Task "SharePointPortal" from Group "Portal" failed
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: The Project Creation Wizard encountered an error while uploading documents to the Windows SharePoint Services server on uswmapsdlcq01.amrs.win.ml.com.
Exception Details: The Project Creation Wizard encountered a problem while uploading
documents to the Windows SharePoint Services server on teamq01.amrs.win.rddotnet.com.
The reason for the failure cannot be determined at this time.
Because the operation failed, the wizard was not able to finish
creating the Windows SharePoint Services site.
Stack Trace:
   at Microsoft.VisualStudio.TeamFoundation.WssSiteCreator.Execute(ProjectCreationContext context, XmlNode taskXml)
   at Microsoft.VisualStudio.TeamFoundation.ProjectCreationEngine.TaskExecutor.PerformTask(IProjectComponentCreator componentCreator, ProjectCreationContext context, XmlNode taskXml)
   at Microsoft.VisualStudio.TeamFoundation.ProjectCreationEngine.RunTask(Object taskObj)
--   Inner Exception   --
Exception Type: System.Web.Services.Protocols.SoapException
Exception Message: Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.
SoapException Details: <detail><errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">Another site already exists at http://rddotnettech.amrs.win.rddotnet.com. Delete this site before attempting to create a new site with the same URL, choose a new URL, or create a new inclusion at the path you originally specified.</errorstring></detail>

From this message I have highlighted the meaningfully parts in bold. These are the things that will help you identify the problem and rectify it. In this case the Team Foundation Server Project Creation Wizard is trying to create a sub site under what it thinks is a managed path of http://rddotnettech.amrs.win.rddotnet.com/sites/.

Now the default setup for Sharepoint is that there is a managed path called "Sites" that sits under the main directory and this is the default for creating sub sites using TFS. But in this case there is already a site created in Sharepoint called "Sites" that is a portal to the other sites in Sharepoint including site maps and the like. (try your equivalent of http://rddotnettech.amrs.win.rddotnet.com/sites/ to see what is there. You will also need to check the Sharepoint Administration site for the settings. To do this you need to go to the Sharepoint Administraion site:

image

And click on "Application Management" and then on "Define managed paths".

image

You should then see a list of the defined managed paths for the particular application (1) and you can change the application that you are looking at (2).

image

 

What needs to be done is to choose a new managed path as this one is taken and to add it to the Sharepoint server. Make sure that you check the server for sites of the same name, you could use "TFSProjects" so as not to get an overlap.

Once you have added this Managed Path you will need to modify TFS to create sites under that path. To do this please refer to my previous post "Team Foundation Server Error TF30177 : Team Project Creation Failed" which tells you how to update the project references.

 

Well that's it, debugging team server errors is fun, but not for the faint hearted...

 

posted on Monday, August 20, 2007 4:23 PM
Comments have been closed on this topic.