Quantcast
Channel: Team Foundation Server - General forum
Viewing all 6687 articles
Browse latest View live

How can i get the amount of work done during the sprint

$
0
0

Hi

I am using TFS 2015.5 with Scrum template for projects Collections.

in the Agile template we have the Completed work filed that determine amount of work done during the sprint.

but in the scrum template only have a Remaining Work field thatamountis reducedto zero! in the last sprint developer wants to know how many work in this sprint but there is not entry any where!

How can i get the amount of work done during the sprint?


TFS 2013 Open in Browser Result Broken After Server Migrated

$
0
0

Hi Guys,

We have a migration from old TFS 2012 temporary server to new TFS 2013 server, and try to open the code view from Email Alert, and the following Context. But ended with a broken link, and we found that is because the link was still using the old TFS 2012 server host name, it actually works once we rename server host in Internet Explorer or Google Chrome browser.

http://<old server name>:8080/tfs/web/cs.aspx?pcguid=ff40e714-177f-4394-8ade-14627907c107&cs=1417

Could that be we missed out any setting in new server in order to make above feature working fine.

P/S: I am new to TFS server, and sorry for any confusion from my asking.

Thanks

Embeded inline image writing to WorkItem description throught API [C# Code]

$
0
0

I am trying to create update WorkItem through TFS API [C# Code]. My description content is coming from some other system and having inline image embedded [Image as base 64 encoded].

I have noticed that when the image size is smaller near to 30 kb, it is getting updated in the TFS description field and it is showing fine. But when image size is more then 100 kb, it is not showing any content to the WorkItem description. It just writing<img> tag without src attribute.

I have also noticed that it is allowing to set the long base 64 encoded source of image to the description but when we save the workitem with workItem.Save();, the image source gets removed.

Following is the sample program I am running.

using Microsoft.TeamFoundation.Client;
using Microsoft.TeamFoundation.Framework.Client;
using Microsoft.TeamFoundation.Framework.Common;
using Microsoft.TeamFoundation.WorkItemTracking.Client;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Net;
using System.Text;

namespace TFSTestImage
{
    class Program
    {
        static void Main(string[] args)
        {
            string serverUrl = "http://tfsserver:8080/tfs";
            string userName = "test";
            string password = "test";
            string teamCollection = "DefaultCollection";
            string projectName = "Project1";
            int wiId = 5241;
            TfsConfigurationServer tfsServer = null;

            NetworkCredential networkCredential = new NetworkCredential(userName, password);
            Uri tfsUri = new Uri(serverUrl);
            ICredentials credential = (ICredentials)networkCredential;
            tfsServer = new TfsConfigurationServer(tfsUri, credential);
            tfsServer.EnsureAuthenticated();
            CatalogNode configurationServerNode = tfsServer.CatalogNode;

            ReadOnlyCollection<CatalogNode> tpcNodes = configurationServerNode.QueryChildren(new Guid[] { CatalogResourceTypes.ProjectCollection }, false, CatalogQueryOptions.None);

            TfsTeamProjectCollection tfsTeamProjectCollection = null;
            foreach (CatalogNode tpcNode in tpcNodes)
            {
                if (tpcNode.Resource.DisplayName.Equals(teamCollection))
                {
                    tfsTeamProjectCollection = tfsServer.GetTeamProjectCollection(new Guid(tpcNode.Resource.Properties["InstanceID"]));

                    break;
                }
            }

            WorkItemStore wiStore = tfsTeamProjectCollection.GetService<WorkItemStore>();

            Project project = wiStore.Projects[projectName];

            WorkItem workItem = project.Store.GetWorkItem(wiId);

            string desc = "<img src=\"data:image/jpeg;base64,{base 64 encoded image data}\" alt=\"\">";

            workItem.Fields["Description"].Value = desc;

            workItem.Save();

            Console.WriteLine("Workitem updates successfully !!");
        }
    }
}

In the above program for the smaller image encoded data, it is writing image to the description field but for the larger image it is just writing image tag like <img alt=""> and showing empty description on the UI. [Because of the character limit, I am not able to keep both image encoded data in the example.]

Is there any image size limit while writing from API ? If yes, is it configurable or fixed ?

From UI I am able to copy same image to description and save it.

TFS Instance Details:

Visual Studio Team Foundation Server 2013

Version 12.0.21005.1


Thanks,

Niraj




Manually transfering projects from visual studio to TFS 2013

$
0
0

hi all,

my company is using visual source safe right now as source control and planning to move to TFS 2013. I did set up TFS 2013 server.

my problem is, when I am creating a new project in Visual studio 2013 and adding that solution to TFS 2013 that time deployment to production server is working fine but when i am getting latest version from visual studio or if i am copying project folder from server, opening that project in visual studio 2013 and adding that to TFS 2013 when trying to deploy it to production, its not giving any error its running successfully but its not deploying code to production server.

Can someone please help me??? i am not sure what i am doing wrong  in this process??\

Thank you!!

Backup error SQL

$
0
0

Good afternoon,

We currently have TFS 2013 installed and on the same server we have the full version of 2013 SharePoint installed as well.  On a totally separate physical server we have SQL 2012 (Full Version) installed, we are using Managed service accounts for SQL server. 

When we go thru the backup wizard we get this error

BackupDiskFile::CreateMedia: Backup device failed to create. Operating system error 1326(Logon failure: unknown user name or bad password.).

and this on the GUI side.



TF401002: The SQL Server Database Engine failed to save the database backup to path\\%SERVERNAME%\TFS_Backups.  Please grant SQL service account read/write access to that folder.

Does the wizard in TFS use the managed service account to backup?  It does seem to be using that, the wizard adds the permission for the managed service account on the share and on the NTFS side but it does not work.  As a long shot I added that managed service account in SQL giving it the sysadmin role even and nothing..  Same error.  I'm not opposed to manually backing up TFS but is this my best option?

We currently backup SQL using netbackup and it works pretty well.  I plan on backing up SharePoint in the same fashion once I finish reading the book on that. 

If going manually for backing up TFS I would think the following would be true for the restore process.

Step1-Restore SQL Databases

Step2-Restore Sharepoint

Step3-Install TFS and point it to these databses?

Does that sound like a good DR plan?  I plan on testing this in the coming days but I wanted to know if I'm missing something.

Let me know what you think,

Tim

Abandon closed code review

$
0
0

I closed a code review that I should have abandoned, since I do not wish to check in the code as it is. Is it possible to change the status from "closed" to "abandoned" ?

Thanks

kph

Test Case Migration

$
0
0

Hi ,

We need to migrate test cases from TFS 2013 to HP ALM 11 for some purpose  , Plz tell  what are the ways available .

Thanks in advance

Team Foundation server is going down frequently for some reason, getting Service unavailable and some times we see Object Reference which is already disposed

$
0
0

Hi All,

We are facing some critical issue which is being occuring repeatedly on some intervals from past one week. Which is being resolved only by the server reboot, and none like iisreset or the WAS restart is working.

Error: Pattern is some thing like below.

The application is beginning to shutdown.The application is being shutdown for the following reason: ConfigurationChange

Application Domain: /LM/W3SVC/2/ROOT/tfs-1-130830693014843159

TF53010: The following error has occurred in a Team Foundation component or extension:
Date (UTC): 8/3/2015 9:55:35 AM
Machine: <Machine>
Application Domain: /LM/W3SVC/2/ROOT/tfs-1-130830693014843159
Assembly: Microsoft.TeamFoundation.Framework.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v4.0.30319
Service Host:
Process Details:
  Process Name: w3wp
  Process Id: 2064
  Thread Id: 5204
  Account name: <Account>

Detailed Message: TF30065: An unhandled exception occurred.

Web Request Details
    Url: :8080/tfs/TeamFoundation/Administration/v3.0/LocationService.asmx">http://<URL>:8080/tfs/TeamFoundation/Administration/v3.0/LocationService.asmx, RemoteComputer: <IP>, RemoteIPAddress: <IP>, RemotePort: 53860, UserAgent: Team Foundation 11.0.61030.0, (WebAccess SharePoint 12.0.0)]

----------------------------------------------------------------------------------------------------------------

The World Wide Web Publishing Service service terminated unexpectedly.  It has done this 1 time(s).

 

The Windows Process Activation Service service terminated unexpectedly.  It has done this 1 time(s).  The following corrective action will be taken in 0 milliseconds: Run the configured recovery program.

Application pool Microsoft Team Foundation Server Message Queue Application Pool has been disabled. The request from protocol http to create the application pool failed. Restart the application pool so that Windows Process Activation Service (WAS) can determine the correct state of the protocol. The data field contains the error number.

system log:

The application is beginning to shutdown.The application is being shutdown for the following reason: BinDirChangeOrDirectoryRename

Application Domain: /LM/W3SVC/2/ROOT/tfs-38-130827077557274017

The above logs were found during the event.

Please let me know if you need more details.

Thanks,

BEshwar


Thanks, Eshwar


ISubscriber on TFS 2015

$
0
0

I try write plugin for TFS 2015. 

I use "ISubscriber" 

public EventNotificationStatus ProcessEvent(TeamFoundationRequestContext requestContext, NotificationType notificationType,
      object notificationEventArgs, out int statusCode, out string statusMessage,
      out ExceptionPropertyCollection properties) {  statusCode = 0;
      statusMessage = string.Empty;
      properties = null;
      try {
        if (notificationType == NotificationType.Notification && notificationEventArgs is WorkItemChangedEvent) {
          var notification = notificationEventArgs as WorkItemChangedEvent;

          string projectName = notification.ChangedFields.StringFields.First(p => p.ReferenceName == "System.TeamProject").NewValue;
          var createdByDisplayName = notification.CoreFields.StringFields.First(p => p.ReferenceName == "System.CreatedBy").NewValue;
          var assignedByDisplayName = notification.CoreFields.StringFields.First(p => p.ReferenceName == "System.AssignedTo").NewValue;
string s = string.Format("{0} | {1}", notification.WorkItemTitle, notification.AreaPath);
  TeamFoundationApplicationCore.Log(string.Format(" WorkItemTitle | AreaPath : {0}", s), 1602, System.Diagnostics.EventLogEntryType.Information);
          TeamFoundationApplicationCore.Log(string.Format(" CreatedBy : {0}", createdByDisplayName), 1603, System.Diagnostics.EventLogEntryType.Information);
          TeamFoundationApplicationCore.Log(string.Format(" AssignedTo : {0}", assignedByDisplayName), 1603, System.Diagnostics.EventLogEntryType.Information);

 TeamFoundationLocationService service = requestContext.GetService<TeamFoundationLocationService>();
          Uri uri = service.GetSelfReferenceUri(requestContext, service.GetDefaultAccessMapping(requestContext));
          TfsTeamProjectCollection tfsTeamProjectCollection = new TfsTeamProjectCollection(uri); } catch (Exception ex) {
        TeamFoundationApplicationCore.Log(ex.Message, 1604, System.Diagnostics.EventLogEntryType.Error);
      }
      return EventNotificationStatus.ActionPermitted;
    }

I copy dll  to folder "C:\Program Files\Microsoft Team Foundation Server 14.0\Application Tier\Web Services\bin\Plugins"

After i create new User Story, i check in windows EventLog

Server install TFS 2015 RC (Server don't join Domain)

- CreatedBy : dongnt

- AssignedTo : Administrator 

Server install TFS Server 2015   (Server join Domain)

-  CreatedBy : |Dong Nguyen%fda0ef76-acd4-452a-93de-da3f79ff0e2f|

-  AssignedTo : |User 01%85c99e85-152f-46eb-a0b5-85b271fbee57|

why does it diffirence?  

TeamFoundationLocationService service = requestContext.GetService<TeamFoundationLocationService>(); <= service always null

Can you help me ? :( I try many time but i ca'nt solve issue :(:(

Thanks you


.Metadata file not in expected format:

$
0
0
TF53010: The following error has occurred in a Team Foundation component or extension:
Date (UTC): 
Machine: server name
Application Domain: /LM/W3SVC/2/ROOT/tfs-2637-130831866344238944
Assembly: Microsoft.TeamFoundation.Framework.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v4.0.30319
Service Host: 2cc13e7e-9855-43cc-bc5f-c13df4b42811 ( Project Collection)
Process Details:
  Process Name: w3wp
  Process Id: 2192
  Thread Id: 6732
  Account name: user name

Detailed Message: TF15015: Metadata file not in expected format: C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\_tfs_data\21594100-6ac1-43d1-9876-58724f165314\Proxy\2cc13e7e-9855-43cc-bc5f-c13df4b42811\81\01B281.pxy

Web Request Details
    Url: http://tfs server project %20Project%20Collection/Services/v4.0/item.ashx?type=rsa&sfid=111218,111219,111220,111221,111222,111223,111225,111224,111229,111227,111226,111228,111230,111231,111232,111233,111234,111235,111236,111237,111238&ts=635743961064137475&s=RdDD4Ukva%2FXggVJSoDbN9aSUlrLsBKfNnIESLEwS6kxjdN%2FCrGnBZnfaZ6BVavo6xvq3Y5zqYCIlzjuicvDc1MuyKQ5kHKagpX8Dz9mHGmq4F4wq13Navqzhl%2BpbfbSbrIKhhiWL5c7qxJc7kzD7s7%2BTxkaTGTkvNP78ksYonywv7N7WA7pW7w9fTfm99i9LKHT7zsz98lyn%2F8c4rs1exvNBFFCqiCamHTCWApbES9N4Dc6SvR1v2T2c2xxiwSmIF0Nz8Ga9b4KTTlgTQW5j4GcwAmyvgJYyrSavEu7dClObF2gSQVEcKc4JIvzegtYPn9J1zbN0keTaDg5zYtHNqQ%3D%3D&fid=111233&iid=21594100-6ac1-43d1-9876-58724f165314&cp=/tfs/nameI%20Project%20Collection/ [method: GET]
    User Agent: Team Foundation (TFSBuildServiceHost.exe, 12.0.31101.0, Other, SKU:18)
    Headers: Accept-Language=en-US&Host=tfsserver%3a8080&User-Agent=Team+Foundation+(TFSBuildServiceHost.exe%2c+12.0.31101.0%2c+Other%2c+SKU%3a18)&X-TFS-Version=1.0.0.0&X-TFS-Session=0595bd48-85d4-4af6-8278-c9d03495b78b&X-VSS-Agent=TFS%3a+1e2e90b8-a77d-44ff-b66e-13880a6c5365
    Path: /tfs/ Project Collection/Services/v4.0/item.ashx
    Local Request: False
    Host Address: 10.121.228.42
    User: user account [authentication type: NTLM]

Exception Message: CRC mismatch (type CorruptHeadersException)
Exception Stack Trace:    at Microsoft.TeamFoundation.Server.Core.FileCacheService.RetrieveFileFromCache(TeamFoundationRequestContext requestContext, FileInformation fileInfo, IDownloadState downloadState, Boolean compressOutput)


TFS 2013 Update 4 with SQL server 2014 SP1

$
0
0

Hi,

Is TFS 2013 (12.0.31101.0) Update4 supported with SQL Server 2014 (12.0.4100.1) SP1?

We have upgraded SQL 2014 SP1 for the TFS and seeing issues now.

Please confirm this as we are severely getting impacted.

BR,

Altaf B.

TFS Web Access is broken

$
0
0

All my charts on web acess are broken and if I click on them they give the following error:

Method 'GetVariableValue' in type 'Microsoft.TeamFoundation.WorkItemTracking.Server.ServerWiqlAdapterHelper' from assembly 'Microsoft.TeamFoundation.WorkItemTracking.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' does not have an implementation.

When I click on my link for product backlog I get this error:

Error(s):

  • Unable to get property 'setMessage' of undefined or null reference
    TypeError: Unable to get property 'setMessage' of undefined or null reference
       at Anonymous function (http://anpac-tfs1:8080/tfs/_static/tfs/12/_scripts/TFS/min/Agile/Scripts/TFS.Agile.ProductBacklog.js:4:25855)
       at B (http://anpac-tfs1:8080/tfs/_static/tfs/12/_scripts/TFS/min/corejs?v=HEJc3m-TUp5gkngY8ia8ydgk0vb9xsyzR-zxRx_Wx7k1:435:3197)
       at Anonymous function (http://anpac-tfs1:8080/tfs/_static/tfs/12/_scripts/TFS/min/corejs?v=HEJc3m-TUp5gkngY8ia8ydgk0vb9xsyzR-zxRx_Wx7k1:1291:2665)
       at v (http://anpac-tfs1:8080/tfs/_static/tfs/12/_scripts/TFS/min/corejs?v=HEJc3m-TUp5gkngY8ia8ydgk0vb9xsyzR-zxRx_Wx7k1:1291:1858)
       at Anonymous function (http://anpac-tfs1:8080/tfs/_static/tfs/12/_scripts/TFS/min/corejs?v=HEJc3m-TUp5gkngY8ia8ydgk0vb9xsyzR-zxRx_Wx7k1:1291:2251)
       at l (http://anpac-tfs1:8080/tfs/_static/tfs/12/_scripts/TFS/min/basejs?v=jBIa7AsvDbakV71E4P6aT_e1JcqaY3YeThNH8DW3RHg1:24:20628)
       at c.fireWith (http://anpac-tfs1:8080/tfs/_static/tfs/12/_scripts/TFS/min/basejs?v=jBIa7AsvDbakV71E4P6aT_e1JcqaY3YeThNH8DW3RHg1:24:21547)
       at T (http://anpac-tfs1:8080/tfs/_static/tfs/12/_scripts/TFS/min/basejs?v=jBIa7AsvDbakV71E4P6aT_e1JcqaY3YeThNH8DW3RHg1:24:97243)
       at r (http://anpac-tfs1:8080/tfs/_static/tfs/12/_scripts/TFS/min/basejs?v=jBIa7AsvDbakV71E4P6aT_e1JcqaY3YeThNH8DW3RHg1:24:103858)

Any ideas?


overwritten allitems.aspx

$
0
0

Help! I've done something stupid!

 

While saving a new visio document to a folder the TFS sharepoint I accendently saved my document as AllItems.aspx.  In otherwords I managed to overwrite the SharePoint'sAllItems.aspx with my visio document.  Now when I open the sharepoint folder I get"An error occurred during the processing of /sites/Project1/Documentation/Forms/AllItems.aspx. The server block is not well formed."

 

Does anyone have any idea of how I can restore the original AllItems.aspx?

 

Kaneda?

How do you create an alert for check-ins in Visual Studio Team Foundation Server 2013?

$
0
0
How do you create an alert for check-ins in Visual Studio Team Foundation Server 2013?

Error while doing set up HTTPS with Secure Sockets Layer (SSL) for Team Foundation Server

$
0
0

Hi Everyone,

I am trying to setup SSL for my TFS using below link, i have got legal certificate from external provider and have done all setup in IIS, when i try to access from browser using https://xxxxxxxx/tfs it works. As per below document there is stage where u have to change the URL in TFS Admin console but i am getting below error.

https://msdn.microsoft.com/en-us/library/aa833872.aspx

Thanks in Advance

Shabbir


"Microsoft.VisualStudio.ServiceModel.Validation.ConfigValidationTask" task could not be loaded

$
0
0

I'm new to TFS build automation and have been tasked with creating an on-demand and a CI build for our group on our TFS 2010 server. I started off by using the DefultTemplate for the CI build and seemed to have worked through the issues I've encountered along the way, until now.

I'm getting the following error and can't seem to figure out how to resolve it:

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\WCF\Microsoft.VisualStudio.ServiceModel.targets (33): The "Microsoft.VisualStudio.ServiceModel.Validation.ConfigValidationTask" task could not be loaded from the assembly Microsoft.VisualStudio.ServiceModel.Core, Version=11.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35. Could not load file or assembly 'Microsoft.VisualStudio.ServiceModel.Core, Version=11.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

Any guidance would be most appreciated.

Update: I've confirmed that all the projects in the solution target 4.5.1 and that 4.5.2 is installed on the build server.


TF30323: Error message when creating a new Team Project

$
0
0

When I go to create a new Team Project, VS stalls at the pick a process template. The screen will hang and I will get a "VS is busy at the moment etc", then I will receive the TF30323 error message but I'm forced to use task manager to close VS altogether.

Similar to a lot of TF30323 errors that are on the forum. So far i've:

- Cleared all the local caches.

- Modified values in the processtemplate.xml (True -> False).

- Uploaded the original, unchanged process templates to VS. 

I'm using VS 2013 update 4 and TFS 2013. Any ideas?

TF400898: An Internal Error Occurred.

$
0
0

I applied the VS 2013 Update 5 and now TFS is returning "TF400898: An Internal Error Occurred:"  when I attempt to display a task board

It returns: "Unable to get property 'set message' of undefined or null reference.

The Thread Titled "TFS Web Access is Broken" as an answer stating "I had to rollback Microsoft.teamfoundation.workitemtracking.common.dll to the previous version date stamped 4/23/2015" 

Where can I get this DLL????





Deploy JavaScript Frameworks AngularJS & Kendo UI to Team Foundation Server

$
0
0

I see that by default, Team Foundation Server has jquery-1.8.3.js, jquery-ui-1.10.2.js and knockout-2.2.1.js pre-installed under <program files dir>\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\_static\3rdParty\_scripts

I have been writing some custom TFS Web Access JavaScript Plugins as in example (https://www.simple-talk.com/dotnet/visual-studio/customizing-team-foundation-server-2013/). I can readily use jQuery& jQuery.UI in my TFS Web Access Controls.

But now I wanted to levereage a more complex control I wrote using Kendo UI in TFS WIT Form.

Is there a way to deploy the entire Kendo UI Framework into Team Foundation Server (under _static\3rdParty\_scripts) or are there any other tricks or hacks into using the Framework in WIT forms.

Thanks


Thanks, Rocky Fernandes

Migrate from 2013 to 2015

$
0
0

Hi

I have TFS 2013.5. I want to migrate from this version to TFS 2015.

how can do it?

Viewing all 6687 articles
Browse latest View live