We've been running TFS 2010 for quite some time.. Things have been going well - until just yesterday. I discovered I could no longer create a new Team Project.
The error message that displays on the client is: The Project Creation Wizard was not able to connect to the server running SharePoint Products at the following location: wnp5361. 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 project.
The VS team project creation log reads as follows around the error:
2013-05-03T13:21:49 | Module: WSS | Thread: 25 | Uploading file: Shared Documents/Product Planning.xlsm
2013-05-03T13:21:49 | Module: WSS | Thread: 25 | TF30275: Error while uploading file source = C:\Users\turayj\AppData\Local\Temp\TPW_tmpDA3E.tmp\Windows SharePoint Services\Shared Documents\Project Management\Product Planning.xlsm target = Shared Documents/Product
Planning.xlsm
2013-05-03T13:21:49 | Module: WSS | Thread: 25 | TF30267: Exception: System.Net.WebException: The remote server returned an error: (403) Forbidden.
at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request)
at System.Net.WebClient.UploadData(Uri address, String method, Byte[] data)
at System.Net.WebClient.UploadData(String address, String method, Byte[] data)
at Microsoft.TeamFoundation.Client.SharePoint.WssUtilities.SendFpRpcData(TfsConnection tfs, String siteUrl, Byte[] fpRpcCall)
at Microsoft.TeamFoundation.Client.SharePoint.WssUtilities.UploadData(Byte[] fileData, String remoteFullName, String siteUrl, TfsConnection tfs)
at Microsoft.TeamFoundation.Client.SharePoint.WssUtilities.UploadFile(String localFile, String remoteFullName, String siteUrl, TfsConnection tfs)
at Microsoft.VisualStudio.TeamFoundation.WssSiteCreator.UploadFile(WssCreationContextWrapper contextWrapper, String sourceFile, String siteUrl, String target, DocumentLibraryInfo docLibInfo, String currituckQuery)
at Microsoft.VisualStudio.TeamFoundation.WssSiteCreator.HandleFileCreation(WssCreationContextWrapper contextWrapper, XmlNode taskNode)
at Microsoft.VisualStudio.TeamFoundation.WssSiteCreator.Execute(ProjectCreationContext context, XmlNode taskXml)
---begin Exception entry---
Time: 2013-05-03T13:21:49
Module: Engine
Event Description: TF30162: Task "SharePointPortal" from Group "Portal" failed
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: Unable to connect to the server running SharePoint Products at the following location: wnp5361.
Exception Details: The Project Creation Wizard was not able to connect to the server running SharePoint Products at the following location: wnp5361. 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 project.
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 Message: The remote server returned an error: (403) Forbidden. (type WebException)Status: ProtocolError
Response Status Code: Forbidden
Response Status Message: Forbidden
This is happening to all admins across multiple desktops. I logged into the server console using the TFS Service account and tried with the same results. Sharepoint is installed on the TFS application tier. Because I get the same errors, I don't see this as a firewall issue.
We have TFS 2012 running on a test server. Using the VS 2012, I was able to create a new team project in 2012. I get the same error when trying to build a team project on TFS 2010 using VS 2012. It doesn't seem to be a client issue.
We did not make any application or permission changes since this was last working. I compared account permissions where I could think to look between the two Sharepoint instances - they are set up the same.
The server was updated with OS patches recently (Windows Server 2008 R2 Standard) but the applications weren't touched. Could it be something there?
I tried scouring through the Sharepoint log files.. but did not see anything revealing there. I can't see where the permissions are being denied. I find where the frame of the SP site is created, and where it is being torn down.. but I'm not seeing where the file upload is started. The closest line I'm getting to with a discernable error is this: "Unknown SPRequest error occurred. More information: 0x80070002" I'm not sure where to go from there...
I am able to create a new site in this collection using SP Administration. I also discovered that I can create new new Team Project using VS as long as I do not create the Sharepoint portal. I can then have VS generate the Sharepoint portal after the fact - after the project has been created successfully. So why is it unable to access during the original project creation tasks?
Any help of where to look for an issue would be great. I want to get this server updated to 2012 in the next couple of weeks, but I'm afraid to press forward with this being an issue.