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

TFS 2013 - WorkItemChangedEvent not being raised

$
0
0

Hi folks. We have a custom TFS plugin (written in C#) that we use to subscribe to work item changes.

We are in the process of upgrading to TFS 2013, so we are upgrading the plugin.

Unfortunately, the new version plugin does not respond to WorkItemChangedEvents. It responded to these without issue in TFS 2012.

Is there a flag somewhere in the TFS configuration to disable these events that we might have set? The plugin will pick up other event types, so I'm not sure if the plugin is the problem.
I've been using a very simple plugin to test if the events are raised. The C# code for this is below:

using Microsoft.TeamFoundation.Common;
using Microsoft.TeamFoundation.Framework.Server;
using Microsoft.TeamFoundation.Server.Core;
using Microsoft.TeamFoundation.WorkItemTracking.Server;
using System;
using System.Configuration;
using System.Diagnostics;

namespace TestSubscriber
{
    class TestSubscriber : ISubscriber
    {
        #region ISubscriber Members

        public string Name
        {
            get { return "TestSubscriber"; }
        }

        public SubscriberPriority Priority
        {
            get { return SubscriberPriority.Normal; }
        }

        public Type[] SubscribedTypes()
        {
            return new Type[3] { typeof(WorkItemsChangedNotification), typeof(WorkItemChangedEvent), typeof(SendEmailNotification) };
        }

        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;

            if (notificationEventArgs is WorkItemsChangedNotification)
            {
                TeamFoundationEventLogger.Log("Received WorkItemsChangedNotification", 0, EventLogEntryType.Information);
            }
            else if (notificationEventArgs is WorkItemChangedEvent)
            {
                TeamFoundationEventLogger.Log("Received WorkItemChangedEvent", 0, EventLogEntryType.Information);
            }
            else if (notificationEventArgs is SendEmailNotification)
            {
                TeamFoundationEventLogger.Log("Received SendEmailNotification", 0, EventLogEntryType.Information);
            }

            return EventNotificationStatus.ActionPermitted;
        }

        #endregion
    }
}

Here is a list of the references from the visual studio project:

  • Microsoft.TeamFoundation.Common
  • Microsoft.TeamFoundation.Framework.Server
  • Microsoft.TeamFoundation.Server.Core
  • Microsoft.TeamFoundation.WorkItemTracking.Server
  • Microsoft.VisualStudio.Services.WebApi
  • System
  • System.Core

If I make a change to a work item that triggers an email (I assign a work item to myself), the subscriber receives a SendEmailNotification, but no WorkItemChangedEvent. If I make a change that won't send an email (state change on another work item), the subscriber does not get notified.

We are using TFS 12.0.30626.0 (Tfs2013.Update3.RC) - according to the admin. console.

If anyone has any suggestions of what I'm doing incorrectly, do tell. I'm really at sea here.

Thanks.



Microsoft.Data.Tools.Schema.SqlTasks.targets (547): File ... dacpac does not exist

$
0
0

I have two database projects in separate solutions, for ease I'll call these DBProj_A and DBProj_B.

There are objects in DBProj_A that reference DBProj_B so in order that these objects can be resolved in the referencing project I have added a Database Reference which refers to DBProj_B dacpac.

Projects build locally with no issues.

I have TFS build definitions for both projects.

In DBProj_A build definition I have added DBProj_B to the 'Items to Build' and set it as the first item.

I've also added DBProj_B to DBProj_A source settings.

The issues arise when trying to build DBProj_A in TFS/Build agent..

First DBProj_B is built with no errors

Secondly DBProj_A is built but errors...

"C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets (547): File "C:\Builds\1\Test\DBProj_A\src\DBProj_B\DBProj_B\bin\Debug\DBProj_B.dacpac" does not exist."

From what I can see DBProj_B is built into the src folder of DBProj_A but the DBProj_B.dacpac is then moved to the bin folder.  So ...

C:\Builds\1\Test\DBProj_A\src\DBProj_B\DBProj_B\obj\Debug\DBProj_B.dacpac --> MOVED TO --> C:\Builds\1\Test\DBProj_A\bin\DBProj_B.dacpac

Total TFS newbie so apologies if this is a no brainer but how do I get it to reference the dacpac correctly or have I missed something at config??

Hopefully this makes sense :-)

TFS Server-Side Event Handler or Stand-Alone Web Service

$
0
0

TFS Server-Side Event Handler or Stand-alone Web Service - What is the better option?

We are going create multiple triggers for multiple automation scenarios and we're debating what option is better?  We have a server-side event handler now.  Can you have multiple dll's on the TFS server?  Or do you pile all events handlers into 1 dll?  Or do you spin up 1 or more web services to capture the soap calls from the events subscriptions?

Thoughts on this?

Cheers

Greg


Licensing - TFS CAL

$
0
0

Hi,

Can anyone tell me...

1. in what circumstances would a TFS CAL would be required ?.

2. What does a TFS CAL allow you to do, and what are the restrictions for a CAL-only licensed user ?

3. When TFS CALs are available for purchase, will they be available in the same Per User/Per Device CAL model as per other Client/Server apps available under volume licensing ?

4. When using a third party application to access TFS, in what circumstances would a CAL NOT be required ?

Thanks :-)

TFS 2012 Automatating test cases to run after each and every checkin

$
0
0

 Hi,

We are using TFS 2012, Our solution is in VS 2013. We are having Windows 8.1 project along with WEB API project. Can any one help me in running test cases automatically when you do check-ins.  When i open process tab of Build definition ==> Test ==> Click on Ellipse button ==> I see Visual Studio test runner is disabled. Can any1 suggest me how to enable "Visual Studio test Runner ", if it gets enabled, automated test cases will run automatically for each and every check-ins.


Mahender

TFS 2010 isn't allowing access to the Documents folder in Team Explorer

$
0
0

I have restored the TFS2010 using restored base move. Everything is working fine.

But when I open document in VS2010 team explorer, it shows cross sign. I have given the user project administrator rights on TFS2010 , Farm administrator rights on Sharepoint 3.0 but still he cannot open the documents in SharePoint. Also he is unable to login at sharepoint.

All these task can be performed from another user having same rights. But it is only one user which I created during restore proceedure. I did not do installation from this user. But this user is accessing documents when connect to TFS2010 through VS2010. He is also accessing sharepoint sites created in sharepoint portal.

So I am unable to figure out that why sharepoint is blocking the user access when he has full rights on it. I have also given the restricted user full rights on SQL server but no success.

Please suggest me what can I do.


Can't see Process Editor in VS Ultimate 2012 version 11.0.50727.1 RTMREL

$
0
0

I download Microsoft Team Foundation Server 2012 Power tools from TOOLS menu "extension & update" , successfully installed (process editor is checked) . TFS is connected.   The power tool  exists in extension installed tools . However, I can't  see process editor under TOOLS menu.

I tired to upgrade Visual  Studio to the latest version. But the team connection is failed. I uninstalled the update . please advice how to display Process editor. Thanks.

Lock icon not showing in my file in solution explorer

$
0
0

 

I just added my projects in TFS, and I think I was successfully able to do it. The problem is, when I go to my solution explorer - I am not seeing any of my files with lock icon.  Even when I do right-click on it there's no options to do check-in or check-out. What am I missing? Anyone?

ISSUE with creating new project in the TFS collection. Suddenly the issue started

$
0
0

Issue with creating new team project-

Status: Project portal tasks completed. Then suddenly it fails and rolls backs everything.

Please help.


Error
TF30170: The plugin Microsoft.ProjectCreationWizard.Build failed during task BuildTask from group Build.
Explanation
Plugin error text: “TF400324: Team Foundation services are not available from server collection\XXX. Technical information (for administrator): The operation has timed out”
User Action
Contact your Team Foundation Server administrator. 

2014-07-22T13:25:06 | Module: WSS | Thread: 17 | Activating SharePoint Feature: 0d953ee4-b77d-485b-a43c-f5fbb9367207
2014-07-22T13:25:23 | Module: WSS | Thread: 17 | Activating SharePoint Feature: 1d363a6d-d9ba-4498-ad1a-9874aca5f827
2014-07-22T13:25:23 | Module: Engine | Task "SharePointPortal" from Group "Portal" completed with success | Completion time: 33.908 seconds
2014-07-22T13:25:23 | Module: Engine | Thread: 26 | Running Task "" from Group ""
---begin Exception entry---
Time: 2014-07-22T13:29:36
Module: Engine
Event Description: TF30162: Task "BuildTask" from Group "Build" failed
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: TF400324: Team Foundation services are not available from server tfsServer\Collection.
Technical information (for administrator):
  The operation has timed out
Stack Trace:
   at Microsoft.VisualStudio.TeamFoundation.Build.ProjectComponentCreator.ExecuteInternal(ProjectCreationContext context, XmlNode taskXml, Boolean validationOnly)
   at Microsoft.VisualStudio.TeamFoundation.Build.ProjectComponentCreator.Execute(ProjectCreationContext context, XmlNode taskXml)
   at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.TaskExecutor.PerformTask(IProjectComponentCreator componentCreator, ProjectCreationContext context, XmlNode taskXml)
   at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.RunTask(Object taskObj)
--   Inner Exception   --
Exception Message: TF400324: Team Foundation services are not available from server 10.25.10.161\SLED.
Technical information (for administrator):
  The operation has timed out (type TeamFoundationServiceUnavailableException)
Exception Stack Trace:    at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.ReadResponse(HttpWebResponse webResponse, WebException webException)
   at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.IsAuthenticationChallenge(TfsMessage requestMessage, HttpWebResponse webResponse, WebException webException, TfsMessage& responseMessage)
   at Microsoft.TeamFoundation.Client.Channels.TfsHttpWebRequest.SendRequest()
   at Microsoft.TeamFoundation.Client.Channels.TfsHttpRequestChannel.Request(TfsMessage message, TimeSpan timeout)
   at Microsoft.TeamFoundation.Client.Channels.TfsHttpClientBase.Invoke(TfsClientOperation operation, Object[] parameters, TimeSpan timeout, Object[]& outputs)
   at Microsoft.TeamFoundation.Build.Client.BuildWebService4.CreateTeamProjectComponents(Uri projectUri, IEnumerable`1 permissions)
   at Microsoft.TeamFoundation.Build.Client.BuildServer.CreateTeamProjectComponents(Uri projectUri, IEnumerable`1 permissions)
   at Microsoft.VisualStudio.TeamFoundation.Build.ProjectComponentCreator.ExecuteInternal(ProjectCreationContext context, XmlNode taskXml, Boolean validationOnly)

Extract from the log file:

Best way to reorganize a collection

$
0
0

Hi guys

We want to reorganize our site collection by putting our projects under departments.  What's the best tool/methodology to accomplish this?

Tks


Steven

TFS 2013 - Taskboard - Parentless Tasks

$
0
0

The task board is a nice feature and it is something that we have been trying to use but, at the moment, the only way that a task will appear on there is if it has a Product Backlog Item / User Story as it's parent (in the same iteration/sprint).

This is a real pain and I'm surprised that there isn't more of a fuss about it!

I can see that a PBI may have multiple tasks, e.g. Account Functionality may have tasks for Create Account, Login, Forgotten Password, Change Username, etc. It is therefore quite suitable for projects which are being developed from scratch.

However, in a project which is on-going and I just want to add in many small tasks, e.g. fix a bug, add an extra field to a form, edit some email content, etc it becomes a real pain.

I have to add a PBI, move it to the current sprint, add a task and make sure it's in the right sprint. Then when it has been done I have to close both the task and the PBI. It seems like a waste of time when it's only the task that is relevant!

Why doesn't the taskboard just show ALL tasks in an iteration? It makes so much more sense, allows you to link tasks parent/child and removes the overhead of constant one-to-one PBI/Tasks.

As it stands, it is not only the overhead which is a pain, but it's also difficult for people to add new tasks in. Some don't know where to add the PBI and that it needs a task, some are adding tasks with no parents and so get lost in the system and I have to create a task for every PBI that someone adds before moving it to a sprint. It makes no sense to me to have such an overhead and/or to restrict the task board to show only tasks with a parent PBI/User Story with no configuration possibility. [Also that tasks with a parent task do not show correctly (parent disappears)]

My questions are - why is it like this? are there any plans to change this in the future? is it just me with this problem!?

Add Tags Programmatically To Work Items

$
0
0

Hello,

I want to be able to mass update work items with a certain tag programmatically. Is there currently a way to do this? I've checked the workitem class and have seen that there is a tags property that is readonly. Is there another way to accomplish this through code?

Best,

Michael

TFS294012 Error on UnmapPWAFromCollection

$
0
0

Hi All,

I am trying to unmap my team project collection from MS Project (PWA).  However, I get the following error message:

"....TF294012: Cannot access the following enterprise project: . Verify that the project exists, has been published and that the necessary permissions have been granted to the service account for the team project collection to access the project."

Looking at the error message, it is not showing me the name of the enterprise project... blank.  I have checked the permissions and they all look fine. Any suggestions on how I can resolve this?

Thanks


Copy / Merge Code on checkin

$
0
0

Hi All

We have the below structure in our TFS repository.

MobileApp (Root folder , 1st Level)

    WWW

    JS

    Images

   HTML

 iOS (2nd level)

 Android (2nd Level)

Folders ios and android also have WWW, JS ,Images and HTML folder.

When I checkin files in say WWW folder I want the same to be copied or overwritten in the ios -> WWW folder.

Please do let me know how this can be done.

Thanks

Ramesh

Warehouse not being synched with TFS 2010

$
0
0

Hi guys

             I have ask this question mutiple times on MSDN forums but i don't know why it is closed and marked as answered without my consent.

Kindly don't close till i get my solution.

It's being long when i am unable to :

Sync Active directory users into TFS. Newly created users in AD group are unable to access TFS 2010.

Reports of TFS2010 are not being compiling. TFS_Analysis and TFS_Warehouse not being Build.

When i try to start reporting services. it get started but giving following error on "Start Rebuild".

TFS221100: The database doesn't contain the expected datasource tfs_analysisdatasource,and no data readercredentials were supplied. 

Kindly provide solution , why it is being happening.

2nd::

When i try to Build it through Web Services and open below URL , it shows:

Service: 

GetProcessingStatus:: 

The website cannot display the page

ProcessWarehouse

The website cannot display the page

ProcessAnalysisDatabase

TF221023: The Team Foundation Analysis Services processing is offline. To call ProcessAnalysisDatabase(), the Analysis Services processing must be online. Use the Team Foundation Administration Console to start reporting for Team Foundation Server, or call BringAnalysisProcessingOnline(). ---> TF221023: The Team Foundation Analysis Services processing is offline. To call ProcessAnalysisDatabase(), the Analysis Services processing must be online. Use the Team Foundation Administration Console to start reporting for Team Foundation Server, or call BringAnalysisProcessingOnline().

It is sucking me here. I am unable to manage TFS Administration here. Kindly provide me comprehensive solution in this regard.

Thanks

Waseem Bukhari

CMer


WSBukhari


TFS 2012 version control queries

$
0
0

Dear All,

Please find below some of the queries or issues in TFS Version control: 

  1. In a code review request Workitem there should be a dead line (date)to review the code, if the review is not done then automatic mail should trigger to reviewer.
  2. When we request a code review, the reviewer will send comments to add few more lines of code or change something, now the developer should be able to change the code and resend the file for the same code review request.

Branch and Merge scenarios

Observations

  1. Merging based on changeset; it should merge only changes in that changeset id. (cherry pick the change)
  2. Merging based on Workitem. Right click on that changeset link in Workitem and merge to other branches
  3. Record the merge without text/actual merge. (record-only merge in SVN)
  4. Checkout deny at branch level

After denying the check-out permission for a branch still the user can check-out the branch

  5. Renaming of Branch:

Renaming of branch removes history and labels. But can see history at the file/folder level under that branch. Because TFS deletes and creates a new branch.

  6. Label history and Locking of label

  7. View label at branch level when we apply a label on file within the same branch.

Not possible through “view history” but you can view through “Find Label”.

It would be great if you can let me know answers or workaround for the above questions, and if it is not possible currently which release of TFS will it include these asks.

Thanks,

Nagaraj

TFS 2013 Error - no source control folder

$
0
0

Hi,

We are receiving following error all of a sudden for one of our TFS 2013 projects

'no source control folder'

How do we create a new source control folder in TFS 2013

Its urgent.Please advice.

Thanks


Combine two TFS 2013 servers

$
0
0

Hi,

We have two TFS 2010 servers upgraded to TFS 2013 servers. We now want to consolidate them in one server.How do I move collections from one physical server to another.

Thanks

where to find trend chart from query on TFS server 2013 update2 web access

$
0
0

From Visual studio website , it shows TFS support trend charts. But I don’t find trend charts in TFS 2013 Update2 server.

http://www.visualstudio.com/get-started/visualize-progress-vs

In our TFS server , only has snap charts

The server version is TFS2013 update2  (12.0.30324.0) ,installed on win2k8 r2

And Installed with default settings.

Where can I find the trends charts to use?

CreateInstance failed for package [Microsoft.VisualStudio.TeamFoundation.TeamFoundationHost, Microsoft.VisualStudio.TeamFoundation, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]

$
0
0

i'm receiving this error trying to connect to tfs. i'm using visual studio 2012 web express with update 4.

can anyone give me a solution for this.

...

  <entry>
    <record>392</record>
    <time>2014/07/25 07:06:10.969</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [Microsoft.VisualStudio.TeamFoundation.TeamFoundationHost, Microsoft.VisualStudio.TeamFoundation, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]</description>
    <guid>{B80B010D-188C-4B19-B483-6C20D52071AE}</guid>
    <hr>80131522</hr>
    <errorinfo>Could not load type 'Microsoft.TeamFoundation.Client.ITeamFoundationContextManager2' from assembly 'Microsoft.TeamFoundation.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.</errorinfo>
  </entry>
  <entry>
    <record>393</record>
    <time>2014/07/25 07:06:10.969</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [Microsoft.VisualStudio.TeamFoundation.TeamFoundationHost, Microsoft.VisualStudio.TeamFoundation, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]</description>
    <guid>{B80B010D-188C-4B19-B483-6C20D52071AE}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo>Could not load type 'Microsoft.TeamFoundation.Client.ITeamFoundationContextManager2' from assembly 'Microsoft.TeamFoundation.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.</errorinfo>
  </entry>
  ..

  <entry>
    <record>396</record>
    <time>2014/07/25 07:06:15.565</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [Microsoft.VisualStudio.TeamFoundation.TeamFoundationHost, Microsoft.VisualStudio.TeamFoundation, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]</description>
    <guid>{B80B010D-188C-4B19-B483-6C20D52071AE}</guid>
    <hr>80131522</hr>
    <errorinfo>Could not load type 'Microsoft.TeamFoundation.Client.ITeamFoundationContextManager2' from assembly 'Microsoft.TeamFoundation.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.</errorinfo>
  </entry>
  <entry>
    <record>397</record>
    <time>2014/07/25 07:06:15.565</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [Microsoft.VisualStudio.TeamFoundation.TeamFoundationHost, Microsoft.VisualStudio.TeamFoundation, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]</description>
    <guid>{B80B010D-188C-4B19-B483-6C20D52071AE}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo>Could not load type 'Microsoft.TeamFoundation.Client.ITeamFoundationContextManager2' from assembly 'Microsoft.TeamFoundation.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.</errorinfo>
  </entry>
  ...
  <entry>
    <record>405</record>
    <time>2014/07/25 07:08:23.661</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [Microsoft.VisualStudio.TeamFoundation.TeamFoundationHost, Microsoft.VisualStudio.TeamFoundation, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]</description>
    <guid>{B80B010D-188C-4B19-B483-6C20D52071AE}</guid>
    <hr>80131522</hr>
    <errorinfo>Could not load type 'Microsoft.TeamFoundation.Client.ITeamFoundationContextManager2' from assembly 'Microsoft.TeamFoundation.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.</errorinfo>
  </entry>
  <entry>
    <record>406</record>
    <time>2014/07/25 07:08:23.661</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [Microsoft.VisualStudio.TeamFoundation.TeamFoundationHost, Microsoft.VisualStudio.TeamFoundation, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]</description>
    <guid>{B80B010D-188C-4B19-B483-6C20D52071AE}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo>Could not load type 'Microsoft.TeamFoundation.Client.ITeamFoundationContextManager2' from assembly 'Microsoft.TeamFoundation.Client, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.</errorinfo>
  </entry>
</activity>


Viewing all 6687 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>