DCSIMG
August 2009 - Posts - Shai Raiten's Blog

Shai Raiten's Blog

It's all about code...

August 2009 - Posts

Problem Creating Work Item Store From Web Service (Work Item Tracking Metadata Cache)

Problem Creating Work Item Store From Web Service (Work Item Tracking Metadata Cache)

I create a Web Service for a customer and during the development I had a little problem getting WorkItemStore object.

Error 1:

Cannot complete the operation. An unexpected error occurred.
Stake:   at Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.HandleComException(Int32 hr)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.DatastoreClass.ConnectEx(String connectionString, Int32 hCredentials, String defaultCachePath, String instanceId, String userSamName, String userFriendlyName, String userSid)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.InitializeInternal()
   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.Microsoft.TeamFoundation.Client.ITeamFoundationServerObject.Initialize(TeamFoundationServer teamFoundationServer)
   at Microsoft.TeamFoundation.Client.TeamFoundationServer.CreateITFSObjectInstance(Assembly assembly, String fullName)
   at Microsoft.TeamFoundation.Client.TeamFoundationServer.GetService(Type serviceType)
   at WorkItemChangeService.WorkItemChangeEvent.Notify(String eventXml) in D:\Shai Raiten\Visual Studio 2008\Projects\WorkItemChangeService\WorkItemChangeService\WorkItemChangeEvent.asmx.cs:line 42.

Error 2:

Detailed Message: TF200034: A subscriber to a Team Foundation event (subscription ID=312) raised the following exception:
Exception Message: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> Microsoft.TeamFoundation.WorkItemTracking.Client.UnexpectedErrorException: Cannot complete the operation. An unexpected error occurred. ---> Microsoft.TeamFoundation.WorkItemTracking.Client.ClientException: Access is denied.
(Windows)
Could not create metadata cache directory 'C:\Documents and Settings\Default User\Local Settings\Application Data\Microsoft\Team Foundation\2.0\Cache\c9a5515a-0e91-4550-9c54-74c84a4cfd97'. (Work Item Tracking Metadata Cache)
The system cannot find the path specified.
(Windows)
Could not create metadata cache directory 'C:\Documents and Settings\Default User\Local Settings\Application Data\Microsoft\Team Foundation\2.0\Cache\c9a5515a-0e91-4550-9c54-74c84a4cfd97\0'. (Work Item Tracking Metadata Cache)
Could not open file ''. (Work Item Tracking Metadata Cache)
Access is denied.
(Windows)
Could not create metadata cache directory 'C:\Documents and Settings\Default User\Local Settings\Application Data\Microsoft\Team Foundation\2.0\Cache\c9a5515a-0e91-4550-9c54-74c84a4cfd97'. (Work Item Tracking Metadata Cache)
The system cannot find the path specified.
(Windows)
Could not create metadata cache directory 'C:\Documents and Settings\Default User\Local Settings\Application Data\Microsoft\Team Foundation\2.0\Cache\c9a5515a-0e91-4550-9c54-74c84a4cfd97\0'. (Work Item Tracking Metadata Cache)
Could not open file ''. (Work Item Tracking Metadata Cache)
Could not initialize metadata cache for product 'c9a5515a-0e91-4550-9c54-74c84a4cfd97'. (Work Item Tracking Metadata Cache)
Unspecified error
(Windows)
   --- End of inner exception stack trace ---
   at WorkItemChangeService.WorkItemChangeEvent.Notify(String eventXml) in D:\Shai Raiten\Visual Studio 2008\Projects\WorkItemChangeService\WorkItemChangeService\WorkItemChangeEvent.asmx.cs:line 55
   --- End of inner exception stack trace --- (type SoapException)

Exception 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.TeamFoundation.Server.NotificationClient.Notify(String eventXml, String tfsIdentityXml, SubscriptionInfo SubscriptionInfo)

 

The problem is in the ClientCacheDirectoryForInstance property on the TeamFoundationServer class.

The problem was fixed by giving write permissions for the application pool to the Cache folder.

The Solution

Enable Integrated Windows Authentication and Turn Off Anonymous Access

Open inetmgr, right click “Web Application” and choose properties.

Select “Directory Security” and enter “Authentication Methods

Clear all checkbox except “Integrated Windows Authentication”.

image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Create an Application Pool for a Web Application

Create a default application pool and enter the Identity  of the user name for the domain account under which you want your Web page to run in the User name field, using the domain\user name format.

 1

 

Change Web Application to Work With the New ApplicationPool

 2

This will fix the problem.

PHP SDK for Windows Azure

PHP SDK for Windows Azurephpazure_logo

Maarten Balliauw has recently made available a PHP SDK for Windows Azure on CodePlex.

As part of Microsoft’s commitment to Interoperability, this open source project is an effort bridge PHP developers to Windows Azure. PHPAzure is an open source project to provide software development kit for Windows Azure and Windows Azure Storage – Blobs, Tables & Queues

See CodePlex Project

 logical_architecture

 

Posted: Aug 21 2009, 06:52 PM by shair | with 3 comment(s)
תגים:, , ,

Team System Has Been Captured!

Team System Has Been Captured!

Nice screenshot on Fox News.com – what is the main story? :-D

image

Posted: Aug 18 2009, 06:02 AM by shair | with no comments |
תגים:

Customizing TFS 2010 Process Template – Test & Lab Manager

Customizing TFS 2010 Process Template – Test & Lab Manager

With Visual Studio Team System and the integrated process templates, teams can deliver predictable results, continuously improve and adapt, and effectively collaborate and communicate with team members and stakeholders. One process does not fit all software projects or teams. Visual Studio Team System includes Microsoft Solutions Framework (MSF) for Agile Software Development and MSF for CMMI Process Improvement.
In addition, partner organizations offer processes including SCRUM, EUP and FDD for Visual Studio Team system.
These templates can be used as is, or customized to enact your development process.

TFS 2010 Process Template contains couple of changes that can save you a lot of time while working with more than one Team Project.

The new folder placed under the template root called - Test Management, inside you will see couple of new xml files and one test settings file.

The first file I want to talk about is the Test Variable.image

One of many options in Microsoft Test & Lab Manager is to create a configuration matrix to reach a better test cover.
Instead of creating Test Variables in each Team Project you can modify the process template so those values will be default in each Team Project.

  testvariable.xml

image

The second file is testresolutionstate.xml that define the test result Resolution.

image

Example:

image

 

The third is Test Configurations, for each test plan you can define the configurations you want to execute (based on Test Variables)

image

testconfiguration.xml

image

The last file is Test Settings file, you can define more than one default test settings. For example:

1. Test Settings with Action Log. - Light

2. Testing Settings with ASP.Net profiler,Video Recording and Diagnostic Trace Collector – Heavy

Open “localrun” file and edit in Visual Studio 2010, perform your changes and save with different name.

image

image

testsettings.xml

image

Enjoy.

Team System 2010 – Managing Queries Folders\Security

Team System 2010 – Managing Queries Folders\Security

What is Queries ? Queries allow you to find work items that match a specific set of criteria. You can create, run, edit, copy, delete, and rename queries.

Team System contains default team queries, such as All Work Items, All Tasks, and All Issues.
You can create new team queries and private queries, known as My Queries, that you can customize with detailed search criteria.

One big change in Visual Studio Team System 2010 is in the Work Item area, hierarchy, links, depended item and one more thing is Folder in “Team Queries”.image

In Visual Studio 2008 this “Small”  issue was a blocker, because 60 different queries under the root is not so comfortable.

In Team System 2010 you can create as many folder as you need under the “Team Queries”

How to Create Queries Folders

1. Right click on “Team Queries” and “New Folder”, give it a proper name.

image

How to Create Queries Security Rules

2. Setup Folder Security, we can hide queries that irrelevant or “secret” queries.

image

In the Security tab we can define permissions to User or Group.

image

 

I changed that Tester group can only see “Test” query folder and now I don’t have so many queries  when working.

image 

image

Enjoy.

Team System 2010 – Working With Team Project Collection

Team System 2010 – Working With Team Project Collection

Team System 2010 comes with many great improvements, the one I'm going to talk about in this post is – Team Project Collection.

In Team Foundation 2005 & 2008, a team project is a collection of work items, code, tests, work products, metrics, and so forth that is used by a defined team to track a common set of related work.
The logical concept of a team project helps you determine what to include or exclude from the development of a software application.
The concept of the team project is then implemented through the physical tools, groupings, and workflows, and so forth of Team Explorer and Team Foundation Server. The conceptual boundary you draw around your team project has important implications for how you structure your team project and for when you transition from one team project to another.

Let's say that we developing a new product, this product contains 5 sub products, so we need to create 5 team project. But when developing more than one big product you get a lot of sub project in the team project list.

In VSTS 2010 Microsoft add a new feature called "Team Project Collection", this allows you to create a higher hierarchy for your product.

To manage or product we'll create a new "Team Project Collection" and under him we will add our sub products.
Each "Team Project Collection" start work item count from 1 unlike VSTS 2005,2008.

How to create new "Team Project Collection":

Step 1: Enter to "Team Foundation Administration Console" (Located in – C:\Program Files\Microsoft Team Foundation Server 10.0\Tools\TfsMgmt.exe")

image

Step 2: Beneath "Application Tier" click on "Team Project Collections" node.

image

Step 3: Click on "Create Team Project Collection" and start enter all the information and settings for this collection.

image

Step 4: After the Project Collection finished you will return the main screen.
Set Project Security and Group Membership for this collection.
You can even stop a collection and define the reason so users who will try to enter this collection see your reason.

image

Windows 7 RTM now available for MSDN Subscribers

Windows 7 RTM now available for MSDN Subscribersaa336858_win7banner_msdn_EN(en-us,MSDN_10)

Just to let you know that Windows 7 RTM is available for MSDN subscribers.

I've already started to download both versions and can't wait to install and see all new improvements.

And if you want it there is a Hebrew support…

image

Posted: Aug 06 2009, 08:37 PM by shair | with no comments
תגים:,

How To: Enable+Disable Just-In-Time Debugging

How To: Enable+Disable Just-In-Time Debugging

In Visual Studio Team System each tester had VSTS installed on his computer, there is a lot of benefits for developer but limitation for QA.
As QA you want to get the ERROR Screen and not Debugger window asking you to debug the error and so here is 5 steps to disable the debugger

  1. Open Visual Studio click on the Tools menu, click Options.

  2. In the Options dialog box, select the Debugging folder.

  3. In the Debugging folder, select the Just-In-Time page.

  4. In the Enable Just-In-Time debugging of these types of code box, select or clear the relevant program types: Managed, Native, or Script.

    You must be running with Administrator privileges.

  5. Click OK.

image

Team System 2010 - Create a Test Plan [HE] - Screencast

Team System 2010 – Create a Test Plan [HE] – Screencast

In my previous posts I talked about Microsoft Test & Lab Manager – Test Plan and Microsoft Test & Lab Manager – Interface, in this post you can watch a screencast about Microsoft Test & Lab Manager on How To Create a Test Plan,

  • Create A Test Plan
  • Manage Test Settings (Automated\Manual)
    • Data and Diagnostic
  • Create New Configurations and New Configuration Variables (Test Matrix – Example: Framework, SP, Application Version etc…)

If you didn't install TFS&VSTS 2010 you can watch this screencast - Team System 2010 – TFS & VSTS 2010 Installation Guide [HE] - Screencast

Team System 2010 – TFS & VSTS 2010 Installation Guide [HE] - Screencast

Team System 2010 – TFS & VSTS 2010 Installation Guide [HE] – Screencast

This is the first screencast of many about VSTS 2010, this screencast will show you how to install TFS 2010 and VSTS 2010 on 32bit or 64 bit operation system, include SQL 2008 installation guide Server 2008 roles and features required for VSTS 2010 installation.

Download ScreenCast

Enjoy

Sigist 2009 – Lab Management & Pictures

Sigist 2009 – Lab Management & Pictures

In the last post about Sigist 2009 – The Rise Of QA (Microsoft Test & Lab Manager) I post couple of links about Microsoft Test & Lab Manager, in this post you can see the pictures from the conference the presentation and more info about Lab Manager. – Thanks Shay.

Sigist 2009 Presentation – Download Now

Lab Management Blog - http://blogs.msdn.com/lab_management/

Video: http://channel9.msdn.com/posts/VisualStudio/Lab-Management-coming-to-Visual-Studio-Team-System-2010/

 

IMG_7236 IMG_7108

IMG_7232 IMG_7224

 IMG_7228