August 20, 2010

Windows Server: sfc /scannow error after expanding disk

Problem:
Having installed Windows Server 2008 R2 Core as a virtual machine on a Hyper-V cluster, I had some problems setting up it as DC, and one hint was to run sfc /scannow to repair some files. When running the command in command prompt, I was greeted with error:

“Windows resource protection could not perform the requested operation”

Solution:
As I had installed the VM with only 4 GB HD, I had just expanded the HD size to 5 GB. After that the sfc started giving me this error. What I did was to use diskpart (as there are no fancy graphical UI) to expand the partition to correspond with the new size of the HD:

  1. In command prompt, run: diskpart
  2. In diskpart, first list disks: list disk
  3. Select the desired dish you wish to expand: select disk N (where N is disk number)
  4. List partitions: list partition
  5. Select the desired partition: select partition N
  6. List volumes: list volume
  7. Select the desired volume: select volume N
  8. Extend the filesystem on the selected volume to cover the entire volume: extend filesystem
  9. Exit diskpart: exit

August 6, 2010

Beta: Media Center Status Application version 0.6.1 released

So, this is beta, as only I have tested it and found it to be working. Please let me know if you run into any issues. I also appreciate reporting if everything seems to work.

New features

  • Uses OAuth to authenticate to Facebook and Twitter (meaning that logging in works better, is faster and is future proof)
  • Also uses Facebook Graph API to communicate with Facebook (also adding some future proofness)

Fixes

  • Publishing media details fetched from Amazon now works again

Download here

May 20, 2010

SP2010: Some Ribbon links are disabled in Central Admin

Problem:
When using Central Administration site with Internet Explorer that is running locally on the same server on which the Central Admin is located on, some buttons on the ribbon are disabled. This happens even when you are logged into the server as local admin, and logged into the Central Admin site using Farm Admin credentials. With Firefox or remote IE buttons are enabled

Solution:
Start IE instance as Administrator (right click IE icon and “Run as Administrator”).

May 5, 2010

TFS: TF30063: You are not authorized to access <server>

Problem:
When trying to work with TFS using the command line tool tf.exe on the TFS server, all commands end up with error: TF30063: You are not authorized to access <server>, <server> being the address of the TFS server you specified as tf.exe /server parameter, such as

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE>tf status /server:http:
//tfs01.mydomain.com:8080 /workspace:MyWorkspace/user:mydomain\myusername

Solution:
Instead of using DNS registered URL of the TFS server, use full computer name. So in my case command that worked was:

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE>tf status /server:http:
//ws000123.eu.mydomain.com:8080 /workspace:MyWorkspace/user:mydomain\myusername

April 29, 2010

SQL Server 2008: Error 1316 when installing

Problem:
When trying to in stall SQL Server 2008, you get error:

Microsoft SQL Server 2008 Native Client -- Error 1316. A network error occurred while attempting to read from the file: D:\x64\setup\x64\SQLEC9C.tmp.msi

Thoughts:
You have installed Visual Studio 2010 RTM on the machine earlier.

Solution:
Uninstall Microsoft SQL Server Compact 3.5 SP1 as pointer here (although error refers to different file) and re-run SQL Server installation. Remember to update SQL Server with the latest service pack after the installation.

April 12, 2010

SP2010: Defining managed paths in SharePoint 2010

Problem:
I need to define managed paths in SharePoint 2010. I cannot find link to it in Central Admin, where is it?

Thoughts:
Trivial after you find it, but took some browsing through the Central Admin in order to find the new location and realize that one really should pay attention to Ribbon.

Solution:

  1. Go to Central Administration -> Application Management -> Manage web applications


  2. Click on the web application for which you wish to define managed paths and click Managed Paths on the Ribbon.


  3. Proceed as usual


March 31, 2010

SP2010: My Site Memberships not showing sites user is a member of

Problem:
Memberships section on My Site's My Profile section is not showing user as being a member of recently added sites.

Solution:
Memberships list is populated by the User Profile Service Application - User Profile to SharePoint Full Synchronization Timer Job which by default run once per hour. You can change the schedule or run it manually.