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

TFS Admin Console backups not truncating transaction log

$
0
0

Hello, I'm using TFS 2012 Update 4. I've setup nightly scheduled backups from within the Team Foundation Server Administration Console. Backups are completing each night at 2:00 AM. A full backup .bak file and a .trn file are generated each night. This seems ok.

But when I look at the actual database files (for one collection) the transaction log has grown bigger than the database file and the timestamp for both is a month old. I don't think the transaction log is getting truncated.

Any thoughts on what my next step should be? Should I do full and transaction log backups in SQL to get the transaction log to truncate?

TIA.


Problems Building a WEC2013 SDK project using TFS 2013

$
0
0

I have been working for a week trying to figure out how to build a project that references a WEC2013 SDK on TFS Server 2013.

Our projects all target an SDK made for Windows Embedded Compact 2013 OS. All the necessary components are installed on the server including WEC2013 (Platform builder), the targeted SDK, Visual Studio Professional 2013 and 2012.

We use GIT for our source control.

When I build using the Default Template (GitTemplate.12.xaml) we get errors like that shown below.

C:\Builds\2\CODE_CommonLibs\Poco Foundation Build 2\src\Foundation\include\Poco/UnWindows.h(78): fatal error C1083: Cannot open include file: 'windows.h': No such file or directory [C:\Builds\2\CODE_CommonLibs\Poco Foundation Build 2\src\Foundation\Foundation_CE.vcxproj]
         Base32Encoder.cpp

If I logon to the server and from a command prompt run MsBuild I can build it just fine. It seems running the build from TFS doesn't load the same paths, variables or what not as when running from a command prompt.

Any help would be appreciated.

Thanks

Cannot create\modify work item after upgrade to TFS2013 (Ajax request has been timed out.)

$
0
0

I have migrated my TFS 2012.2 server to new hardware and upgraded to TFS 2013.

The upgrade went fine and I can access and query TFS without issues.
But as soon as I want to create a new work item or want to modify an existing work item I get: "Ajax request has been timed out."

Old server: win 2008 R2, SQL Server 2008 R2.
New server: win 2012, SQL Server 2012 SP1, CU2. New server contains reporting and sharepoint as well.

After this failure I removed all features and did a standard install on the TFS server. This went fine and in this setup I can create work items.

Removed the standard install and redid the upgrade. Again the same problem appeared.
We have 4 different project collections and this issue appears on all collections.

Eventlog shows 'A request for service host xxx has been executing for 31 seconds, exceeding the warning threshold of 30.'

Even after I increase this timeout (to 400 seconds) I keep getting this issue.

I have done an SQL trace while trying to create a new work item.
Below two pieces of SQL trace. First is the code that is executed as last to log the error. Second is the actual SQL code that fails\aborts after more than 300 seconds and 300 seconds of CPU time and more that 103.000.000 reads.

Any ideas on what to change on my as good as out of the box SQL configuration??

declare @p3 dbo.typ_ParamTable
insert into @p3 values(0,'updatePackage',0,N'System.Collections.Generic.List`1[Microsoft.TeamFoundation.Server.WebAccess.WorkItemTracking.Common.WorkItemUpdate]')
insert into @p3 values(0,'ExceptionType',-1,N'CancelledByUserException')
insert into @p3 values(0,'ExceptionMessage',-2,N'CancelledByUser')
insert into @p3 values(0,'ActivityId',-3,N'd7b9e953-345a-001b-2dea-b9d75a34cf01')
exec prc_LogActivity @partitionId=1,@commands=@p2,@params=@p3

declare @p8 dbo.typ_StringTable
insert into @p8 values(N'useraccount')

declare @p9 dbo.typ_WitFieldValueTable
insert into @p9 values(-5,N'System.Id',-5,0)
insert into @p9 values(-5,N'System.Rev',0,0)
insert into @p9 values(-5,N'System.Title',N'400',0)
insert into @p9 values(-5,N'System.State',N'New',0)
insert into @p9 values(-5,N'System.ChangedBy',N'useraccount',0)
insert into @p9 values(-5,N'System.Reason',N'New',0)
insert into @p9 values(-5,N'System.WorkItemType',N'Team',0)
insert into @p9 values(-5,N'System.CreatedDate',NULL,1)
insert into @p9 values(-5,N'System.CreatedBy',N'useraccount',0)
insert into @p9 values(-5,N'System.AreaId',28433,0)
insert into @p9 values(-5,N'System.IterationId',31690,0)
insert into @p9 values(-5,N'System.ChangedDate',NULL,1)

declare @p10 dbo.typ_WitTextInsertTable
insert into @p10 values(-20005,1,0,N'400',1)

exec sp_executesql N'set nocount on
declare @fRollback as bit; set @fRollback=0;
declare @ForceRollbackError as int; set @ForceRollbackError=0;
declare @fVerbose as bit; set @fVerbose=0;
declare @NowUtc as datetime; set @NowUtc=getutcdate()
declare @fAdmin bit; set @fAdmin = 0;
declare @status int; set @status = 0;
declare @tempIdMap typ_WitTempIdMapTable;
declare @PersonId as int
declare @rebuildOK as int
declare @PersonName as nvarchar(256)
declare @userSID as nvarchar(256)
set @userSID=@P1
exec @rebuildOK=dbo.RebuildCallersViews @partitionId,@PersonId output,@P1
if @rebuildOK<>0 return

select @PersonName = DisplayPart from dbo.Constants where SID = @P1 and PartitionId=@partitionId OPTION (OPTIMIZE FOR (@partitionId UNKNOWN))
select Dbo.GetDbStamp(@partitionId,default,6) as DbStamp OPTION (OPTIMIZE FOR (@partitionId UNKNOWN))
set xact_abort on;set implicit_transactions off;set transaction isolation level serializable;begin transaction

declare @distinctPersonCount int
declare @distinctPersonNames dbo.typ_StringTable
insert into @distinctPersonNames
 select distinct * from @personNames
set @distinctPersonCount = @@rowcount
declare @personIdMap typ_WitConstIdMapTable;
if (@distinctPersonCount > 0)
begin
 insert into @personIdMap select * from [dbo].[GetConstantsForWorkItems](@partitionId,@distinctPersonNames)
 option (optimize for(@partitionId unknown))
 if (@@rowcount < @distinctPersonCount)
 begin
  declare @newPersonNames dbo.typ_StringTable;
  insert into @newPersonNames (Data) select Data from @distinctPersonNames where Data not in (select DisplayPart from @personIdMap);
  exec @status = [dbo].[AddServerConstants] @partitionId,@newPersonNames
  if @status <> 0
  begin
   rollback transaction
   return
  end
  delete from @personIdMap
  insert into @personIdMap select * from [dbo].[GetConstantsForWorkItems](@partitionId,@distinctPersonNames)
  option (optimize for(@partitionId unknown))
 end
end
insert into @tempIdMap exec dbo.[CreateWorkItemsFromValues] @partitionId,@PersonId,@NowUtc,-1,@newIssueFieldValues,@personIdMap
exec dbo.[WorkItemAddTexts] @partitionId,@newTexts, @tempIdMap, @NowUtc
if (@@trancount = 0) return
select TempId, Id from @tempIdMap
exec dbo.[WorkItemAuthorizeChanges] @partitionId,@PersonId,@NowUtc,@fVerbose,@fRollback output,@bypassRules,@isServiceAccount
if (@fRollback = 1)
begin 
 exec dbo.GetForceRollbackErrorCode @partitionId,@PersonId,@NowUtc,@ForceRollbackError output
end
exec dbo.ForceRollback @fRollback, @ForceRollbackError
if @@trancount=0 return
exec dbo.[WorkItemApplyChanges] @partitionId,@PersonId,@NowUtc,null;
set transaction isolation level read committed;commit transaction
exec dbo.[WorkItemGetComputedColumns] @partitionId,@NowUtc,@P8
set nocount off
',N'@partitionId int,@P1 nvarchar(4000),@isServiceAccount bit,@bypassRules bit,@isBulkUpdate bit,@personNames [typ_StringTable] READONLY,@newIssueFieldValues [typ_WitFieldValueTable] READONLY,@newTexts [typ_WitTextInsertTable] READONLY,@P8 nvarchar(max) ',
@partitionId=1,@P1=N'sid',@isServiceAccount=1,@bypassRules=0,@isBulkUpdate=0,@personNames=@p8,@newIssueFieldValues=@p9,@newTexts=@p10,@P8=N'[a long list of field names]'

 

TFS Displayed content is truncated due to maximum viewable content limit.

$
0
0

When viewing code files from TFS 2013 web access within a shelveset. I see this message.

"Displayed content is truncated due to maximum viewable content limit."

Is there setting to change the limit? I would like to see the full content.


On branch - automatically run batch file (zip folder, copy elsewhere, etc)

$
0
0

Hi,

When I branch a solution, is it possible to zip and copy the contents of the old folder to a network path?

We currently do this manually for (a) second set of backups and (b) escrow. It would be useful to automate it!

Modify TFS 2012 Default Template for Nuget solution restore?

$
0
0

I understand that TFS 2013 will have a new build template with a restorenugetpackages property (see here).  However, not sure when we will upgrade from TFS2012 to 2013.   Can I modify the default build template in TFS2012 to do something similar (restore nuget packages for the solution)?  If so, how do I do this?


Create a fake build with TfsCreateBuild tool, Error:TF42073: The value cannot be null (Parameter name: DropLocation)

$
0
0

Hi,<o:p></o:p>

I have been trying to execute automated
tests over a web application, using Microsoft Test Manager and TFS.
The general idea is to run automated tests via TFS.<o:p></o:p>

I have seen a lot of tutorial and guides to do this
but with no success so far.<o:p></o:p>

Because I haven't the need to create builds in
TFS, a used TfsCreateBuild tool to create a fake build, but I get an error:

(Windows console)

D:\Desktop>TfsCreateBuild.exe /collection:"http://< TFS SERVER >/tfs/" /projec
t:"Teste SQA" /buildDefinition:"Build Test Definition" /buildNumber:"FAKE_BUILD_
240620141042" /status:"Succeeded" /flavor:"Debug" /platform:"x86" /target:"defau
lt" /dropLocation:"//<TFS SERVER>/Builds"
TfsCreateBuild Command Line Utility, Version 12.14.527.1
(C) 2014 Neno Loje. All rights reserved.

Creates a build entry in Team Foundation Server without running it.

Passed in parameters:
  collection      : http://< TFS SERVER >/tfs/
  project         : Teste SQA
  builddefinition : Build Test Definition
  buildnumber     : FAKE_BUILD_240620141042
  status          : Succeeded
  flavor          : Debug
  platform        : x86
  target          : default
  droplocation    : //< TFS SERVER >//Builds

Connecting to server... done

Creating build...
Error: TF42073: The value cannot be null (Parameter name: DropLocation)
Error log written to: C:\Users\adilson.cabral\AppData\Local\Temp\ExceptionInfo_T
fsCreateBuild.exe.txt

As you can see the droplocation is defined but the
tool say otherwise.<o:p></o:p>

If you have any idea what is the problem, or the
possible problems, please let me know!

And i would be great, if you could give a step by step guide of how to do automated tests over any web aplication using TFS 2013, Mircrosoft Test Manager 2013 and Visual Studio Ultimate 2013 (CodedUI), where the only mandatory tool to use is TFS 2013.

Thank you!

Description in TFS task work item Behaves Wrong

$
0
0

Hi Team,

When i try to paste the link into TFS task work item Description (which is HTML) and try to save the work item. 

when i try to reopen the link by clicking on the link and Navigate then select the link , this throws an error as mentioned below.

This error is because after we save the work item the TFS Save the link address with some wrong data. once we save the good link and then if we copy the same link and paste it into browser will also display the same error.

In the TFS work item save action the Link address is missing. Could you please investigate further and update me asap.

.Backend ERROR: OTRS-CGI-10 Perl: 5.8.8 OS: linux Time: Wed Jun 25 14:33:56 2014 Message: Module Kernel/Modules/AgentZoomTicketID511582.pm not found! RemoteAddress: 10.91.20.164 RequestURI: /otrs/index.pl?Action=AgentZoom%3bTicketID=511582 Traceback (19112): Module: Kernel::System::Web::InterfaceAgent::Run (OTRS 3.2.15) Line: 188 Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 41 Module: (eval) (v1.99) Line: 204 Module: ModPerl::RegistryCooker::run (v1.99) Line: 204 Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170 Module: ModPerl::Registry::handler (v1.99) Line: 31

Thanks 

Hem

Error Details

Backend ERROR: OTRS-CGI-10 Perl: 5.8.8 OS: linux Time: Wed Jun 25 14:33:56 2014 Message: Module Kernel/Modules/AgentZoomTicketID511582.pm not found! RemoteAddress: 10.91.20.164 RequestURI: /otrs/index.pl?Action=AgentZoom%3bTicketID=511582 Traceback (19112): Module: Kernel::System::Web::InterfaceAgent::Run (OTRS 3.2.15) Line: 188 Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 41 Module: (eval) (v1.99) Line: 204 Module: ModPerl::RegistryCooker::run (v1.99) Line: 204 Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170 Module: ModPerl::Registry::handler (v1.99) Line: 31

Error Details

Backend ERROR: OTRS-CGI-10 Perl: 5.8.8 OS: linux Time: Wed Jun 25 14:33:56 2014 Message: Module Kernel/Modules/AgentZoomTicketID511582.pm not found! RemoteAddress: 10.91.20.164 RequestURI: /otrs/index.pl?Action=AgentZoom%3bTicketID=511582 Traceback (19112): Module: Kernel::System::Web::InterfaceAgent::Run (OTRS 3.2.15) Line: 188 Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 41 Module: (eval) (v1.99) Line: 204 Module: ModPerl::RegistryCooker::run (v1.99) Line: 204 Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170 Module: ModPerl::Registry::handler (v1.99) Line: 31

TF400314: An error occurred while attempting to verify the collection databases.

$
0
0

Hi,

I get this error when trying to upgrade TFS 2010 Update 2 to TFS 2013 Update 2. I had previously updated from TFS 2010 to 2010 Update 2 with no issues.

I am using SQL 2012 Express with SP2 on Windows Server 2012 Standard

[Info   @16:28:05.692] +-+-+-+-+-| Running VerifyCollectionsReachable: Verifying the collection databases are reachable |+-+-+-+-+-
[Info   @16:28:05.692]
[Info   @16:28:05.692] +-+-+-+-+-| Verifying the collection databases are reachable |+-+-+-+-+-
[Info   @16:28:05.692] Starting Node: VCOLLECTIONSREACHABLE
[Info   @16:28:05.692] NodePath : VINPUTS/Progress/Conditional/VPCUPGRADE/VCOLLECTIONSREACHABLE
[Info   @16:28:05.706] Getting Reachable Collections
[Info   @16:28:05.821] Scanning for Team Project Collection databases.
[Info   @16:28:40.013] Configuration database instance stamp is eb67696c-c720-427d-92eb-94776519bd6e
[Error  @16:28:40.283]
Exception Message: Data is Null. This method or property cannot be called on Null values. (type SqlNullValueException)
Exception Stack Trace:    at System.Data.SqlClient.SqlBuffer.get_String()
   at Microsoft.TeamFoundation.Framework.Server.ServiceHostPropertiesBootstrapBinder.Bind()
   at Microsoft.TeamFoundation.Framework.Server.ObjectBinder`1.ObjectEnumerator.MoveNext()
   at Microsoft.TeamFoundation.Framework.Server.ObjectBinder`1.ObjectEnumerator.get_Items()
   at Microsoft.TeamFoundation.Admin.HostRegistration.GetCollectionHostPropertiesDictionary(ISqlConnectionInfo configConnectionInfo, Guid configInstanceId, Boolean& isFixupRequired)
   at Microsoft.TeamFoundation.Admin.HostRegistration.ScanCollections()
   at Microsoft.TeamFoundation.Admin.VerifyCollections.GetCollections(String key)

[Info   @16:28:40.290] Getting Unreachable Collections
[Info   @16:28:40.290] Node returned: Error
[Error  @16:28:40.296] TF400314: An error occurred while attempting to verify the collection databases.  Verify that the Configuration database is valid.
[Info   @16:28:40.296] Completed VerifyCollectionsReachable: Error
[Info   @16:28:40.296] -----------------------------------------------------

I also get the same error when trying to upgrade TFS 2010 Update 2 to TFS 2010 Update 3 and 4

Thanks,

Dale


What is the command line syntax for Reapply Account on the Application Tier Window

the item was not renamed in the source control database

$
0
0

I get this every time I create a new SSAS project - the default filename for the tabular model is model.bim, and when I rename it, this error pops up. In source control I will then have the .bim file with the new name AND the model.bim, but in my project there is only the renamed .bim. I have to go in to source control explorer and manually delete the file every time. This behavior has been occurring since SSAS tabular models were first introduced into SSDT-BI. It's happened with TFS 2010, and now TFS 2013. Would anyone happen to know what causes this behaviour, and how to rectify it?

I have a slew of other TFS/SSDT-BI issues, but I'll leave it at that for now.

Error connection to server

$
0
0

I´ve just installed a new domain controler (Windows server with AD).

Then i´ve migrated my computer into the newly created domain, all all local user acconts settings have been migrated in the local machine. (usinghttp://server/connect page)

(I, am administrador on both - domain and local machine)

Now, when i open Visual Studio 2013 and try to connect to the server i get the following error message:

TF31001 cannot connect to server. then these details appear:

TF205020: Could not connect to server ‘https://xxx.visualstudio.com/defaultcollection’. This server was used in your last session, but it might be offline or unreachable. Confirm that the server is available on the network. To attempt to connect again, or to a different server, click ‘Connect To Team Foundation Server’ in Team Explorer or the Team menu.

The server returned the following error: Chave inválida para uso no estado especificado.

We were unable to automatically populate your Team Foundation Service accounts.

The following error was encountered: Chave inválida para uso no estado especificado.

Obs.: there is another computer (that i´ve not yet migrated to the new domain) - it´s still working.

I´ve tried to remove and add the server ... doesn´t work ...

no idea what to do now ....

Architecture Explorer Work Item Extension

$
0
0

1. Specific Question : Can u please relate to "Architecture Explorer Work Item Extension" for Visual Studio as a tool for graphically displaying relations between work items ? Any hand on experience ?

2. General Question : Does Microsoft validate extensions published on visualstudiogallery site, i.e. is it correct to assume they can be used safely as per correct operation in general, same as Microsoft products themselves ?

Accessing TFS through web browser. I am getting a blank screen as attached.

$
0
0

Hi All,

I am not able view all the data in the Team web access. Anyone please help on this.. 

Environment details:

TFS details:  OS: windows server 2008 r2, Web server:  IIS7.0, TFS: TFS 2013 update 2, Client: Visual studio premium 2013, web browser IE 8.

SQL Server Details: OS: Windows server 2008 r2, SQL Server: SQL 2012 SP1

We check the web url of tfs in chrome lastest version. In chrome also having same page as shown below.


Code Merging Issues TFS 2010

$
0
0

Hi Guys

                We are facing some critical issues in Merging Code of TFS 2010. Before i report anything , i just want to confirm :

1) Is it necessary to get latest code of target branch before start merging. What will happen if i ignore to get Latest and merge??

>>>>>>>>>>>>>>>>>>>>>>>>>>>>

What do we mean byGET LATEST inTFS 2010??Kindly explain. How it works if i am Doing get latest and Files already exist on my Work space.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>

2) Is it possible TFS may ignore file conflicts and merge wrongly.

At the end , please share BEST PRACTICES of Merging Code in TFS. 

Waseem Bukhari

CMer



WSBukhari


What's DNS suffix when configuring the Lab Environment?

$
0
0

Hi,

I'd like to set up my Lab Environment with TFS.

I already have SCVMM server and hyper-v hosts.

But when i configure Lab Environment in TFS, it requires DNS suffix in Network Isolation tab.

What's DNS suffix and Where can i find it?

I'm in a domain which controlled by another one. So if it's info entry from Domain Controller, does that mean i have to set up my private domain environment?


Change user custom display name from api

#Load testing with data driven web test - how load test take that data?

$
0
0

I have a simple query 

If My web Test is data driven with 10# of username & passwords  and then I add that web Test to load test. 

with both patterns Step load (5 to 500) and Constant load (of 50). 

How load test hit/take those 10# rows of  username & passwords and how can I verify that all these have been entered while load testing. 

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


Integrate Microsoft Team Foundation server with Freshdesk support portal

$
0
0
Hi,
 
We want to integrate Microsoft Team Foundation server with Freshdesk support portal. Following is my requirement in this regard.
 
1. Create a button in the right side pane of the ticket details page in freshdesk site.
2. When clicked on the button, a popup window should appear with all the ticket information along with attachments.
3. On submit of the page, it should send the request to the TFS so that it will add a work item in the TFS and return the work item id.
4. When user opens the ticket details page next time, it should fetch the work item status from the TFS and display it on the tickets details page.
 
Is it possible? Waiting for reply .
 

Thanks,

Praveen.


Viewing all 6687 articles
Browse latest View live


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