Cannot connect to TFS from Visual Studio

I am not sure if TFS is even running. I can get to sharepoint no problem, create new sites etc.... I can get to the report services no problem and when I browse to the TFS host machine from a workstation I get the sharepoint site. I have tried running Visual Studio as the the tfsservice account and still I get the cannot connect dialog.

How can I tell that TFS is installed and working? Is there an admin utility? What directories should I have in IIS?

Thank you in advance!

[489 byte] By [jvanulden] at [2007-12-16]
# 1
Did you install Team Foundation Server Component?

If Yes, check the following -
On the machine you installed the Team Foundation Server you should see a VSTF web site and the following vdirs - Bisserver, Currituck, Scc, TeamBuild and Warehouse.
Try browsing to :/bisserver/Registration.asmx">http://<ServerMachine>:<Port>/bisserver/Registration.asmx and make sure you don't see any errors

-- Venkat

VenkatSathyamurthy at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
# 2

Take a look at this thread that explains another potential cause for this issue.

http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=2795

-- Venkat

VenkatSathyamurthy at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
# 3
Well I thought I did, I ran the installer but it did throw an error. Now it won't let me re-install. Say's that there are Team Foundation databases already on the machine and that it can't continue.
jvanulden at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
# 4

The installer throws an error dialog near the end of installation that says:

Error 32000. The Commandline "C:\Program Files\Microsoft Visual Studio Enterprise Server\BISIISDIR\uninstall\createds.exe" "http://SERVER/ReportServer/ReportService.asmx" TfsReportDS "Data source=SERVER;initial catalog=BisDWDB" "DOMAIN\user" ... returned non-zero value: 3.

Any ideas what may have caused this?

jvanulden at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
# 5
Usually when it cannot connect to the Report Server site (/reports"> http://<dt>/reports) or when the Report Service is not started
BruceTaimanaMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
# 6
To verify...

VS Team Foundation:
Go to your App Tier machine.
Browse http://localhost:8080/bisserver/registration.asmx
When it comes up, click "Invoke"
You should see a huge Xml come back with all sorts of URL's.

Sharepoint:
browse http://localhost/

Report Server:
browse http://localhost/reportserver and http://localhost/reports

Full configuration:
Go to your client, open VS and goto tools --> Connect to Team Server...
Click Servers button and then the Add button.
Type in your server name, and click okay. (tests connection)
Click Close and then exit out of the dialogs by clicking okay.
When the Team Explorer comes up, create a project by doing "File --> New --> Team Project"
If you successfully create a project then setup is good.

BruceTaimanaMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
# 7

Ok, I finally got it setup ok, I had to run rskeymgmt -d at the command prompt while i had the error dialog up.

I said yes to "delete all encrypted data from the report server database" question and clicked retry on the error dialog. The installer finished.

I can browse to the server now from VS, but when I try to create a new project I get an error as follows:
04/26/2005 12:27:19.704 | Module: ELeadServiceMediator | URL for eLead web service retrieved as "http://s5-van1-mapgac1:8080/bisserver/EleadWebService.asmx" from the registration service | Completion time: 0 seconds
04/26/2005 12:27:20.204 | Module: ELeadServiceMediator | eLead web service proxy constructed | Completion time: 0.5000064 seconds
04/26/2005 12:27:20.329 | Module: ELeadServiceMediator | Template Information for domain "s5-van1-mapgac1" retrieved from eLead web service | Completion time: 0.1250016 seconds
04/26/2005 12:28:16.486 | Module: Engine | Retrieved IAuthorizationService proxy | Completion time: 0.3593796 seconds
04/26/2005 12:28:16.501 | Module: Engine | Project creation permissions retrieved | Completion time: 0.0156252 seconds
04/26/2005 12:28:20.157 | Module: ELeadServiceMediator | Downloaded process template file from eLead web service | Completion time: 3.6406716 seconds
04/26/2005 12:28:20.282 | Module: Engine | Wrote compressed process template file | Completion time: 0.0937512 seconds
04/26/2005 12:28:25.642 | Module: Engine | Extracted process template file | Completion time: 5.3594436 seconds
04/26/2005 12:28:25.658 | Module: Engine | Thread: 6 | Starting Project Creation for project "Phoenix DSS" in domain "s5-van1-mapgac1"
04/26/2005 12:28:25.689 | Module: Engine | User information retrieved from GSS | Completion time: 0.0312504 seconds
04/26/2005 12:28:25.689 | Module: Initializer | Thread: 6 | Starting plug-in inialization
04/26/2005 12:28:25.689 | Module: CssStructureUploader | Thread: 6 | Entering Initialize in CssStructureUploader
04/26/2005 12:28:25.845 | Module: CssStructureUploader | Thread: 6 | Initialize for CssStructureUploader complete
04/26/2005 12:28:25.845 | Module: Initializer | Thread: 6 | Initialization for plugin "Microsoft.Pcw.Css" succeeded
04/26/2005 12:28:25.861 | Module: Rosetta | Thread: 6 | Entering Initialize in RosettaReportUploader
begin Exception entry
Time: 04/26/2005 12:28:28.017
Module: Initializer
Event Description: Initialization for plugin "Microsoft.Pcw.Rosetta" failed with error: "Failed to retrieve projects from the report server"
Exception Type: Microsoft.VisualStudio.TeamSystem.ELead.ProjectCreationNew.RosettaInitializationException
Exception Message: Failed to retrieve projects from the report server
Stack Trace:
at Microsoft.VisualStudio.TeamSystem.ELead.ProjectCreationNew.RosettaReportUploader.CheckForProjectFolder(PrivateData data, String projectName)
at Microsoft.VisualStudio.TeamSystem.ELead.ProjectCreationNew.RosettaReportUploader.Initialize(ProjectCreationContext context)
at Microsoft.VisualStudio.TeamSystem.ELead.ProjectCreationNew.PluginInitializer.InitializePlugins(MsfTemplate template, ProjectCreationContext context)
-- Inner Exception --
Exception Type: System.InvalidOperationException
Exception Message: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
The request failed with the error message:
--
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Server Unavailable
</title>
</head>
<body>
<h1><span style="font-family:Verdana;color: #ff3300">Server Application Unavailable
</span></h1>


<span style="font-family:Verdana;">
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
</span>



<b>Administrator Note:
</b> An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.


</body>
</html>

--.
Stack Trace:
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.VisualStudio.ELead.ReportManager.RosettaProxy.ReportingService.ListChildren(String Item, Boolean Recursive)
at Microsoft.VisualStudio.TeamSystem.ELead.ProjectCreationNew.RosettaReportUploader.CheckForProjectFolder(PrivateData data, String projectName)
-- end Inner Exception --
end Exception entry

04/26/2005 12:28:28.033 | Module: WSS | Thread: 6 | Entering Initialize in WssSiteCreator
04/26/2005 12:28:29.251 | Module: WSS | Thread: 6 | Exiting Initialize for WssSiteCreator
04/26/2005 12:28:29.251 | Module: Initializer | Thread: 6 | Initialization for plugin "Microsoft.Pcw.wss" succeeded
04/26/2005 12:28:29.251 | Module: GSSStructureUploader | Thread: 6 | Entering Initialize in GssStructureCreator
04/26/2005 12:28:29.673 | Module: GSSStructureUploader | Thread: 6 | Exiting Initialize for GssStructureCreator
04/26/2005 12:28:29.673 | Module: Initializer | Thread: 6 | Initialization for plugin "Microsoft.Pcw.gss" succeeded
04/26/2005 12:28:31.908 | Module: Currituck | Thread: 6 | About to begin the creation of project Phoenix DSS on server s5-van1-mapgac1
04/26/2005 12:28:31.908 | Module: Initializer | Thread: 6 | Initialization for plugin "Microsoft.Pcw.currituck" succeeded
04/26/2005 12:28:31.923 | Module: SccTask | Thread: 6 | User chose to create new empty folder $/Phoenix DSS
04/26/2005 12:28:31.954 | Module: Initializer | Thread: 6 | Initialization for plugin "Microsoft.Pcw.scc" succeeded
begin Exception entry
Time: 04/26/2005 12:28:31.970
Module: Engine
Event Description: Project creation failed
Exception Type: Microsoft.VisualStudio.TeamSystem.ELead.ProjectCreationNew.PluginInitializationFailedException
Exception Message: Initialization failed for plugin(s): 'Microsoft.Pcw.Rosetta'
Stack Trace:
at Microsoft.VisualStudio.TeamSystem.ELead.ProjectCreationNew.PluginInitializer.InitializePlugins(MsfTemplate template, ProjectCreationContext context)
at Microsoft.VisualStudio.TeamSystem.ELead.ProjectCreationNew.EngineStarter.RunEngine(Boolean isValidationRun, String templateFolder)
at Microsoft.VisualStudio.TeamSystem.ELead.ProjectCreationNew.EngineStarter.TryCreateProject(ILogHandler logHandler, String& completionMessage)
end Exception entry

04/26/2005 12:28:31.970 | Module: Engine | Thread: 6 | Attempting to delete MSF folder "C:\Documents and Settings\tfsservice\Local Settings\Temp\PCW_04-26-2005_12.28.16"
begin Exception entry
Time: 04/26/2005 12:28:32.095
Module: Engine
Event Description: Deleting directory "C:\Documents and Settings\tfsservice\Local Settings\Temp\PCW_04-26-2005_12.28.16" failed
Exception Type: System.UnauthorizedAccessException
Exception Message: Access to the path 'CssTasks.xml' is denied.
Stack Trace:
at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive)
at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive)
at Microsoft.VisualStudio.TeamSystem.ELead.ProjectCreationNew.EngineStarter.SafeRemoveDirectory(String folderToRemove)
end Exception entry
Any suggestions at all would be much appreciated!!!

jvanulden at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
# 8
Something that may help is that when I load Sharepoint, Reporting services stops working. If I reset IIS and start reporting services, then Sharepoint doesn't work anymore. Any ideas?
jvanulden at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
# 9
Having just posted my description of problems I then read this. Here's a suggestion.

Let me guess that you have installed using the two server solution. If so, you did nothing wrong, there are notes and steps missing from the installation guide.

If you take a close look, just before you installed SQL, it talks about creating a Reporting Pool. It doesn't them tell you how.

If you go to the single install, you will see the missing steps. You can add the steps to the data server and then reinstall the application layer and the problem will go away.

Ian

IanMurphy at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
# 10
Actually, I did the single server install, and I did create the reporting pool. Any other ideas?
jvanulden at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
# 11
Then I'm surprised. I've now used the single server setup three times and it worked like a dream.

You mentioned Sharepoint problems, did you run the two command prompt entries that are supposed to stop clashes SQL and Sharepoint reporting?

Ian

IanMurphy at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
# 12
Ha! What two command line prompt entries would that be?

Something else to search for now... *grin*

Regards,
Michael Shorten

MichaelShorten at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
# 13
You are missing the STSAdm commands... ALSO, you must separate the Report Server and Reports Virtual Directories into thier own App Pool. They cannot live in the same app pool as sharepoint
BruceTaimanaMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...
# 14
You must run the STSAdm pool and place both Report sites in the separate app pool.
BruceTaimanaMSFT at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Setup...

Visual Studio Team System

Site Classified