Estabamos creando un nuevo proyecto en el TFS 2008 y nos aparece el siguiente mensaje:
TF30177: Team Project Creation Failed
Error: Unable to connect to Windows SharePoint Services at {servidor}
Luego de leer el log, el error se produce aqui…
Lo que sigue del log…
Event Description: TF30207: Initialization for plugin "Microsoft.ProjectCreationWizard.Portal" failed
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: Unable to connect to the Windows SharePoint Services at {nombreServidor}
Exception Details: The Project Creation Wizard was not able to connect to the Windows SharePoint Services at {nombreServidor}. The reason for the failed connection cannot be determined at this time. Because the connection failed, the wizard was not able to complete creating the Windows SharePoint Services site.
Stack Trace:
en Microsoft.VisualStudio.TeamFoundation.WssSiteCreator.CheckPermissions(ProjectCreationContext ctxt)
en Microsoft.VisualStudio.TeamFoundation.WssSiteCreator.Initialize(ProjectCreationContext context)
en Microsoft.VisualStudio.TeamFoundation.EngineStarter.InitializePlugins(MsfTemplate template, PcwPluginCollection pluginCollection)
– Inner Exception —
Exception Type: System.Net.WebException
Exception Message: No es posible conectar con el servidor remoto
WebException: Status : ConnectFailure
Stack Trace:
en System.Net.HttpWebRequest.GetRequestStream()
en System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
en Microsoft.TeamFoundation.Proxy.Portal.Admin.GetLanguages()
en Microsoft.VisualStudio.TeamFoundation.WssSiteCreator.CheckPermissions(ProjectCreationContext ctxt)
— end Inner Exception —
– Inner Exception —
Exception Type: System.Net.Sockets.SocketException
Exception Message: No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión 192.168.2.2:17012
Stack Trace:
en System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
en System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
en System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
— end Inner Exception —
— end Exception entry —
Entonces que paso? Si todo esta funcionando bien? (como siempre je!)
No voy a delatar a quien “reinstalo el SharePoint” por un problema que tenian, y no aviso. Y al volver a instalar el puerto cambio.
Aqui tenemos dos alternativas (que encontre) o cambiar el puerto del SharePoint o cambiar la URL del SharePoint asociado a nuestro TFS
Yo quise cambiar el TFS.
Para ver la configuración hacemos uso de la herramienta TFSAdminUtil, se encuentra por aqui
c:Archivos de programaMicrosoft Visual Studio 2008 Team Foundation ServerTools
Pasos a seguir
- Ver configuracion actual del TFS (comando ConfigureConnections)
tfsadminutil configureconnections /viewResultado:
Aqui podremos ver la seccion que nos interesa: SharepointAdminUri (Especifica el URI del sitio administrativo de SharePoint)
- Cambiar la configuración de SharepointAdminUri
Luego tendremos que cambiar el sitio “viejo/antiguo” por el nuevo en mi caso cambia el puertotfsadminutil configureconnections /SharepointAdminUri:http://{server}:{puerto}
Resultado:
Modificamos la dirección de administracion del SharePoint
- Verificar nuevamente la configuración
tfsadminutil configureconnections /view
Enlaces
- Comandos TFSAdminUtil de la línea de comandos
- Comando ConfigureConnections
- TFS 2008 Setup and Administration FAQs
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2776169&SiteID=1
Y si no os funciona, como a mí, probad con esto:
stsadm -o setadminport -port 4444
visto en: http://www.netadmintools.com/art585.html