TFS Deployer Exception with TFS 2010

Aug 5, 2010 at 2:50 PM

I downloaded the TFS Deployer 1.2 for TFS 2010 (Beta) and have been trying to get TFS Deployer to work with Team Foundation Server 2010 but encountered an issue. When I run TFS Deployer in diagnostics mode (tfsdeployer.exe –d) I am getting the following exception:

System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: The handshake failed due to an unexpected packet format.
   at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)
   at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.ConnectStream.WriteHeaders(Boolean async)
   --- End of inner exception stack trace ---
   at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
   at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
   at Microsoft.TeamFoundation.Client.TeamFoundationSoapProxy.GetWebResponse(WebRequest request)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Microsoft.TeamFoundation.Proxy.BisRegistrationServiceProxyWsdl.GetRegistrationEntries(String toolId)
   at Microsoft.TeamFoundation.Proxy.BisRegistrationProxy.GetRegistrationEntries(String toolId)
   at Microsoft.TeamFoundation.Proxy.BisRegistrationService.RefreshMemoryCache()
   at Microsoft.TeamFoundation.Proxy.BisRegistrationService.GetRegistrationEntries(String toolId)
   at Microsoft.TeamFoundation.Build.Client.BuildServer.Microsoft.TeamFoundation.Client.ITfsTeamProjectCollectionObject.Initialize(TfsTeamProjectCollection tfs)
   at Microsoft.TeamFoundation.Client.TfsTeamProjectCollection.InitializeTeamFoundationObject(String fullName, Object instance)
   at Microsoft.TeamFoundation.Client.TfsConnection.CreateServiceInstance(Assembly assembly, String fullName)
   at Microsoft.TeamFoundation.Client.TfsConnection.GetService(Type serviceType)
   at Microsoft.TeamFoundation.Client.TfsConnection.GetService[T]()
   at TfsDeployer.TfsDeployerApplication.Start() in c:\Users\Jason\Documents\Dev\TfsDeployer\Trunk\TfsDeployer\TfsDeployer\TfsDeployerApplication.cs:line 18
   at TfsDeployer.Program.RunAsConsole(TfsDeployerApplication application) in c:\Users\Jason\Documents\Dev\TfsDeployer\Trunk\TfsDeployer\TfsDeployer\Program.cs:line 108

Any insights would be appreciated.

Thanks.

Coordinator
Aug 7, 2010 at 1:51 PM

Hi,

On the machine that TFS Deployer is installed on, do you have the TFS command-line client available (ie tf.exe in <program files>\Microsoft Visual Studio 10.0\Common7\IDE)?

If so, try:

tf.exe dir /collection:<TeamProjectCollectionUri value from TfsDeployer.exe.config>

Also, using IE, try navigating to the url you have used as the TeamProjectCollectionUri value from TfsDeployer.exe.config.

The stack trace suggests this is a SSL handshake issue that could be caused by a proxy, or maybe a misconfigured SSL certificate.

Regards,

Jason

Aug 13, 2010 at 4:48 PM

Thanks for the assist.  This error was being caused by a malformed SSL uri.