Archive for January, 2011

Windows Phone 7 – Invoking Office from 3rd Party App

January 12, 2011 Leave a comment

For developers who want to launch Office documents or invoke the native handling of files which are down-loadable by the native Windows Phone 7 (WP7) web browser, there’s a simple and elegant method IF

  1. The file to download resides on the internet
  2. The url to the file does not have any wierd querystring
  3. The url to the file is not too long (not sure how long, the shorter the better)


Should any of these conditions fail, i’m sorry, there’s no other way to do this.


Q: So how do you do it?

A: Use the WebBrowserTask control


WebBrowserTask webBrowserTask = new WebBrowserTask();

webBrowserTask.URL = “[THEURL]“;


Categories: Uncategorized

TFS 2010 + Sharepoint 2010 – Errors when showing reports in Dashboard

January 6, 2011 4 comments

Out of the box, should you try to view the TFS reports in SP2010, you will encounter 2 errors

1. Warning from Excel Services

This workbook contains one or more queries that refresh external data. A malicious user can design a query to access confidential information and distribute it to other users or perform other harmful actions.

If you trust the source of this workbook, click Yes to enable queries to external data in this workbook. If you are not sure, click No so that changes are not applied to your workbook.

Do you want to enable queries to external data in this workbook?

To fix this:

  1. On the SharePoint Central Administration home page, in the Application Management section, click Manage service applications.
  2. On the Service Applications page, click Excel Services Application.
  3. On the Manage Excel Services Application page, click Trusted File Locations.
  4. On the Excel Services Application Trusted File Locations page, point to the trusted file location that you want to edit (e.g. http://), click the arrow that appears, and then click Edit.
  5. On the Excel Services Application Edit Trusted File Location page, in the External Data section, clear the Refresh warning enabled checkbox, and then click OK.

2. Error at Excel Report

The data connection uses Windows Authentication and user credentials could not be delegated. The following connections failed to refresh:


To fix this:

  1. On the Team Foundation Server Administration Console, click on the TFS server in question
  2. Click Extensions for Sharepoint Products
  3. Select the Sharepoint Web Application which you are using
  4. Click Modify Access
  5. Enter a user with access rights to the reports inside the Enterprise Application Definition field
  6. Click OK

Useful URLS:

Categories: Visual Studio

XCode and TFS 2010 Part 3 – XCode

January 4, 2011 4 comments

Now that you have TFS and the team project up and running, its time to start up XCode and get it to sync with TFS

In this example we are creating a new project and deploying it to TFS, if you have an existing project, you can follow the steps, then import your files into the new project and commit them to TFS

There are quite a number of steps to follow to get XCode to work with TFS. Do note that it may give some wierd errors during check in and check out, not sure why its happening, but the files are definitely processed

  1. Start up XCode
  2. Create a new project
  3. Create SCM (Source Control Management) Repository
    1. Click on SCM in the Menu
    2. Click on Configure SCM Repository
    3. Click on the [+] icon to create a new SCM Repository
    4. Enter a name for this SCM and click ok
  4. Configure SCM
    1. Scheme: http or https depending on what you configured
    2. Host: The FQN or IP address of the server you setup in part 1
    3. Path: The path to the folder where all the XCode files should be
    4. User: A valid username
    5. Password: the password associated with the username
    6. Click apply and you should get a green light along with the Authenticated word
  5. Delete project files from local disk
    1. Start finder and goto the folder where the project is located
    2. Delete the build folder
    3. Move the xcode project file out
  6. Import project to SCM
    1. Click on SCM in the Menu
    2. Click on Repositories
    3. Select the appropriate repository
    4. Click Import
    5. Browse to the folder where the project files are and click ok
    6. You may get the following error, but its ok
    7. Click on the Reload button to reload the SVN, you should see the folder with the files there
  7. Check out files from SCM
    1. Click on SCM in the Menu
    2. Click on Repositories
    3. Select the checked in folder
    4. Click check out
    5. Browse to the folder where the project used to be
    6. Click ok
    7. You will get a prompt indicating that the project has changed, do you want to reload, click yes
  8. Configure SCM for the project
    1. After reloading the project you will be looking at the new project
    2. Click on Configure SCM for this project
    3. Click on the [+] icon to create a new SCM Repository
    4. Click configure roots & SCM
    5. Click on the blank space beneath Repository and select the appropriate SCM
    6. Click ok
    7. Close the project info window

You have now successfully linked your xcode project to TFS. Try checking out a file, make changes and check in, you should see the changes reflected in TFS!


Note: You might get an error when checking in the file

Error: 20014 (Internal error) Description: Commit failed (details follow):¬†Error: 20014 (Internal error) Description: A MERGE response for ‘/IPhone/XCODe/SampleProject/Classes/FirstViewController.m’ is not a child of the destination (‘/iPhone/XCODe/SampleProject/Classes’)

I’m not sure why this happens but your file is successfully checked in. what you need to do then is to discard your changes and click on update entire project under the SCM menu

Categories: Visual Studio

XCode and TFS 2010 Part 2 – Setting up a new TFS project for SVN

January 4, 2011 Leave a comment

Sorry for the delay, what with all the holidays and stuff, didn’t have time to sit down and create the next part in this series.

Anyway here’s the second part in this series.


Setting up a new TFS project for SVN


Before i proceed, let me assure you that YES, XCode and TFS can be made to cooperate even though they are from fellow competitors.

Now that you have got part 1 working, its time to setup the team project to work properly with XCode. Unless you use TFS purely as a source code repository (which is kind of wasted), otherwise chances are you will need to create a new team project to cater to the SVN implementation.

Because XCode connects to TFS via a SVN bridge, the project itself can only be used for source control and nothing else.

This means that the following are no no

  1. Check in rules
  2. Check out rules
  3. Multiple check out



Categories: ASP.NET, Visual Studio