Posts filed under 'How To?'
Tips on Virtual PC 2007: Disable time syncrhonization
Came across this blog post by the Virtual PC Guy, and quite an interesting reading - How to disable the time synchronization. By default, when you built your VPC and installed it with the virtual machine additions, you will allow the time synchronization. This is quite useful at certain situations that you dont want your VPC’s time to synchronize.
What you need to do is, just change the .vmc file for your VPC.
Open the .vmc file in notepad and find the <integration> elements. Then add the following elements within the <integration> elements,
<components>
<host_time_sync>
<enabled type=”boolean”>false</enabled>
</host_time_sync>
</components>
Add comment November 20, 2008
Use Threat Modeling Tool and Team Foundation Server together
From my previous post, I mentioned about using the SDL Threat Modeling Tool v3 to identify and mitigate potential security issues early.
You can actually setup the Threat Modeling Tool to use Team Foundation Server as bug tracking system. Here is the instructions:
1. Launch Threat Modeling Tool.
2. Go to Actions, select “Show Bug Tracking Settings“![]()
3. At the “Bug Tracking Settings“, enter the uri that point to your Team Foundation Server. ex: http://tfsrtm08:8080
4. For the Product setting, enter the team project name. ex: AWC-Online.
5. For the Issue type setting, enter the work item type. ex: Bug
[ you can also your your own template to add in more values, ex: Priority, Traige]![]()
6. Once you have done, click “OK” to exit the setting dialog.
7. Now you can go ahead to add a bug from your Threat Modeling Tool.
8. Enter the description for the threat, then click “Add Bug”. A bug workitem will be created and published to Team Foundation Server.![]()
9. When you go to Team Explorer and bring out all the Active Bugs, you will notice the bug you created is appeared here.![]()
Add comment November 19, 2008
Can’t Create Chinese Resource file Resource.zh.resx under App_GlobalResources
Creating ASP.NET website, you can create a mulitple languages site by using the resource files. When you try to create chinese resource file to store the chinese version of the text for your site, you will receive error message “The namespace “Resources” already contains a definition for “Resource”““
![]()
The reason is because you have name the resource file as Resource.zh.resx, and ASP.NET can’t recognize .zh .
So, instead of using “Resource.zh.resx”, so you should use “Resource.zh-cn.resx“
Now, you should be able to compile and run your website.
Add comment November 10, 2008
Video Recording with Windows Media Encoder
Sometimes you might thinking of recording some demo walkthroughs, presentations from your desktop. There are a lot of video recording tools you can use, some free some is chargeable.
In this post, I am showing how to do video recording with Windows Media Encoder, which is free for downloading.
1. Download and install the Windows Media Encoder from this site: http://www.microsoft.com/downloads/details.aspx?FamilyID=5691BA02-E496-465A-BBA9-B2F1182CDF24&displaylang=en
2. Launch Windows Media Encoder, a “New Session” dialog will be prompted
4. Click “Properties” below the menu toolbar.
5. At the “Session Properties” panel, under “Sources” tab, select “Video” and “Audio”.
![]()
6. From the drop-down-list, you may select the input that you would like to capture video and audio.
![]()
7. Click “Apply” to save your setting.
8. Click “Output” tab, select the “Archive to file” checkbox. Enter the file name.
![]()
9. Click “Apply” to save your setting.
10. Click “Compression” tab, select the distribution method and encoding settings for your content.
![]()
11. Click “Apply” to save your setting.
12. Once you done with you settings, click “Start Encoding”.
![]()
13. Now you can start the recording session.
14. Once you have finished recording, go back to Windows Media Encoder, and click “Stop”.
![]()
Hope this is helpful for you.
Add comment October 27, 2008
Error installing Windows Mobile Device Center in Windows Server 2008
If you try to install Windows Mobile Device Center in Windows Server 2008, you likely will face the error, “The update could not be installed because at least one Windows component required by Windows Mobile Device Center is missiong“![]()
Solution:
You need to install the “Desktop Experience” feature prior to Windows Mobile Device Center installation.
Here is the instruction:
1. Go to Administrative Tools, select Server Manager.![]()
2. At the left panel, right mouse click Features, and select Add Features.![]()
3. Select “Desktop Experience” from the features list.![]()
4. Click Next.
5. Click Install.
6. Restart is required for your server. After restart, a configuration will be done in your server.
7. Now you are install Windows Mobile Device Center
Add comment October 22, 2008
TF15013: The requested Team Foundation Server is not registered with the proxy server
Finally my Team Foundation Server proxy 2008 is up, after few days troubleshooting. Just want to share some solutions for those who is facing the same problem.
The error I was getting:
The source control proxy ‘xxx’ is not responding, so the request will be sent to the main server. Please verify your settings.
Additional information:
TF15013: The requested Team Foundation Server is not registered with the proxy server.
Solution 1: Team Foundation Server Topology
Team Foundation Server Proxy should be deployed in a domain environment.
For information about Team Foundation Server Topologies , Refer to http://msdn2.microsoft.com/en-us/library/ms400668(VS.80).aspx
Solution 2: Verify the Proxy.config configured correctly
By default, after you installed the Team Foundation Server proxy, you need to change the server name in the proxy.config file (The default proxy installation directory is …\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Web Services\VersionControlProxy. )
This is the correct configuration to register your Team Foundation Server:
<Server>
<Uri>http://ApplicationTierServerName:8080</Uri>
<Server>
Wrong configuration:
<Server>
<Uri>http://ApplicationTierServerName:8080/VersionControl</Uri>
<Server>
For more information, see this: http://msdn.microsoft.com/en-us/library/ms400735.aspx
Solution 3: Make sure the services are running
For Team Foundation Server, make sure these services are running
- ASP.NET State Service
- Windows Sharepoint Services Timer
- SQL Server services
- Team Foundation Server Task Scheduler
For Team Foundation Server proxy, make sure the ASP.NET state service is running
Solution 4: Grant permission for TFSProxy service account to access Team Foundation Server
1. At Team Foundation Server
2. Open Visual Studio 2008
3. Go to Team Explorer
4. Right-click TFS server node, select Team Foundation Server settings > Group Membership
5. At the dialog box, click New
6. Enter a new group name, example: TFS Proxy
7. Select the new group, and click Properties.
8. Add the [domainname]/tfsproxy to the group
9. Add the newly created group to the Team Foundation Server Valid Users
To verify your TFS proxy statistics
1. Try access http://localhost:8081/VersionControlProxy/V1.0/ProxyStatistics.asmx at your TFS proxy server.
2. Click QueryProxyStatistics
![]()
3. Click Invoke
4. You will see the result like the screenshot at below
For more troubleshooting guides, you may read this: http://msdn.microsoft.com/en-us/library/ms400681.aspx
Add comment October 10, 2008
Error 28002 Team Foundation Server Installation
If you are doing a Team Foundation Server deployment using domain account, you might likely get the TFS “Error 28002″. For my scenario is, I installed TFS on a separate server and the Active Directory was on another server
The primary reason is because, the DNS is not configure properly.
1. First, remember to turn on the DNS server on the Domain Controller
2. Next we setup the Internal Protocol (TCP/IP) Properties on the TFS to use the following DNS server address of the Domain Controller.
For example: at the domain controller, set the DNS server as192.168.168.2, then point the Preferred DNS Server of the TFS to 192.168.168.2
3. Try to install the Team Foundation Server again or click “Retry” at where you just stopped at your TFS installation.
The installation completed and finished!!
Add comment October 7, 2008
error installing SQL Server 2008 & TFS 2008
For Team Foundation Server 2008 deployment, if you are using SQL Server 2008, you might be facing the issue, saying “A compatible version of SQL Server is not installed.”![]()
The reason is because the Team Foundation Server 2008 installer is not patched with Team Foundation Server Service Pack 1.
So, what you need to do is patched the TFS installer with SP1. Here is the instruction:
1. Download SP1 from the Microsoft Web site, and save the update to a folder on the local computer. For example, you can save the file to C:\SP1Download.
2. From the files that originated on the DVD for Team Foundation Server, copy the AT folder to a location on the local computer. For example, you can copy the folder to C:\InstallMedia.
3. Open a Command Prompt window, and type the following command, replacing C:\SP1Download with the location that you chose in step 1 and C:\SP1Extract with a separate location on the local computer: C:\SP1Download\TFS90SP1-KB949786-ENU /extract:C:\SP1Extract
4. Create a folder where you can merge files from SP1 and the DVD.
5. Type the following command, replacing C:\InstallMedia with the location that you chose in step 2, C:\SP1Extract with the location that you chose in step 3, and C:\MergeFolder with the absolute path of the location that you chose in step 4: msiexec /a C:\InstallMedia\vs_setup.msi /p C:\SP1Extract\TFS90sp1-KB949786.msp TARGETDIR=C:\MergeFolder
You must replace C:\MergeFolder with an absolute path, but you can replace C:\InstallMedia and C:\SP1Extract with absolute or relative paths.
6. From C:\MergeFolder (which you created in step 4), run setup.exe to install Team Foundation Server with SP1
1 comment October 7, 2008
ASP.NET Web service - Parse Error
For those who have an ASP.NET 2.0 web service, and you try to host it on your IIS [IIS 6.0], if you have an issue saying “Parse Error” for your web service. Here is solution for you.
When you created a virtual directory for your web service, and try to browse, you will get this view.
But when you try to click at the “Service.asmx”, it prompted you “Parse Error”, saying Could not create type “Service”.
This is how you can resolve it:
1. First, right-click at the virtual directory, and select “Properties”.
2. Click “ASP.NET” tab, under the ASP.NET version drop down list, select “2.0.50722″
Try to browse the service again, and you will see the list of methods you have in your web service.
Hope this solution helps to solve your problem.
Add comment October 5, 2008
NewSID - Tool to change Security ID (SID)
Found a useful tool that you might related to you, maybe not now, but in the future. Especially for those like to use virtual image to do your works.
I like to install one base image with OS, and some necessary stuffs, so that I can reuse it to create different images for testing purpose.
When come for scenario, that you need a domain controller, and work with another image. In this case, you will just clone the base image and maybe setup two different images. The issue here is, after you joined the second image to the domain controller and try to login using domain account, you will be prompted this error message:
“the name or security id (sid) of the domain specified is inconsistent with the trust information”
So, you need to change the SID for one of the images. Here is the tool you can use, called NewSID
Here is the step on how to use it:
1. Start the image that you want to change the SID
2. Logon as local account
3. Download and run the NewSID
4. Follow the wizard [you may also change the computer name here]
the tool will update the new SID for the image and restart the image
5. After restart, now you can logon using domain accont.
You can download the NewSID v4.0 from here.
Add comment October 3, 2008