<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Javier Arguello (javarg)</title><link>http://weblogs.asp.net/mjarguello/default.aspx</link><description>Sharing my daily work experience..</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>ALM Rangers Team!</title><link>http://weblogs.asp.net/mjarguello/archive/2013/02/12/alm-rangers-team.aspx</link><pubDate>Tue, 12 Feb 2013 19:30:25 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9866183</guid><dc:creator>javarg</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/mjarguello/rsscomments.aspx?PostID=9866183</wfw:commentRss><comments>http://weblogs.asp.net/mjarguello/archive/2013/02/12/alm-rangers-team.aspx#comments</comments><description>&lt;p&gt;Thank you Cesar Solis and Willy-Peter for this great opportunity!&lt;/p&gt;  &lt;p&gt;&lt;a title="http://blogs.msdn.com/b/willy-peter_schaub/archive/2013/02/12/introducing-the-visual-studio-alm-rangers-javier-arguello.aspx" href="http://blogs.msdn.com/b/willy-peter_schaub/archive/2013/02/12/introducing-the-visual-studio-alm-rangers-javier-arguello.aspx"&gt;http://blogs.msdn.com/b/willy-peter_schaub/archive/2013/02/12/introducing-the-visual-studio-alm-rangers-javier-arguello.aspx&lt;/a&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9866183" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/mjarguello/archive/tags/ALM/default.aspx">ALM</category></item><item><title>TFS Build On Azure with Incremental Version Number</title><link>http://weblogs.asp.net/mjarguello/archive/2013/01/22/tfs-build-on-azure-with-incremental-version-number.aspx</link><pubDate>Tue, 22 Jan 2013 23:47:08 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9787421</guid><dc:creator>javarg</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/mjarguello/rsscomments.aspx?PostID=9787421</wfw:commentRss><comments>http://weblogs.asp.net/mjarguello/archive/2013/01/22/tfs-build-on-azure-with-incremental-version-number.aspx#comments</comments><description>&lt;p&gt;I’ve recently needed to create a TFS Build over Azure Web Sites and Hosted TFS with incremental build versions (changing AssemblyInfo.* files).&lt;/p&gt;  &lt;p&gt;I’ve found &lt;a href="http://versionedtfsbuild.codeplex.com/" target="_blank"&gt;this&lt;/a&gt; excellent project in CodePlex that works with TFS 2010.&lt;/p&gt;  &lt;p&gt;So, I’ve made the following modifications for it to work in Hosted TFS Build and Azure Web Sites:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Take the AzureContinuousDeployment.11.xaml workflow and add the custom activities for it to support the same functionality as in the CodePlex Project. &lt;/li&gt;    &lt;li&gt;Changed the revision incremental logic to accept ChangeSet numbers. &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;The code is not best quality, only proof of concept.&lt;/p&gt;  &lt;p&gt;Download it from &lt;a href="http://weblogs.asp.net/blogs/mjarguello/AzureContinuousDeploymentWithVersionNumbers.11.zip" target="_blank"&gt;here&lt;/a&gt; and follow the deployment instructions on the original CodePlex project (work over the Build Definition generated by Azure Web Sites).&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9787421" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Team+Foundation+Server/default.aspx">Team Foundation Server</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Team+System/default.aspx">Team System</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/TFS/default.aspx">TFS</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/ALM/default.aspx">ALM</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Azure/default.aspx">Azure</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/tfspreview/default.aspx">tfspreview</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/TFS+Build/default.aspx">TFS Build</category></item><item><title>Visual Studio 2012 Update 1 Now Available!</title><link>http://weblogs.asp.net/mjarguello/archive/2012/12/03/visual-studio-2012-update-1-now-available.aspx</link><pubDate>Tue, 04 Dec 2012 01:20:33 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9510776</guid><dc:creator>javarg</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/mjarguello/rsscomments.aspx?PostID=9510776</wfw:commentRss><comments>http://weblogs.asp.net/mjarguello/archive/2012/12/03/visual-studio-2012-update-1-now-available.aspx#comments</comments><description>&lt;p&gt;&lt;a title="http://blogs.msdn.com/b/somasegar/archive/2012/11/26/visual-studio-2012-update-1-now-available.aspx" href="http://blogs.msdn.com/b/somasegar/archive/2012/11/26/visual-studio-2012-update-1-now-available.aspx"&gt;http://blogs.msdn.com/b/somasegar/archive/2012/11/26/visual-studio-2012-update-1-now-available.aspx&lt;/a&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9510776" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Visual+Studio/default.aspx">Visual Studio</category></item><item><title>We are currently recruiting Junior and Semi-Sr. positions for our Mexican subsidiary</title><link>http://weblogs.asp.net/mjarguello/archive/2012/11/26/we-are-currently-recruiting-junior-and-semi-sr-positions-for-our-mexican-subsidiary.aspx</link><pubDate>Mon, 26 Nov 2012 05:50:04 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9463253</guid><dc:creator>javarg</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/mjarguello/rsscomments.aspx?PostID=9463253</wfw:commentRss><comments>http://weblogs.asp.net/mjarguello/archive/2012/11/26/we-are-currently-recruiting-junior-and-semi-sr-positions-for-our-mexican-subsidiary.aspx#comments</comments><description>&lt;p&gt;We are currently recruiting Junior and Semi-Sr. positions for our Mexican subsidiary.&lt;/p&gt;  &lt;p&gt;Please, send us your CV to &lt;a href="mailto:rrhh.mx@lagash.com"&gt;rrhh.mx@lagash.com&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9463253" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Offtopic/default.aspx">Offtopic</category></item><item><title>Webcast MSDN Latam: Construyendo interfaces de usuario para Windows 8 Reloaded</title><link>http://weblogs.asp.net/mjarguello/archive/2012/11/25/webcast-msdn-latam-construyendo-interfaces-de-usuario-para-windows-8.aspx</link><pubDate>Mon, 26 Nov 2012 04:41:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9463215</guid><dc:creator>javarg</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/mjarguello/rsscomments.aspx?PostID=9463215</wfw:commentRss><comments>http://weblogs.asp.net/mjarguello/archive/2012/11/25/webcast-msdn-latam-construyendo-interfaces-de-usuario-para-windows-8.aspx#comments</comments><description>&lt;p&gt;Join me in &lt;a href="https://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032536785&amp;amp;Culture=es-AR&amp;amp;community=0" target="_blank"&gt;this new WebCast&lt;/a&gt; about Windows 8.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9463215" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Windows+8/default.aspx">Windows 8</category></item><item><title>ALM Rangers Guidance: Team Foundation Server Process Template Customization Guidance</title><link>http://weblogs.asp.net/mjarguello/archive/2012/11/21/alm-rangers-guidance-team-foundation-server-process-template-customization-guidance.aspx</link><pubDate>Wed, 21 Nov 2012 19:53:25 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9434159</guid><dc:creator>javarg</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/mjarguello/rsscomments.aspx?PostID=9434159</wfw:commentRss><comments>http://weblogs.asp.net/mjarguello/archive/2012/11/21/alm-rangers-guidance-team-foundation-server-process-template-customization-guidance.aspx#comments</comments><description>&lt;p&gt;Cool process template guidance customization by ALM Rangers Team. Check &lt;a href="http://vsartfsptguide.codeplex.com/" target="_blank"&gt;this&lt;/a&gt; out on Codeplex.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9434159" width="1" height="1"&gt;</description></item><item><title>WebCast MSDN: Desarrollo de Aplicaciones Modernas con Calidad</title><link>http://weblogs.asp.net/mjarguello/archive/2012/11/05/webcast-msdn-desarrollo-de-aplicaciones-modernas-con-calidad.aspx</link><pubDate>Tue, 06 Nov 2012 03:04:08 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9313303</guid><dc:creator>javarg</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/mjarguello/rsscomments.aspx?PostID=9313303</wfw:commentRss><comments>http://weblogs.asp.net/mjarguello/archive/2012/11/05/webcast-msdn-desarrollo-de-aplicaciones-modernas-con-calidad.aspx#comments</comments><description>&lt;p&gt;Join me in &lt;a href="https://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032535344&amp;amp;Culture=es-AR&amp;amp;community=0"&gt;this WebCast&lt;/a&gt; for Latam tomorrow.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9313303" width="1" height="1"&gt;</description></item><item><title>Windows 8, Azure ACS and TFS Preview Part I</title><link>http://weblogs.asp.net/mjarguello/archive/2012/10/27/windows-8-azure-acs-and-tfs-preview-part-i.aspx</link><pubDate>Sat, 27 Oct 2012 19:07:03 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9231560</guid><dc:creator>javarg</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/mjarguello/rsscomments.aspx?PostID=9231560</wfw:commentRss><comments>http://weblogs.asp.net/mjarguello/archive/2012/10/27/windows-8-azure-acs-and-tfs-preview-part-i.aspx#comments</comments><description>&lt;p&gt;TFS Preview is another flavor of famous Developer Collaboration Solution of Microsoft on Azure (still in preview).&lt;/p&gt;  &lt;p&gt;In past opportunities I needed to integrate external solutions or extend it’s behavior by using TFS Web Services.&lt;/p&gt;  &lt;p&gt;In this post I will show you how you can interop with TFS Preview in Azure Web Services in order to develop custom Apps, particularly Windows 8 Store Apps.&lt;/p&gt;  &lt;p&gt;TFS Preview uses &lt;a href="http://msdn.microsoft.com/en-us/library/windowsazure/gg429786.aspx" target="_blank"&gt;Windows Azure ACS&lt;/a&gt; and passive Windows Live ID Identity Provider. Check out &lt;a href="http://blogs.msdn.com/b/vbertocci/archive/2012/04/04/authenticating-users-from-passive-ips-in-rich-client-apps-via-acs.aspx" target="_blank"&gt;this&lt;/a&gt; great article about the subject.&lt;/p&gt;  &lt;p&gt;Passive Identity Providers are meant to be used interactively by a user authenticating into a Web Site. That’s were &lt;a href="http://msdn.microsoft.com/en-us/security/aa570351.aspx" target="_blank"&gt;WIF&lt;/a&gt; might be used in a Web Site in order to support this kind of Authentication Providers.&lt;/p&gt;  &lt;p&gt;The workflow overview is as follows (sorry for no having a nice picture):&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;When the user hits your Web Site, she is redirected to Azure ACS &lt;/li&gt;    &lt;li&gt;ACS then replies back with the list of Identity Providers configured (i.e. Live ID, Yahoo, GMail, etc.), then she can choose one of them. &lt;/li&gt;    &lt;li&gt;The user is then redirected to the Identity Provider’s Web Site and supplies it’s credentials.      &lt;ul&gt;       &lt;li&gt;This redirection is carried out with special parameters indicating the final Resource Web Site the user is trying to get. &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt;    &lt;li&gt;After the IP (Identity Provider) authenticates the user, it generates an special Web Form as response.      &lt;ul&gt;       &lt;li&gt;The Form contains hidden input values with the token generated by the IP and some extra information. &lt;/li&gt;        &lt;li&gt;The Form also performs an automatic Post (using JavaScript) to the final Resource Web Site (Cross Post) &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt;    &lt;li&gt;The final Web Site then receives the Post with the authentication information and Authorizes the user (or not). If using ASP.NET you might be working with WIF here.      &lt;ul&gt;       &lt;li&gt;WIF understands this Form and uses an ASP.NET Handler to process the request. &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt;    &lt;li&gt;Finally, the Resource Web Site responds with session cookies. &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;There are &lt;a href="http://msdn.microsoft.com/en-us/library/windowsazure/gg185948.aspx" target="_blank"&gt;several protocols&lt;/a&gt; that can negotiate and obtain a security protocol between the ACS services and the relaying party. TFS Preview services use WS-Federation.&lt;/p&gt;  &lt;p&gt;When TFS Preview authorizes the user (the last step in the previous workflow) it generates 2 session cookies called &lt;strong&gt;FedAuth&lt;/strong&gt; and &lt;strong&gt;FedAuth1&lt;/strong&gt;. They actually contain the Security Token of the session encoded en encrypted (the 2 cookies are meant to be joint together to form the Security Token).&lt;/p&gt;  &lt;p&gt;On extra piece of information is need for this process to work, and that is the subscription name of the TFS Preview instance. The subscription name is the first name part in the TFS connection URL, i.e. &lt;strong&gt;&lt;u&gt;javier&lt;/u&gt;.tfspreview.com&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;The subscription URL (javier.tfspreview.com) act as the Resource to consume, so this URL is required before hand.&lt;/p&gt;  &lt;p&gt;In the next post I will show you how to connect and query project names from TFS Preview using a WinRT App.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9231560" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Team+Foundation+Server/default.aspx">Team Foundation Server</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Azure/default.aspx">Azure</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/tfspreview/default.aspx">tfspreview</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/WinRT/default.aspx">WinRT</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Windows+8/default.aspx">Windows 8</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/ACS/default.aspx">ACS</category></item><item><title>WinRT WebView and Cookies</title><link>http://weblogs.asp.net/mjarguello/archive/2012/10/27/winrt-webview-and-cookies.aspx</link><pubDate>Sat, 27 Oct 2012 17:24:20 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9230833</guid><dc:creator>javarg</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/mjarguello/rsscomments.aspx?PostID=9230833</wfw:commentRss><comments>http://weblogs.asp.net/mjarguello/archive/2012/10/27/winrt-webview-and-cookies.aspx#comments</comments><description>&lt;p&gt;Turns out that &lt;a href="http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.webview" target="_blank"&gt;WebView&lt;/a&gt; Control in WinRT is much more limited than it’s counterpart in WPF/Silverlight.&lt;/p&gt;  &lt;p&gt;There are some great articles out there in how to extend the control in order for it to support navigation events and some other features.&lt;/p&gt;  &lt;p&gt;For a personal project I'm working on, I needed to grab cookies a Web Site generated for the user. Basically, after a user authenticated to a Web Site I needed to get the authentication cookies and generate some extra requests on her behalf.&lt;/p&gt;  &lt;p&gt;In order to do so, I’ve found &lt;a href="http://www.bonafideideas.com/?p=174" target="_blank"&gt;this great article&lt;/a&gt; about a similar case using SharePoint and Azure ACS.&lt;/p&gt;  &lt;p&gt;The secret is to use a p/invoke to native &lt;a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa384714(v=vs.85).aspx" target="_blank"&gt;InternetGetCookieEx&lt;/a&gt; to get cookies for the current URL displayed in the WebView control.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:94f5ddf0-ffb9-491e-a13b-af0eae31baec" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"&gt;&lt;pre style=" width: 714px; height: 319px;background-color:White;overflow: auto;"&gt;&lt;div&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;span style="color: #0000FF;"&gt;void&lt;/span&gt;&lt;span style="color: #000000;"&gt; WebView_LoadCompleted(&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;object&lt;/span&gt;&lt;span style="color: #000000;"&gt; sender, NavigationEventArgs e)
{
    var urlPattern &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #800000;"&gt;http://someserver.com/somefolder&lt;/span&gt;&lt;span style="color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #000000;"&gt;;
    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;if&lt;/span&gt;&lt;span style="color: #000000;"&gt; (e.Uri.ToString().StartsWith(urlPattern))
    {
        var cookies &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; InternetGetCookieEx(e.Uri.ToString());

        &lt;/span&gt;&lt;span style="color: #008000;"&gt;//&lt;/span&gt;&lt;span style="color: #008000;"&gt; Do something with the cookies&lt;/span&gt;&lt;span style="color: #008000;"&gt;
&lt;/span&gt;&lt;span style="color: #000000;"&gt;    }
}

&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;static&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;string&lt;/span&gt;&lt;span style="color: #000000;"&gt; InternetGetCookieEx(&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;string&lt;/span&gt;&lt;span style="color: #000000;"&gt; url)
{
    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;uint&lt;/span&gt;&lt;span style="color: #000000;"&gt; sizeInBytes &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #800080;"&gt;0&lt;/span&gt;&lt;span style="color: #000000;"&gt;;

    &lt;/span&gt;&lt;span style="color: #008000;"&gt;//&lt;/span&gt;&lt;span style="color: #008000;"&gt; Gets capacity length first&lt;/span&gt;&lt;span style="color: #008000;"&gt;
&lt;/span&gt;&lt;span style="color: #000000;"&gt;    InternetGetCookieEx(url, &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;null&lt;/span&gt;&lt;span style="color: #000000;"&gt;, &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;null&lt;/span&gt;&lt;span style="color: #000000;"&gt;, &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;ref&lt;/span&gt;&lt;span style="color: #000000;"&gt; sizeInBytes, INTERNET_COOKIE_HTTPONLY, IntPtr.Zero);

    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;uint&lt;/span&gt;&lt;span style="color: #000000;"&gt; bufferCapacityInChars &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; (&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;uint&lt;/span&gt;&lt;span style="color: #000000;"&gt;)Encoding.Unicode.GetMaxCharCount((&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt;)sizeInBytes);

    &lt;/span&gt;&lt;span style="color: #008000;"&gt;//&lt;/span&gt;&lt;span style="color: #008000;"&gt; Now get cookie data&lt;/span&gt;&lt;span style="color: #008000;"&gt;
&lt;/span&gt;&lt;span style="color: #000000;"&gt;    var cookieData &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;new&lt;/span&gt;&lt;span style="color: #000000;"&gt; StringBuilder((&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt;)bufferCapacityInChars);
    InternetGetCookieEx(url, &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;null&lt;/span&gt;&lt;span style="color: #000000;"&gt;, cookieData, &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;ref&lt;/span&gt;&lt;span style="color: #000000;"&gt; bufferCapacityInChars, INTERNET_COOKIE_HTTPONLY, IntPtr.Zero);

    &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;return&lt;/span&gt;&lt;span style="color: #000000;"&gt; cookieData.ToString();
}&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;p&gt;Function import using p/invoke follows:&lt;/p&gt;

&lt;div id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:21705e08-9b4e-48d2-96b8-66b59e692d55" class="wlWriterEditableSmartContent" style="float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px"&gt;&lt;pre style=" width: 714px; height: 115px;background-color:White;overflow: auto;"&gt;&lt;div&gt;&lt;!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--&gt;&lt;span style="color: #0000FF;"&gt;const&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; INTERNET_COOKIE_HTTPONLY &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #800080;"&gt;0x00002000&lt;/span&gt;&lt;span style="color: #000000;"&gt;;

[DllImport(&lt;/span&gt;&lt;span style="color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #800000;"&gt;wininet.dll&lt;/span&gt;&lt;span style="color: #800000;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color: #000000;"&gt;, CharSet &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; CharSet.Unicode, SetLastError &lt;/span&gt;&lt;span style="color: #000000;"&gt;=&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;true&lt;/span&gt;&lt;span style="color: #000000;"&gt;)]
&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;static&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;extern&lt;/span&gt;&lt;span style="color: #000000;"&gt; &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;bool&lt;/span&gt;&lt;span style="color: #000000;"&gt; InternetGetCookieEx(&lt;/span&gt;&lt;span style="color: #0000FF;"&gt;string&lt;/span&gt;&lt;span style="color: #000000;"&gt; pchURL, &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;string&lt;/span&gt;&lt;span style="color: #000000;"&gt; pchCookieName, StringBuilder pchCookieData, &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;ref&lt;/span&gt;&lt;span style="color: #000000;"&gt; System.UInt32 pcchCookieData, &lt;/span&gt;&lt;span style="color: #0000FF;"&gt;int&lt;/span&gt;&lt;span style="color: #000000;"&gt; dwFlags, IntPtr lpReserved);
&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin.  http://dunnhq.com --&gt;&lt;/div&gt;

&lt;p&gt;Enjoy!&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9230833" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/mjarguello/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/.NET/default.aspx">.NET</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/WinRT/default.aspx">WinRT</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Windows+8/default.aspx">Windows 8</category></item><item><title>Database Unit Testing Not Supported in VS2012</title><link>http://weblogs.asp.net/mjarguello/archive/2012/10/19/database-unit-testing-not-supported-in-vs2012.aspx</link><pubDate>Fri, 19 Oct 2012 14:53:51 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9148956</guid><dc:creator>javarg</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/mjarguello/rsscomments.aspx?PostID=9148956</wfw:commentRss><comments>http://weblogs.asp.net/mjarguello/archive/2012/10/19/database-unit-testing-not-supported-in-vs2012.aspx#comments</comments><description>&lt;p&gt;If you are migrating solutions/projects to VS2012, beware that DB Unit Testing are no longer supported.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://social.msdn.microsoft.com/Forums/en-US/vstest/thread/487746cc-3397-43ac-8f66-b4bff066a351"&gt;http://social.msdn.microsoft.com/Forums/en-US/vstest/thread/487746cc-3397-43ac-8f66-b4bff066a351&lt;/a&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9148956" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Visual+Studio/default.aspx">Visual Studio</category></item><item><title>Quiero ser líder..</title><link>http://weblogs.asp.net/mjarguello/archive/2012/10/12/quiero-ser-l-237-der.aspx</link><pubDate>Fri, 12 Oct 2012 05:57:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9093984</guid><dc:creator>javarg</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/mjarguello/rsscomments.aspx?PostID=9093984</wfw:commentRss><comments>http://weblogs.asp.net/mjarguello/archive/2012/10/12/quiero-ser-l-237-der.aspx#comments</comments><description>&lt;p&gt;Pienso y creo que una de las profesiones más nobles y respetables que existen son las ingenierías o especialidades técnicas. Al igual que un músico, un pintor, un artesano o un artista, utilizamos nuestras ideas y pensamientos para resolver problemas, crear modelos de soluciones, estudiar la complejidad de la naturaleza e intentar simplificarla de alguna manera en nuestra mente.&lt;/p&gt;
&lt;p&gt;Cuando encontramos un problema digno de dar batalla, nos comprometemos más allá de nuestro trabajo y responsabilidades, sacrificamos tiempo personal y de nuestras familias, muchas veces para darnos cuenta que tenemos que empezar de nuevo, pensar distinto y volver a intentar con otra estrategia.&lt;/p&gt;
&lt;p&gt;Los técnicos e ingenieros somos el corazón de la fuerza productiva e industrial de una sociedad. Encontramos satisfacción al luchar contra la complejidad ante la que la mayoría abandona al primer intento. Esto no lo hacemos generalmente por una motivación meramente económica, más que por un desafío y satisfacción personal.&lt;/p&gt;
&lt;p&gt;Veo sin embargo, que este tipo de profesiones se ve desvirtuada (lamentablemente) ante la creencia de que posiciones de gestión o administración generarán un mayor ingreso económico y de alguna manera menor compromiso con el resultado final de un emprendimiento.&lt;/p&gt;
&lt;p&gt;Me sorprende ver la gran cantidad de gente joven recibida de carreras de ingeniería o técnicas, que sin mucha experiencia laboral, desea orientarse en administración o gestión antes de especializarse técnicamente. Gente con buena predisposición para ser buenos ingenieros y especialistas, que desean pasar rápidamente a posiciones de administración o “liderazgo” antes de comprometerse con la carrera que han elegido estudiar.&lt;/p&gt;
&lt;p&gt;Tengo que decir que me enfada enormemente el uso de la palabra “Líder” de manera arbitraria (algo que escucho muy frecuentemente en entrevistas de trabajo), entendiendo erróneamente que un líder es saber gestionar o administrar un proyecto. En nuestra profesión (así como en cualquier otra), un líder es aquel al cual la gente escucha y se compromete porque los motiva, genera una cierta mística que provoca generalmente admiración por parte de sus colaboradores.&lt;/p&gt;
&lt;p&gt;El ser líder requiere de muchas habilidades, dedicación y compromiso con una causa. No es fácil desempeñar realmente este tipo de roles en un equipo de gente muy especializada.&lt;/p&gt;
&lt;p&gt;Creo que este tipo de influencias viene ya desde las universidades, en donde preparan gente en materias técnicas pero con miras a desempeñar cargos gerenciales.&lt;/p&gt;
&lt;p&gt;Esto último no me parece nada malo, sin embargo, en países como en el que vivimos, hay una gran carencia de perfiles que estén directamente relacionados a las fuerzas de producción, que construya, que piense en soluciones (de ingeniería o sociales), que idee escenarios distintos, que se comprometa con su trabajo y que lo sienta como algo propio y personal. &lt;strong&gt;Porque no hay nada más personal que la creación propia&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Por supuesto que necesitamos gestores y administradores, reconozco que no es nada fácil administrar proyectos y tomar decisiones. De hecho, yo mismo me veo obligado a desempeñar este tipo de funciones actualmente. No olvido sin embargo mi verdadero amor, aquello que me llevó por este camino hace tiempo. Eso que no debemos perder nunca, aquella satisfacción enorme de encontrar algo a lo que estamos dispuestos a dedicar nuestra vida, nuestro tiempo personal y que, cada cierto tiempo, nos premia sabiendo que hemos creado algo bueno o ganado una batalla contra la complejidad del mundo que nos rodea.&lt;/p&gt;
&lt;p&gt; Debemos sentirnos orgullosos de ser ingenieros o técnicos y de la profesión que hemos elegido.&lt;/p&gt;
&lt;p&gt; &lt;strong&gt;*&lt;/strong&gt; Si vienen a una entrevista conmigo, &lt;span style="text-decoration: underline;"&gt;por favor&lt;/span&gt; no digan que son líderes o quieren serlo. &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9093984" width="1" height="1"&gt;</description></item><item><title>Credentials Problem with TFS Preview Service</title><link>http://weblogs.asp.net/mjarguello/archive/2012/10/09/credentials-problem-with-tfs-preview-service.aspx</link><pubDate>Wed, 10 Oct 2012 02:37:59 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9081359</guid><dc:creator>javarg</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/mjarguello/rsscomments.aspx?PostID=9081359</wfw:commentRss><comments>http://weblogs.asp.net/mjarguello/archive/2012/10/09/credentials-problem-with-tfs-preview-service.aspx#comments</comments><description>&lt;p&gt;I’ve came across this issue when using more than one Live accounts to login to &lt;a href="https://tfspreview.com/" target="_blank"&gt;TFS Preview&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;It turned out that I needed to delete IE cookies in order to Visual Studio to correctly prompt for credentials again.&lt;/p&gt;  &lt;p&gt;Check &lt;a href="http://stackoverflow.com/questions/12685111/tfs-preview-error-tf30063-you-are-not-authorized-to-access-collection" target="_blank"&gt;this&lt;/a&gt; thread.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9081359" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Team+Foundation+Server/default.aspx">Team Foundation Server</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/tfspreview/default.aspx">tfspreview</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Cloud/default.aspx">Cloud</category></item><item><title>Great CodedUI and Testing Guidance from ALM Rangers Team</title><link>http://weblogs.asp.net/mjarguello/archive/2012/10/09/great-codedui-and-testing-guidance-from-alm-rangers-team.aspx</link><pubDate>Tue, 09 Oct 2012 15:17:54 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9078638</guid><dc:creator>javarg</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/mjarguello/rsscomments.aspx?PostID=9078638</wfw:commentRss><comments>http://weblogs.asp.net/mjarguello/archive/2012/10/09/great-codedui-and-testing-guidance-from-alm-rangers-team.aspx#comments</comments><description>&lt;p&gt;Download it from &lt;a href="http://vsartesttoolingguide.codeplex.com/" target="_blank"&gt;codeplex&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9078638" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Team+Foundation+Server/default.aspx">Team Foundation Server</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Team+System/default.aspx">Team System</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/TFS/default.aspx">TFS</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/ALM/default.aspx">ALM</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Testing/default.aspx">Testing</category></item><item><title>MVP!</title><link>http://weblogs.asp.net/mjarguello/archive/2012/10/05/mvp.aspx</link><pubDate>Fri, 05 Oct 2012 14:38:26 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9049744</guid><dc:creator>javarg</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/mjarguello/rsscomments.aspx?PostID=9049744</wfw:commentRss><comments>http://weblogs.asp.net/mjarguello/archive/2012/10/05/mvp.aspx#comments</comments><description>&lt;p&gt;Thanks to Microsoft for this amazing award!&lt;/p&gt;
&lt;p&gt;&lt;img title="NewImage.png" src="http://weblogs.asp.net/blogs/mjarguello/NewImage.png" alt="NewImage" width="111" height="175" border="0" /&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9049744" width="1" height="1"&gt;</description></item><item><title>MSDN WebCast: Developer Collaboration with Team Foundation Server 2012</title><link>http://weblogs.asp.net/mjarguello/archive/2012/09/18/msdn-webcast-developer-collaboration-with-team-foundation-server-2012.aspx</link><pubDate>Tue, 18 Sep 2012 20:51:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:8942274</guid><dc:creator>javarg</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/mjarguello/rsscomments.aspx?PostID=8942274</wfw:commentRss><comments>http://weblogs.asp.net/mjarguello/archive/2012/09/18/msdn-webcast-developer-collaboration-with-team-foundation-server-2012.aspx#comments</comments><description>Register &lt;a href="https://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032524686&amp;amp;Culture=es-AR&amp;amp;community=0" target="_blank" mce_href="https://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032524686&amp;amp;Culture=es-AR&amp;amp;community=0"&gt;here&lt;/a&gt;.&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=8942274" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Team+Foundation+Server/default.aspx">Team Foundation Server</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Team+System/default.aspx">Team System</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/ALM/default.aspx">ALM</category><category domain="http://weblogs.asp.net/mjarguello/archive/tags/WebCast/default.aspx">WebCast</category></item></channel></rss>