<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SDNET - all about .NET and computing</title>
	<atom:link href="http://sorin.serbans.net/blog/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://sorin.serbans.net/blog</link>
	<description>Look at the spoon ... There are no bugs</description>
	<lastBuildDate>Mon, 14 May 2012 06:26:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Getting grips on TFS jobs</title>
		<link>http://sorin.serbans.net/blog/index.php/2012/05/10/getting-grips-on-tfs-jobs/</link>
		<comments>http://sorin.serbans.net/blog/index.php/2012/05/10/getting-grips-on-tfs-jobs/#comments</comments>
		<pubDate>Thu, 10 May 2012 13:50:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[analysis service]]></category>
		<category><![CDATA[olap]]></category>
		<category><![CDATA[reporting]]></category>
		<category><![CDATA[tfs]]></category>
		<category><![CDATA[tfsjobagent]]></category>
		<category><![CDATA[warehouse]]></category>
		<category><![CDATA[work item tracking]]></category>

		<guid isPermaLink="false">http://sorin.serbans.net/blog/?p=322</guid>
		<description><![CDATA[This week we got into a nasty problem; we ran out of space on the database server holding the TFS databases. One of our solutions was to rebuild the report databases using the TFS Administration Console. Unfortunately this caused more issues than it solved. What happened? First problem: During the rebuild phase, the TFS is [...]]]></description>
			<content:encoded><![CDATA[<p>This week we got into a nasty problem; we ran out of space on the database server holding the TFS databases. One of our solutions was to rebuild the report databases using the TFS Administration Console. Unfortunately this caused more issues than it solved. What happened? </p>
<p>First problem: During the rebuild phase, the TFS is recreating the analysis database from scratch and then it rebuilds it. Unfortunately during the recreation, one of the xml files of the OLAP cube was generated completely empty. This caused the processing to stop. To figure this one out you have to look into the event log on the TFS server. The fix was a little bit radical. The first attempt to just delete the offending file did not succeed and thus we created a new analysis database (like <a href="http://blogs.microsoft.co.il/blogs/oshryhorn/archive/2011/02/20/how-to-fix-tfs-analysis-when-it-is-corrupt.aspx">here</a>)</p>
<p>Second problem:<br />
We waited for the TFSJobAgent to do its job and finish synchronizing the databases. That did not go right unfortunately. After waiting and waiting, we got lots of errors saying<br />
<code>"[Common Structures Warehouse Sync]: ---> TF221033: Job failed to acquire a lock using lock mode Shared, resource DataSync: [...].[TFS_Warehouse] and timeout 30".</code></p>
<p>This sounded kinda&#8217; logic since we were dealing with around 150gb of TFS related databases and we had 5 project collections and jobs were fighting over getting the exclusive locks. I looked into this and tried to find a solution but &#8230; no. Microsoft was not playing nice. There are no tools available to investigate and control this kind of issues. I knew there were some services offered by TFS we could use to get a grasp on the situation. The service that was interesting to us is located in a location similar to this:<br />
<code>http://tfsinstance:8080/teamfoundation/administration/v3.0/warehousecontrolservice.asmx.<br />
</code><br />
But good luck working with that. Beside needing to be logged on the TFS machine, one needs to know the name of the services you want to interrogate and interact with it. The sollution? Yeap; WCF and WPF.<br />
I made a simple application which consumes the above said service.<br />
<code><img src="http://sorin.serbans.net/blog/wp-content/uploads/2012/05/warehousejobs.jpg" alt="TfsWarehouseJobController" /><br />
</code></p>
<p>Ok, that&#8217;s just a tool. What is the solution? The solution is to stop all jobs and then start them one by one, such that they are not fighting over exclusive locks <img src='http://sorin.serbans.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . Using the above little program we just clicked stop on each job and then enabled them one by one.</p>
<p>The end result is a fully formed and uptodate TFS_Warehouse database (and of course all the reports running on it).</p>
<p>P.S. I will come back with the source/binary &#8230; it&#8217;s just too dirty to be put in public</p>
<p>[Update] <a href="http://sorin.serbans.net/blog/wp-content/uploads/2012/05/TfsWarehouseControl.zip">Here</a> is the link to the source code. Just make sure you are updating the service refference to the correct tfs instance.</p>
]]></content:encoded>
			<wfw:commentRss>http://sorin.serbans.net/blog/index.php/2012/05/10/getting-grips-on-tfs-jobs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unblock Gmail on WP7 after resetting password</title>
		<link>http://sorin.serbans.net/blog/index.php/2012/04/02/unblock-gmail-after-google-password-reset-on-a-wp7-phone/</link>
		<comments>http://sorin.serbans.net/blog/index.php/2012/04/02/unblock-gmail-after-google-password-reset-on-a-wp7-phone/#comments</comments>
		<pubDate>Mon, 02 Apr 2012 12:55:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://sorin.serbans.net/blog/?p=319</guid>
		<description><![CDATA[I recently reset my password on GMail and was not able to reconnect the mail app from my WP7 to GMail. It turned out that, when I was asked for the new password, I entered it wrong more than 3 times and thus the Captcha activated. Unfortunately this is not caught by the WP7 mail [...]]]></description>
			<content:encoded><![CDATA[<p>I recently reset my password on GMail and was not able to reconnect the mail app from my WP7 to GMail. It turned out that, when I was asked for the new password, I entered it wrong more than 3 times and thus the Captcha activated. Unfortunately this is not caught by the WP7 mail application and even if you enter correct credentials you are told that the username/password is incorrect.<br />
To fix this, login to Gmail and then access the following link:<br />
<a href="https://accounts.google.com/DisplayUnlockCaptcha">https://accounts.google.com/DisplayUnlockCaptcha</a>. This removes the captcha and thus your email application will only be required to send the username/password combination and the phone email will be synced.</p>
]]></content:encoded>
			<wfw:commentRss>http://sorin.serbans.net/blog/index.php/2012/04/02/unblock-gmail-after-google-password-reset-on-a-wp7-phone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTC Mozart &#8211; 8107 update issues</title>
		<link>http://sorin.serbans.net/blog/index.php/2012/03/17/htc-mozart-8107-update-issues/</link>
		<comments>http://sorin.serbans.net/blog/index.php/2012/03/17/htc-mozart-8107-update-issues/#comments</comments>
		<pubDate>Sat, 17 Mar 2012 09:29:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://sorin.serbans.net/blog/?p=316</guid>
		<description><![CDATA[For the last month I tried in vain to update my WP7 HTC Mozart from version 7740. Every time I got the message that my phone had the last version although I knew it was not true. I tried every trick I could find short of putting a custom ROM. In fact the solution was [...]]]></description>
			<content:encoded><![CDATA[<p>For the last month I tried in vain to update my WP7 HTC Mozart from version 7740. Every time I got the message that my phone had the last version although I knew it was not true. I tried every trick I could find short of putting a custom ROM.<br />
In fact the solution was very simple even if radical: <strong>reset phone to factory defaults, plug in to Zune, check for updates</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://sorin.serbans.net/blog/index.php/2012/03/17/htc-mozart-8107-update-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick &#8211; how to create an application in IIS7 with PowerShell</title>
		<link>http://sorin.serbans.net/blog/index.php/2012/03/12/quick-how-to-create-an-application-in-iis7-with-powershell/</link>
		<comments>http://sorin.serbans.net/blog/index.php/2012/03/12/quick-how-to-create-an-application-in-iis7-with-powershell/#comments</comments>
		<pubDate>Mon, 12 Mar 2012 09:07:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://sorin.serbans.net/blog/?p=313</guid>
		<description><![CDATA[Here it is. Very important is the import-module line to allow the use of the IIS management. # argument assignment $newVirtualDirectory = $args[0] $physicalPath = $args[1] import-module webadministration $virtualDir = 'IIS:\Sites\Default Web Site\'+$newVirtualDirectory New-Item $virtualDir -type Application -physicalPath $physicalPath Set-ItemProperty $virtualDir -name EnabledProtocols -Value "http,net.tcp" Set-ItemProperty $virtualDir -name applicationPool -value "ASP.NET v4.0"]]></description>
			<content:encoded><![CDATA[<p>Here it is. Very important is the import-module line to allow the use of the IIS management. </p>
<pre style='color:#000000;background:#ffffff;'># argument assignment
$newVirtualDirectory <span style='color:#808030; '>=</span> $args[<span style='color:#008c00; '>0</span>]
$physicalPath <span style='color:#808030; '>=</span> $args[<span style='color:#008c00; '>1</span>]

import-module webadministration

$virtualDir <span style='color:#808030; '>=</span> <span style='color:#0000e6; '>'IIS:\Sites\Default Web Site\'</span>+$newVirtualDirectory
New-<span style='color:#800000; font-weight:bold; '>Item</span> $virtualDir <span style='color:#0000e6; '>-type Application -</span>physicalPath $physicalPath
<span style='color:#800000; font-weight:bold; '>Set</span>-ItemProperty $virtualDir <span style='color:#0000e6; '>-name EnabledProtocols -</span>Value <span style='color:#0000e6; '>"http,net.tcp"</span>
<span style='color:#800000; font-weight:bold; '>Set</span>-ItemProperty $virtualDir <span style='color:#0000e6; '>-name applicationPool -</span>value <span style='color:#0000e6; '>"ASP.NET v4.0"</span>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://sorin.serbans.net/blog/index.php/2012/03/12/quick-how-to-create-an-application-in-iis7-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VSALM 2011 Beta</title>
		<link>http://sorin.serbans.net/blog/index.php/2012/03/06/vsalm-2011-beta/</link>
		<comments>http://sorin.serbans.net/blog/index.php/2012/03/06/vsalm-2011-beta/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 09:34:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://sorin.serbans.net/blog/?p=306</guid>
		<description><![CDATA[For those that are interested in TFS11 and VSALM, there is a new virtual machine available for download here This virtual machine is configured with: Microsoft Windows Server 2008 R2 Standard Edition Microsoft SQL Server 2008 R2 Microsoft Visual Studio 11 Ultimate Beta Microsoft Visual Studio 11 Team Foundation Server Beta Microsoft SharePoint Foundation 2010 [...]]]></description>
			<content:encoded><![CDATA[<p>For those that are interested in TFS11 and VSALM, there is a new virtual machine available for download <a href="http://blogs.msdn.com/b/briankel/archive/2011/09/16/visual-studio-11-application-lifecycle-management-virtual-machine-and-hands-on-labs-demo-scripts.aspx" title="http://blogs.msdn.com/b/briankel/archive/2011/09/16/visual-studio-11-application-lifecycle-management-virtual-machine-and-hands-on-labs-demo-scripts.aspx">here</a></p>
<p>This virtual machine is configured with:<br />
Microsoft Windows Server 2008 R2 Standard Edition<br />
Microsoft SQL Server 2008 R2<br />
Microsoft Visual Studio 11 Ultimate Beta<br />
Microsoft Visual Studio 11 Team Foundation Server Beta<br />
Microsoft SharePoint Foundation 2010<br />
Microsoft Project 2010<br />
Microsoft Office Professional 2010 (Word, PowerPoint, Excel)</p>
<p>So you can just dive into TFS11 and VS11 without having to go though all the install and configuration hassles.</p>
<p>Thanks Brian and TFS team for the help</p>
]]></content:encoded>
			<wfw:commentRss>http://sorin.serbans.net/blog/index.php/2012/03/06/vsalm-2011-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Editing powershell scripts in Visual Studio 2010</title>
		<link>http://sorin.serbans.net/blog/index.php/2012/03/06/editing-powershell-scripts-in-visual-studio-2010/</link>
		<comments>http://sorin.serbans.net/blog/index.php/2012/03/06/editing-powershell-scripts-in-visual-studio-2010/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 09:25:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://sorin.serbans.net/blog/?p=301</guid>
		<description><![CDATA[I know that not every developer uses powershell, but for those that do, here&#8217;s a little gem (a little bit unpolished, but still &#8230;) Just download this http://powerguivsx.codeplex.com/ and restart VS. You should now be able to edit ps1 files with syntax highlight and some code completion One thing I saw so far is that [...]]]></description>
			<content:encoded><![CDATA[<p>I know that not every developer uses powershell, but for those that do, here&#8217;s a little gem (a little bit unpolished, but still &#8230;)</p>
<p>Just download this <a href="http://powerguivsx.codeplex.com/" title="http://powerguivsx.codeplex.com/">http://powerguivsx.codeplex.com/</a> and restart VS. You should now be able to edit ps1 files with syntax highlight and some code completion</p>
<p>One thing I saw so far is that it takes about 10 sec to start when opening a script file.</p>
]]></content:encoded>
			<wfw:commentRss>http://sorin.serbans.net/blog/index.php/2012/03/06/editing-powershell-scripts-in-visual-studio-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Robocopy supress error codes</title>
		<link>http://sorin.serbans.net/blog/index.php/2012/01/26/robocopy-supress-error-codes/</link>
		<comments>http://sorin.serbans.net/blog/index.php/2012/01/26/robocopy-supress-error-codes/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 13:08:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://sorin.serbans.net/blog/?p=297</guid>
		<description><![CDATA[I have been working alot lately with Virtual Lab and automatic builds and deployment and today I learned something new 1. xcopy32 does not work on network shares (unless they are mapped to a drive) 2. robocopy messes up deploys because it can return an errorcode different from 0 even if it is just to [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working alot lately with Virtual Lab and automatic builds and deployment and today I learned something new<br />
1. xcopy32 does not work on network shares (unless they are mapped to a drive)<br />
2. robocopy messes up deploys because it can return an errorcode different from 0 even if it is just to tell you that he succeeded.</p>
<p>Now robocopy is replacing xcopy in my book and to make robocopy play nice, I add <b>^&#038; exit 0</b> at the end. Like this:</p>
<p><code><br />
robocopy \\networkdrive destpath *.* ^&#038; exit 0<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://sorin.serbans.net/blog/index.php/2012/01/26/robocopy-supress-error-codes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Server Management Studio 2008 running slow</title>
		<link>http://sorin.serbans.net/blog/index.php/2011/12/22/sql-server-management-studio-2008-running-slow/</link>
		<comments>http://sorin.serbans.net/blog/index.php/2011/12/22/sql-server-management-studio-2008-running-slow/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 08:07:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://sorin.serbans.net/blog/?p=294</guid>
		<description><![CDATA[When running SQL Server Management Studio 2008 on a Win7 64bit machine you might stumble upon poor, very poor performance. Clicking on a table results in waiting for 10-20 seconds before being able to do anything, doing a select would again take an eternity. The reason is unknown to me (sorry, I don&#8217;t feel like [...]]]></description>
			<content:encoded><![CDATA[<p>When running SQL Server Management Studio 2008 on a Win7 64bit machine you might stumble upon poor, very poor performance. Clicking on a table results in waiting for 10-20 seconds before being able to do anything, doing a select would again take an eternity. The reason is unknown to me (sorry, I don&#8217;t feel like reading tons of articles and kb notes).</p>
<p>Still I got it fixed. Just two steps:<br />
- set the management studio to run in XP SP3 compatibility mode<br />
- if you have the UAC turned off, turn it on on the first level (raise the level from the bottom one notch)</p>
<p>Now it&#8217;s working like a charm.</p>
]]></content:encoded>
			<wfw:commentRss>http://sorin.serbans.net/blog/index.php/2011/12/22/sql-server-management-studio-2008-running-slow/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VMLab &#8211; notes to self</title>
		<link>http://sorin.serbans.net/blog/index.php/2011/10/25/vmlab-notes-to-self/</link>
		<comments>http://sorin.serbans.net/blog/index.php/2011/10/25/vmlab-notes-to-self/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 06:38:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://sorin.serbans.net/blog/?p=286</guid>
		<description><![CDATA[On the &#8220;to be deployed&#8221; machine install: Lab Agent, Test Agent, Build Agent When creating the template on which the &#8220;to be deployed&#8221; machine will be based, make sure it is not set with a virtual network Install virtual guest services on the virtual machine before converting it to a template On the test controller [...]]]></description>
			<content:encoded><![CDATA[<p>On the &#8220;to be deployed&#8221; machine install: Lab Agent, Test Agent, Build Agent<br />
When creating the template on which the &#8220;to be deployed&#8221; machine will be based, make sure it is not set with a virtual network<br />
Install virtual guest services on the virtual machine before converting it to a template<br />
On the test controller set the dns append suffix to the domain where the test agents reside (they try to default to the name and not to the FDQN). Do the same on the test agent to be able to resolve the testcontroller<br />
Set the test agent to run as a service and using an administrator account.</p>
]]></content:encoded>
			<wfw:commentRss>http://sorin.serbans.net/blog/index.php/2011/10/25/vmlab-notes-to-self/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to delete a work item from TFS</title>
		<link>http://sorin.serbans.net/blog/index.php/2011/09/16/how-to-delete-a-work-item-from-tfs/</link>
		<comments>http://sorin.serbans.net/blog/index.php/2011/09/16/how-to-delete-a-work-item-from-tfs/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 07:56:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://sorin.serbans.net/blog/?p=282</guid>
		<description><![CDATA[Nice and usefull one: 1. Open Command prompt 2. Go to Program Files (x86)\Microsoft visual Studio 10.0\Common7\IDE (or in 9.0 if you are using VS2008) 3. run witadmin.exe destroywi /collection:http://[tfsurl]:8080/[collection] /id:workitemid where workitemid is the id given to the workitem by TFS You can also see the documentation here]]></description>
			<content:encoded><![CDATA[<p>Nice and usefull one:<br />
1. Open Command prompt<br />
2. Go to Program Files (x86)\Microsoft visual Studio 10.0\Common7\IDE (or in 9.0 if you are using VS2008)<br />
3. run <strong>witadmin.exe destroywi /collection:http://[tfsurl]:8080/[collection] /id:workitemid</strong></p>
<p>where workitemid is the id given to the workitem by TFS</p>
<p>You can also see the documentation <a href="http://msdn.microsoft.com/en-us/library/dd312129.aspx" title="here">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sorin.serbans.net/blog/index.php/2011/09/16/how-to-delete-a-work-item-from-tfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

