DCSIMG
November 2008 - Posts - Shai Raiten's Blog

Shai Raiten's Blog

It's all about code...

November 2008 - Posts

How To: Hide Source Control Folder From Specific Group

How To: Hide Source Control Folder From Specific Group

Note : To perform the following steps you need TFS project admin permission


1. Create a project-level group --  group. Its name is ReadOnlyGroup

2. Add the users to the group.

3. Set the permission on the source control folder for the ReadOnlyUsers.

           a. Right click the sub-folder in team project at Source Control Explorer select 'Properties' menu.

           b. Select 'Security' tab.  Revise the ReadOnlyUsers group's permission on the sub-folder.
                                        a. Clear all permission.
                                        b. Only check the Read permission.
                                        c. Don't check the 'Inherit Security Settings'

4. Clear all permission on the root folder of the team project for the ReadOnlyUsers group.

How do you move (or copy) documents from one library to another while keeping version history intact?

How do you move (or copy) documents from one library to another while keeping version history intact?

Lots of people have this problem when moving\copying files in SharePoint from folder to folder you lose your document version history.

This need is so obvious, but still not included in WSS,

So Here is a great post by Dink in SharePoint Blogs.

My Developer Academy 3 Presentation - Web Sites Testing With Visual Studio Team System

Web Sites Testing with Visual Studio Team System

On December 15th at 10:50 you can come and hear about Web Testing.

DEV301 - Web Sites Testing with Visual Studio Team System
Visual Studio Team System makes your site better and more robust with its Web Testing capabilities. In this session we will see how to test your web application in various ways, how to extend the out-of-the-box rules and how to integrate it in the daily build

In this session I'll show:

  • Basic Web TestingDev
  • Data Binding Web Test
  • Custom Validation/Extraction Rules
  • Web Test/Request Plug-ins
  • Coded Web Test
  • Functional Web Testing
  • GUI Web Testing

Hope to see you there!

TFS Event Handler v1.1 released

TFS Event Handler v1.1 released

There is a new release for TFS Event Handler in Codeplex

It is developed in .NET 3.5 SP1 for Team Foundation Server 2008 and is deployed as a system service.
The Alerts that you no longer need users to individually setup are:

  • A work item is assigned to you.
  • A work item that is assigned to you is reassigned to someone else.
  • A work item that you created is assigned to someone else.

Enjoy

Add Internet Explorer 8.0, FireFox 3.0 and Google Chrome To Web Test Browser List

Add Internet Explorer 8.0, FireFox 3.0 and Google Chrome To Web Test Browser List

Visual Studio Team System 2008 gives as the ability to simulate our Web Test on specific Browser.

We have variety of default browsers but not all! Today we have Internet Explorer 8.0, Firefox 3.0 and Google Chrome.

Download below file and copy the new browsers to -

\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Templates\LoadTest\Browsers

Download - Internet Explorer 8.0, FireFox 3.0 and Google Chrome browsers for Web Test

Also you will have the ability to pick those new browsers in Load Test.

WebTestBrowserType

image

Enjoy

How To: Add Custom Controls Into Work Item

How To: Add Custom Controls Into Work Item

I had question regarding the post about How To: Write Team System Custom Control.

Question: How I can add the custom control anywhere in the Work Item?

First download PowerTool 2008 so will be able to work with Process Template Editor.

Copy you Custom Control output into - (For Visual Studio 2008)
C:\Documents and Settings\All Users\Application Data\Microsoft\Team Foundation\Work Item Tracking\Custom Controls\9.0

Copy you Custom Control output into - (For Visual Studio 2005)
C:\Documents and Settings\All Users\Application Data\Microsoft\Team Foundation\Work Item Tracking\Custom Controls\

After installing PowerTool 2008 open the process editor menu and select "Open WIT from Server"

1

Select the desire Work Item.

2

In the layout tab right click on the place you want to add the Custom Control and click "New Control".

3

Select the new control and in "Type" select your control.

If this custom control doesn't use Field you can leave this FieldName empty.

4

Gmail In Terminal Style

Gmail In Terminal StyleGmail1

New feature available in Gmail - Themes.

I picked the old one but there is a lot of great styles there.

Enjoy.

Failed To Create Maintenance Plan For TFS Backup

Failed To Create Maintenance Plan For TFS Backup

After installing TFS 2008 I want to create maintenance plan using SSMS to create a Backup plan
How To: Backing Up a Team Foundation Server database.

When creating new maintenance plan I got an error.

untitled

Then I saw that SQL Databases is upgraded to SP2 but not the Client Tools.

So Download SQL Server SP2 and make sure to select the right components.

After installing SP2 for the Client Tool I was able to create the maintenance plan for backup TFS Databases.

Error While Trying To Create OLAP Cube

Error While Trying To Create OLAP Cube

One of my customers failed to get up to date Reports from TFS.

Looking in one of the reports I saw that the last time the warehouse was update is Two Month Ago!

I tried to process the cube manually and this got nothing, so I checked the event log and I saw couple of errors related to the warehouse.

ErrorLog

I tried to Rebuild the cube using SetupWarehouse.exe and get another error.
An unexpected error occurred: Some or all identity references could not be translated.

Error

In the IIS I check TFS Application Pool and enter the right password for TfsService.

IIS

IIS_Identity

After that I search "Local Security Settings" under "User Rights Assignment" and didn't find Tfsservice in "Log on as a service".

Local Security Settings

I add TfsService to "Log on as a service" rule.

TFS in Local Security Settings

Then when trying to Rebuild the Cube I didn't get any error and the reports start working.

Solution

Hope this will help.

Creating Virtual Web Sites on IIS with .Net

Creating Virtual Web Sites on IIS with .Net

My last post on Reading Web Sites Status on IIS with .Net was the first post on IIS development through .NET

So here is an example for creating virtual Web Site using .NET.

 

public DirectoryEntry VDir = null;
public string Virtual = "";

public string FriendlyName = "";
public string Path = "";
public string IISPath = "IIS://LOCALHOST/W3SVC/1/ROOT";
public bool AuthNTLM = true;
public bool AuthAnonymous = true;
public bool AuthBasic = true;
public string DefaultDocuments = default.htm,default.aspx,default.asp";

    public bool CreateVirtual()

    {

      DirectoryEntry root = new DirectoryEntry(this.IISPath);

      if (root == null)

      {

        //Couldn't access root node

        return false;

      }

 

      try

      {

        this.VDir = root.Children.Add(Virtual, "IISWebVirtualDir");

      }

      catch

      {

        try { this.VDir = new DirectoryEntry(this.IISPath + "/" + Virtual); }

        catch { ;}

      }

 

      if (this.VDir == null)

      {

        //Couldn't create virtual.

        return false;

      }

 

      root.CommitChanges();

      VDir.CommitChanges();

 

      return this.SaveVirtualDirectory();

    }

 

    public bool SaveVirtualDirectory()

    {

      PropertyCollection Properties = VDir.Properties;

 

      try

      {

        Properties["Path"].Value = Path;

      }

      catch (Exception ex)

      {

        //Invalid Path provided

        return false;

      }

 

      this.VDir.Invoke("AppCreate", true);

      if (this.FriendlyName == "")

        VDir.Properties["AppFriendlyName"].Value = Virtual;

      else

        VDir.Properties["AppFriendlyName"].Value = this.FriendlyName;

 

      if (this.DefaultDocuments != "")

        VDir.Properties["DefaultDoc"].Value = this.DefaultDocuments;

 

      int Flags = 0;

      if (this.AuthAnonymous)

        Flags = 1;

      if (this.AuthBasic)

        Flags = Flags + 2;

      if (this.AuthNTLM)

        Flags = Flags + 4;

      Properties["AuthFlags"].Value = Flags;

 

      VDir.CommitChanges();

 

      return true;

    }

How is the user load adjusted for a load test with a goal based load pattern?

How is the user load adjusted for a load test with a goal based load pattern?

I found a great article wrote by Bill Barnett's talking about Goal Based Load using Team System.

There are couple of great tips on how to config you load setting when using Goal Based Load and will help you to understand how Team System adjusted when a load test scenario uses a goal based load pattern.

Enjoy.

Thanks for Guy Kolbis for helping me to write this post better and decent.

 

 

 

 

 

Q: Specific Security Group That Will Have Some Fields Disabled Or With Less Options

Q: Specific Security Group That Will Have Some Fields Disabled Or With Less Options

Hi,

About his question, here is two option you can do.

The first one is to make this Field ReadOnly, but this mean when user out of the specific group will open the work item he will not see any value.
(ReadOnly clears the values)

<FIELD name="FieldName" refname="FieldRefName" type="String" >

  <READONLY for="[project]\MyNewGroup" />

</FIELD>

and the second solution is:

<FIELD name="FieldName" refname="FieldRefName" type="String" >

      <ALLOWEDVALUES for="[Project]\MyNewGroup">

              <LISTITEM value="Yes" />

              <LISTITEM value="No" />

      </ALLOWEDVALUES>

</FIELD>

How to Use Notepad to Create a Log File

How to Use Notepad to Create a Log File

This is a nice thing I saw a few days ago.

First create an empty Text file.

image

Open your file and add in the first line - .LOG
And start writing..... and Save.

image

Open the Text file and your can see that Notepad automatically add Date & Time signature to your Text file.

image

Posted: Nov 22 2008, 04:39 PM by Shai Raiten | with 2 comment(s)
תגים:

Team System Web Access Translations now available!

Team System Web Access Translations now available!tswal_banner

New project on CodePlex

This release contain the following languages:

  • Portugees (Brazilian) (pt-br)
  • Croatian (hr-hr)
  • Dutch (nl-nl)
  • Turkish (tr)
  • Polish (pl)
  • Danish (da-dk)
  • Swedish (sv-SE)

Spam Attack On My Blog

Spam Attack On My Blog

It’s normal to get two or three spam messages a day, but this is too much!

Over 50 Spam over the night.

If some one have any good idea on how to disable those emails,
Please let me know.

image

More Posts Next page »