<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Tips and tricks from a Developer Support perspective.</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/spike/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/spike/feed.xml</link>
    <description>While some cases may start of as complex, they sometimes turn out to be caused by something not that complex. As the case always is once you have the solution. So I thought I would share some of the things that I&amp;#039;ve come across, and hopefully tha</description>
    <lastBuildDate>Wed, 05 Aug 2015 16:15:05 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Microsoft SQL Server 2012 RS Add-In for SharePoint fails to install.</title>
      <link>https://docs.microsoft.com/archive/blogs/spike/microsoft-sql-server-2012-rs-add-in-for-sharepoint-fails-to-install</link>
      <pubDate>Tue, 03 Mar 2015 08:13:00 GMT</pubDate>
      <dc:creator><![CDATA[Michael Aspengren - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/spike/2015/03/03/microsoft-sql-server-2012-rs-add-in-for-sharepoint-fails-to-install/</guid>
      <description><![CDATA[You are trying to install the Reporting Services add-in for SharePoint Products...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: georgia,palatino; font-size: medium;">You are trying to install the Reporting Services add-in for SharePoint Products </span><br /><span style="font-family: georgia,palatino; font-size: medium;"><a href="https://msdn.microsoft.com/en-us/library/gg426282.aspx">https://msdn.microsoft.com/en-us/library/gg426282.aspx</a>&nbsp;</span></p>
<p><span style="font-family: georgia,palatino; font-size: medium;">This fails and you check the logs @ C:\Users\&lt;your user&gt;\AppData\Local\Temp\RS_SP_&lt;a number&gt;.log</span><br /><br /><span style="font-family: georgia,palatino; font-size: medium;">What you see is something like this:</span></p>
<p><span style="font-family: georgia,palatino;">...</span></p>
<p>Total number of configuration settings run: 2<br />Total number of successful configuration settings: 1<br />Total number of unsuccessful configuration settings: 1<br />Successfully stopped the configuration of SharePoint Products.<br />Configuration of SharePoint Products failed.&nbsp; Configuration must be performed before you use SharePoint Products.&nbsp; For further details, see the diagnostic log located at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS\PSCDiagnostics_3_3_2015_16_51_12_997_108052037.log and the application event log.</p>
<p>2015-03-03 16:51:35: <br />2015-03-03 16:51:35: Install error: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\bin\psconfig.exe return error code: -1<br />2015-03-03 16:51:35: Error details: System.Exception: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\bin\psconfig.exe return error code: -1<br />&nbsp;&nbsp; at RSCustomAction.BaseProcessLaunch.LaunchCommand(String fileName, String arguments, Boolean ignoreExitCode)<br />&nbsp;&nbsp; at RSCustomAction.PsconfigCommands.CopyAppBinContents()<br />&nbsp;&nbsp; at RSCustomAction.RSFeatureSetup.Install(Boolean repair, Int32 addRetries)<br />2015-03-03 16:51:35: Uninstalling Report Server feature.<br />2015-03-03 16:51:35: Stopping W3SVC service.</p>
<p>...</p>
<p><span style="font-family: georgia,palatino; font-size: medium;">I do not know why but this error is caused by having comments in one or more of your web.config files.</span><br /><span style="font-family: georgia,palatino; font-size: medium;">So, the solution is remove any comments in the web.config files and rerun the installer.</span><br /><br /><span style="font-family: georgia,palatino; font-size: medium;">Web.config files are here: C:\inetpub\wwwroot\wss\VirtualDirectories\&lt;port number&gt;</span></p>
<p><span style="font-family: georgia,palatino; font-size: medium;">Comments are surrounded by &lt;!-- --&gt;</span><br /><br /><span style="font-family: georgia,palatino; font-size: medium;">So, for example:</span><br /><br /><span style="font-family: georgia,palatino; font-size: medium;">&lt;!-- this is a comment--&gt;</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><br />&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>SharePoint 2013. Excel Services. w3wp.exe fails with "Exception code: 0x80131623"</title>
      <link>https://docs.microsoft.com/archive/blogs/spike/sharepoint-2013-excel-services-w3wp-exe-fails-with-exception-code-0x80131623</link>
      <pubDate>Thu, 12 Feb 2015 03:52:00 GMT</pubDate>
      <dc:creator><![CDATA[Michael Aspengren - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/spike/2015/02/12/sharepoint-2013-excel-services-w3wp-exe-fails-with-exception-code-0x80131623/</guid>
      <description><![CDATA[I came across an issue the other day where the Excel Services failed to start in SharePoint...]]></description>
      <content:encoded><![CDATA[<p><span style="font-family: verdana,geneva;">I came across an issue the other day where the Excel Services failed to start in SharePoint 2013.<br /></span><span style="font-family: verdana,geneva;">When a user clicked an *.xlsx file the following message was displayed in the browser</span></p>
<p><em><span style="font-family: verdana,geneva;">"We're sorry. We ran into a problem completing your request. Please try that again in a few minutes"</span></em></p>
<p><span style="font-family: verdana,geneva;">and the corresponding w3wp.exe process went down. I managed to reproduce this here and found the solution.</span><br /><span style="font-family: verdana,geneva;">Basically this was down to a permission issue in the registry. Steps to see the issue and the solution below.</span></p>
<p><span style="font-family: verdana,geneva;">:: Removed "READ" permissions on HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\15.0 (in this case for the WSS_WPG group).</span><br /><span style="font-family: verdana,geneva;">:: Did an IISReset to make sure all was properly reset and then tried to open a *.xlsx file. This produced the following:</span></p>
<p><span style="font-family: verdana,geneva;"># In the browser:</span></p>
<p><em><span style="font-family: verdana,geneva;">"We're sorry. We ran into a problem completing your request. Please try that again in a few minutes"</span></em></p>
<p><span style="font-family: verdana,geneva;"># In the ULS logs:</span></p>
<p><span style="background-color: #ffffff;">&lt;date&gt;&lt;time&gt;&nbsp;&nbsp; w3wp.exe (0x2D30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x1958&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Excel Services Application&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Web Front End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; acbd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Critical&nbsp;&nbsp;&nbsp; </span><br /><span style="background-color: #ffffff;">Unable to reach Excel Calculation Services <a href="http://<servername>/e1413656e1ac4e948a91e26d5913011c/ExcelService*.asmx"><span style="background-color: #ffffff;">http://&lt;servername&gt;/e1413656e1ac4e948a91e26d5913011c/ExcelService*.asmx</span></a>. [Session:&nbsp; User: &lt;account&gt;]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<p><span style="background-color: #ffffff;">&lt;date&gt;&lt;time&gt;&nbsp;&nbsp; w3wp.exe (0x2D30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x1958&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Excel Services Application&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Web Front End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; accf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Medium&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><br /><span style="background-color: #ffffff;">ServerSession.ProcessWebException: A Web exception during ExecuteWebMethod has occurred for server: <a href="http://<servername>/e1413656e1ac4e948a91e26d5913011c/ExcelService*.asmx"><span style="background-color: #ffffff;">http://&lt;servername&gt;/e1413656e1ac4e948a91e26d5913011c/ExcelService*.asmx</span></a>, method: </span><br /><span style="background-color: #ffffff;">GetHealthScore, ex: System.Net.WebException: The remote server returned an error: (503) Server Unavailable.&nbsp;&nbsp;&nbsp;&nbsp; </span><br /><span style="background-color: #ffffff;">&nbsp;at System.Net.HttpWebRequest.GetResponse()&nbsp;&nbsp;&nbsp;&nbsp; </span><br /><span style="background-color: #ffffff;">&nbsp;at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout), response: 'System.Net.HttpWebResponse', status ProtocolError, user name: &lt;account&gt;.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<p><span style="background-color: #ffffff;">&lt;date&gt;&lt;time&gt;&nbsp;&nbsp; w3wp.exe (0x2D30)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x1958&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Excel Services Application&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Web Front End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; acco&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Critical&nbsp;&nbsp;&nbsp; </span><br /><span style="background-color: #ffffff;">There was an error in communicating with Excel Calculation Services <a href="http://<servername>/e1413656e1ac4e948a91e26d5913011c/ExcelService*.asmx"><span style="background-color: #ffffff;">http://&lt;servername&gt;/e1413656e1ac4e948a91e26d5913011c/ExcelService*.asmx</span></a> exception: The remote server returned an error: (503) Server Unavailable. [Session:&nbsp; User: &lt;account&gt;].</span></p>
<p><span style="font-family: verdana,geneva;"># In Process Monitor (<a href="https://technet.microsoft.com/sv-se/sysinternals/bb896645">https://technet.microsoft.com/sv-se/sysinternals/bb896645</a>):</span><span style="font-family: verdana,geneva;"></span></p>
<p><span style="font-family: verdana,geneva;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/78/77/8787.ProcMon.jpg" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-78-77/8787.ProcMon.jpg"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/78/77/8787.ProcMon.jpg" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-78-77/8787.ProcMon.jpg" alt="" width="695" height="141" border="0" /></a></span></p>
<p><span style="font-family: verdana,geneva;"># In Event Viewer:<br /><br /></span>Faulting application name: w3wp.exe, version: 8.5.9600.16384, time stamp: 0x5215df96<br />Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000<br />Exception code: 0x80131623<br />Fault offset: 0x00007ffada0caf23<br />Faulting process id: 0x11e8<br />Faulting application start time: 0x01d03a1b81cbbc8c<br />Faulting application path: c:\windows\system32\inetsrv\w3wp.exe<br />Faulting module path: unknown<br />Report Id: d0141935-a60e-11e4-80d1-00155d3a280a<br />Faulting package full name: <br />Faulting package-relative application ID: <br />...</p>
<p>An internal error occurred.<br />&nbsp;&nbsp; at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)<br />&nbsp;&nbsp; at Microsoft.Win32.Registry.GetValue(String keyName, String valueName, Object defaultValue)<br />&nbsp;&nbsp; at Microsoft.Office.Excel.Server.MossHost.MossHost.get_HostBinaryPath()<br />&nbsp;&nbsp; at Microsoft.Office.Excel.Server.CalculationServer.ExcelServerApp.Initialize()<br />&nbsp;&nbsp; at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchBlock, FinallyBlock finallyBlock)<br />...</p>
<p>Application: w3wp.exe<br />Framework Version: v4.0.30319<br />Description: The application requested process termination through System.Environment.FailFast(string message).<br />Message: <br />Stack:<br />&nbsp;&nbsp; at System.Environment.FailFast(System.String)<br />&nbsp;&nbsp; at Microsoft.Office.Excel.Server.HelperMethods.HandleShutdown(System.Exception, Boolean)<br />&nbsp;&nbsp; at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean, TryBlock, FilterBlock, CatchBlock, FinallyBlock)<br />&nbsp;&nbsp; at Microsoft.Office.Web.Common.ExceptionReporting.ReportOnExceptionTag(UInt32, Category, System.String, Boolean, Microsoft.Office.Web.Common.TryBlock, Microsoft.Office.Web.Common.CatchBlock, Microsoft.Office.Web.Common.FinallyBlock)<br />&nbsp;&nbsp; at Microsoft.Office.Excel.Server.CalculationServer.ExcelServerApp..ctor()<br />&nbsp;&nbsp; at Microsoft.Office.Excel.Server.CalculationServer.ExcelServerApp..cctor()<br />&nbsp;&nbsp; at Microsoft.Office.Excel.Server.CalculationServer.ExcelServiceBase.SafeSetContext()<br />&nbsp;&nbsp; at Microsoft.Office.Excel.Server.CalculationServer.ExcelServiceBase.BeginProcessOperation(Microsoft.Office.Excel.Server.CalculationServer.CommandParameter, Microsoft.Office.Excel.Server.WebMethodBehaviorAttribute, Microsoft.Office.Excel.Server.WebMethodType, System.AsyncCallback, System.Object, Microsoft.Office.Excel.Server.CalculationServer.Operations.UserOperation)<br />&nbsp;&nbsp; at Microsoft.Office.Excel.Server.CalculationServer.ExcelServiceBase.BeginProcessOperation(Microsoft.Office.Excel.Server.CalculationServer.CommandParameter, Microsoft.Office.Excel.Server.WebMethodType, System.AsyncCallback, System.Object, Microsoft.Office.Excel.Server.CalculationServer.Operations.UserOperation)<br />&nbsp;&nbsp; at Microsoft.Office.Excel.Server.CalculationServer.ExcelServiceSoap.BeginGetHealthScore(System.AsyncCallback, System.Object)<br />...</p>
<p>&nbsp;</p>
<p><span style="font-family: verdana,geneva;">:: Adding back the READ permission on HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\15.0 (in this case for the WSS_WPG group) allows the *.xlsx to open again.</span></p>
<p><span style="font-family: verdana,geneva;">So if you come across the issue/errors shown above then make sure that the process account have the correct permissions in the registry.</span></p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>"Installation of one or more roles, role services, or features failed. Error: 0x800f0922" when installing IIS 8.0 Application Initialization.</title>
      <link>https://docs.microsoft.com/archive/blogs/spike/installation-of-one-or-more-roles-role-services-or-features-failed-error-0x800f0922-when-installing-iis-8-0-application-initialization</link>
      <pubDate>Tue, 19 Nov 2013 01:49:00 GMT</pubDate>
      <dc:creator><![CDATA[Michael Aspengren - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/spike/2013/11/19/installation-of-one-or-more-roles-role-services-or-features-failed-error-0x800f0922-when-installing-iis-8-0-application-initialization/</guid>
      <description><![CDATA[The other day I got a case where customer was trying to install the Application Initialization...]]></description>
      <content:encoded><![CDATA[<div class="WordSection1">
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">The other day I got a case where customer was trying to install the Application Initialization feature on a Windows 2012 / IIS 8.0 machine.</span><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="Normal"><span style="mso-ansi-language: EN-US;" lang="EN-US">IIS 8.0 Application Initialization <br /></span><a href="http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-application-initialization">http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-application-initialization</a></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US"><br /> However, this failed for customer. And it showed that it failed for me too.<br /></span><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">When attempting to install it from the Server Manager, the error looked like this:</span><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/78/77/6457.IISAppInit.bmp" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-78-77/6457.IISAppInit.bmp"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/78/77/6457.IISAppInit.bmp" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-78-77/6457.IISAppInit.bmp" alt="" border="0" /></a></span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">When attempting to install it from a PowerShell command prompt, the error looked like this:</span><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="CodeLog"><span lang="EN-US">Windows PowerShell<br /></span><span lang="EN-US">Copyright (C) 2012 Microsoft Corporation. All rights reserved.</span><span lang="EN-US"></span></p>
<p class="CodeLog"><span lang="EN-US">&nbsp;</span></p>
<p class="CodeLog"><span lang="EN-US">PS C:\Windows\system32&gt; Import-Module <span class="SpellE">ServerManager<br /></span></span><span lang="EN-US">PS C:\Windows\system32&gt; Add-<span class="SpellE">WindowsFeature</span> Web-<span class="SpellE">AppInit<br /></span></span><span lang="EN-US">Add-<span class="SpellE"><span class="GramE">WindowsFeature</span></span><span class="GramE"> :</span> The request to add or remove features on the specified server failed.<br /></span><span lang="EN-US">Installation of one or more roles, role services, or features failed. Error: 0x800f0922<br /></span><span lang="EN-US">At line<span class="GramE">:1</span> char:1<br /></span><span lang="EN-US">+ Add-<span class="SpellE">WindowsFeature</span> Web-<span class="SpellE">AppInit<br /></span></span><span lang="EN-US">+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br /></span><span lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>+ <span class="SpellE">CategoryInfo</span><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>: <span class="SpellE">InvalidOperation</span>: (<span class="GramE">@{</span><span class="SpellE">Vhd</span>=; Credent...Name=<span class="SpellE">localhost</span>}:<span class="SpellE">PSObject</span>) [Install-<span class="SpellE">WindowsFeature</span>], Exception<br /></span><span lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>+ <span class="SpellE"><span class="GramE">FullyQualifiedErrorId</span></span><span class="GramE"> :</span> DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand<br /></span><span lang="EN-US">Success Restart Needed Exit Code<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Feature Result</span></p>
<p class="CodeLog"><span lang="EN-US">------- -------------- ---------<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>--------------<br /></span><span lang="EN-US">False<span style="mso-spacerun: yes;">&nbsp;&nbsp; </span>No<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Failed<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{}</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">When researching on this, I didn&rsquo;t find much (hence this post). <br /></span><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">When investigating the IIS.log I noticed that there were some Accessed Denied (0x80070005)</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="CodeLog"><span lang="EN-US">[&lt;<span class="GramE">date</span> time&gt;] <span class="GramE">[ *</span>**** IIS 8.0 Component Based Setup ***** ]<br /></span><span lang="EN-US">[&lt;<span class="GramE">date</span> time&gt;] "C:\Windows\System32\inetsrv\iissetup.exe" /launch C:\Windows\System32\inetsrv\appcmd.exe reset <span class="SpellE">config</span> -<span class="SpellE">section<span class="GramE">:system.webServer</span></span>/<span class="SpellE">applicationInitialization<br /></span></span><span lang="EN-US">[&lt;<span class="GramE">date</span> time&gt;] Launching command C:\Windows\System32\inetsrv\appcmd.exe, with <span class="SpellE">params</span> C:\Windows\System32\inetsrv\appcmd.exe reset <span class="SpellE">config</span> -<span class="SpellE">section<span class="GramE">:system.webServer</span></span>/<span class="SpellE">applicationInitialization<br /></span></span><span lang="EN-US">[&lt;<span class="GramE">date</span> time&gt;] &lt; !!FAIL!! &gt; <span class="SpellE">LaunchCommand</span> result=<strong style="mso-bidi-font-weight: normal;">0x80070005<br /></strong></span><span lang="EN-US">[&lt;<span class="GramE">date</span> time&gt;] <span class="GramE">[ End</span> of IIS 8.0 Component Based Setup ]</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">Some further testing showed that I (and customer) had Shared Configuration enabled on the machine.<br /></span><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">And, in short, the installer runs with an identity that normally do not have access to the share where the shared configuration <span class="SpellE">applicationhost.config</span> is located.<br /></span><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">And, equally short, the solution here was to disable Shared Configuration during the installation of the Application Initialization feature.<br /><br /></span><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">So if you see the error above when installing the Application Initialization feature then check if Shared Configuration is enabled.<br /></span><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">If yes, disable Shared Configuration, perform an <span class="SpellE">IISReset</span>, run the &ldquo;Add-<span class="SpellE">WindowsFeature</span> Web-<span class="SpellE">AppInit</span>&rdquo; command from PowerShell (or install it from the Server Manager).</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;">&nbsp;</p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">Hope this helps.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">Installing IIS Modules in Shared Configuration Environments <br /></span><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US"><a href="http://www.iis.net/learn/manage/provisioning-and-managing-iis/installing-iis-modules-in-shared-configuration-environments"><span style="color: #033160; mso-themecolor: hyperlink; mso-themeshade: 128; mso-style-textfill-fill-color: #033160; mso-style-textfill-fill-themecolor: hyperlink; mso-style-textfill-fill-alpha: 100.0%;">http://www.iis.net/learn/manage/provisioning-and-managing-iis/installing-iis-modules-in-shared-configuration-environments</span></a>&nbsp;<span style="mso-spacerun: yes;">&nbsp;</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #203864; mso-themecolor: accent5; mso-themeshade: 128; mso-style-textfill-fill-color: #203864; mso-style-textfill-fill-themecolor: accent5; mso-style-textfill-fill-alpha: 100.0%; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
</div>]]></content:encoded>
    </item>
    <item>
      <title>Repeated login dialogs ending with a 401 when using Basic Authentication in IIS.</title>
      <link>https://docs.microsoft.com/archive/blogs/spike/repeated-login-dialogs-ending-with-a-401-when-using-basic-authentication-in-iis</link>
      <pubDate>Thu, 03 Oct 2013 01:54:10 GMT</pubDate>
      <dc:creator><![CDATA[Michael Aspengren - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/spike/2013/10/03/repeated-login-dialogs-ending-with-a-401-when-using-basic-authentication-in-iis/</guid>
      <description><![CDATA[You have chosen to use Basic Authentication on your web application.
You know that you have the...]]></description>
      <content:encoded><![CDATA[<div class="WordSection1">
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">You have chosen to use Basic Authentication on your web application.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">You know that you have the correct username and password but still you (and/or your users) keeps getting the login window and after a few attempts to insert your credentials you will get the: </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-outline-level: 2; background: white;"><strong><span style="font-size: 14.5pt; font-family: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: #cc0000; mso-ansi-language: EN-US; mso-fareast-language: SV;" lang="EN-US">401 - Unauthorized: Access is denied due to invalid credentials.</span></strong></p>
<p class="MsoNormal" style="margin-top: 7.5pt; margin-right: 0cm; margin-bottom: .0001pt; margin-left: 0cm; line-height: normal; mso-outline-level: 3; background: white;"><strong><span style="font-size: 10.0pt; font-family: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; color: black; mso-ansi-language: EN-US; mso-fareast-language: SV;" lang="EN-US">You do not have permission to view this directory or page using the credentials that you supplied.</span></strong></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">One common reason for this is that (by mistake or intentionally) the Basic Authentication has the &ldquo;<span class="SpellE">defaultLogonDomain</span>&rdquo; property set.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">What happens when &ldquo;<span class="SpellE">defaultLogonDomain</span>&rdquo; is used and the user enters only their <span class="SpellE">UserName</span> is that IIS will prefix or add the domain name in &ldquo;<span class="SpellE">defaultLogonDomain</span>&rdquo; to the username. </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">If the user do not belong to that domain (a typical scenario is that the setup is that a user account is created on the IIS machine and as such do not belong to a domain, only to the machine) that user will naturally not be authorized to IIS. </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">This is explained and described here:</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Configure Basic Authentication (IIS 7)</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US"><a href="http://technet.microsoft.com/en-us/library/cc772009(v=WS.10).aspx"><span style="color: #033160; mso-themecolor: hyperlink; mso-themeshade: 128; mso-style-textfill-fill-color: #033160; mso-style-textfill-fill-themecolor: hyperlink; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000;">http://technet.microsoft.com/en-us/library/cc772009(v=WS.10).aspx</span></a> <span style="mso-spacerun: yes;">&nbsp;</span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><em style="mso-bidi-font-style: normal;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">"Users who do not provide a domain when they log on to your site are authenticated against this domain." </span></em></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Basic Authentication &lt;<span class="SpellE">basicAuthentication</span>&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US"><a href="http://www.iis.net/configreference/system.webserver/security/authentication/basicauthentication"><span style="color: #033160; mso-themecolor: hyperlink; mso-themeshade: 128; mso-style-textfill-fill-color: #033160; mso-style-textfill-fill-themecolor: hyperlink; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000;">http://www.iis.net/configreference/system.webserver/security/authentication/basicauthentication</span></a> <br style="mso-special-character: line-break;" /> <br style="mso-special-character: line-break;" /> </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">So, in short, if you create a user that is local to the IIS machine and you use this account with <span class="SpellE">BasicAuthentication</span> and have the &ldquo;<span class="SpellE">defaultLogonDomain</span>&rdquo; set, then that domain will be prefixed to the user name. </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">So the username will be </span><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">DOMAIN\USERNAME </span><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">rather than </span><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">USERNAME </span><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">only.<br /> <br /> To demonstrate with an example.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Create a local user on the IIS machine. In this example: </span><span class="SpellE"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">MyLocalUser</span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Create an application on IIS and set Basic Authentication only for that application.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&lt;<span class="SpellE">system.webServer</span>&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;<span class="GramE">security</span>&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;<span class="GramE">authentication</span>&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;<span class="SpellE">basicAuthentication</span> enabled="true" /&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Test the application, you should now be prompted for the username and password. This should work fine.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Now set the &ldquo;<span class="SpellE">defaultLogonDomain</span>&rdquo; to, for example, </span><span class="SpellE"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">FakeDomain</span></span><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">This can be done by selecting &ldquo;Edit&hellip;&rdquo; when Basic Authentication is selected in the Authentication section in IIS Manger or in the .<span class="SpellE">config</span> files.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">It will look like this:</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&hellip;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;<span class="SpellE">system.webServer</span>&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;<span class="GramE">security</span>&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;<span class="GramE">authentication</span>&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;<span class="SpellE">basicAuthentication</span> enabled="true" realm="" <span class="SpellE">defaultLogonDomain</span>="<span class="SpellE">FakeDomain</span>" /&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&hellip;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Try to login again using the username,</span><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">MyLocalUser</span>,</span><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US"> only and you should get the 401. This is because we are now logging in as </span><span class="SpellE"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">FakeDomain</span></span><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">\<span class="SpellE">MyLocalUser</span></span><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Try to login again using the machine name (or the domain the user belongs to) like so,</span><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US"> &lt;your machine name&gt;\<span class="SpellE">MyLocalUser</span>,</span><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US"> and you should get in.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">In the IIS logs, you may have something like this for the failed login:</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">#Fields: date time s-<span class="SpellE">ip</span> <span class="SpellE">cs</span>-method <span class="SpellE">cs</span>-<span class="SpellE">uri</span>-stem <span class="SpellE">cs</span>-<span class="SpellE">uri</span>-query s-port <span class="SpellE">cs</span>-username c-<span class="SpellE">ip</span> <span class="SpellE"><span class="GramE">cs</span></span><span class="GramE">(</span>User-Agent) <span class="SpellE">sc</span>-status <span class="SpellE">sc-substatus</span> sc-win32-status <span class="SpellE">sc</span>-bytes <span class="SpellE">cs</span>-bytes time-taken</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&lt;<span class="GramE">date</span>&gt; &lt;time&gt; &lt;<span class="SpellE">serverip</span>&gt; GET &lt;application&gt;/Default.aspx - 80 <span class="SpellE">MyLocalUser</span> &lt;<span class="SpellE">clientip</span>&gt; &lt;<span class="SpellE">useragent</span>&gt; 401 1 1326 ...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">We know that 401.1 = Logon failed <span class="GramE">( </span><a href="http://support.microsoft.com/kb/943891/en-us"><span style="color: #033160; mso-themecolor: hyperlink; mso-themeshade: 128; mso-style-textfill-fill-color: #033160; mso-style-textfill-fill-themecolor: hyperlink; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000;">http://support.microsoft.com/kb/943891/en-us</span></a> ) and if checking the sc-win32-status (1326):</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">C:\Windows\system32&gt;net <span class="SpellE">helpmsg</span> 1326</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Logon failure: unknown user name or bad password.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">So in summary. </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">If you are using Basic Authentication and &ldquo;<span class="SpellE">defaultLogonDomain</span>&rdquo; is set then the user has to be part of that domain if no domain name is used when logging in.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Or if the user is not part of the domain in the &ldquo;<span class="SpellE">defaultLogonDomain</span>&rdquo;, then the domain that the user belongs to needs to be prefixed (domain\username) when logging in.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Hope this helps.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
</div>]]></content:encoded>
    </item>
    <item>
      <title>Failed while restarting W3SVC.  Error code: 0x8007041d</title>
      <link>https://docs.microsoft.com/archive/blogs/spike/failed-while-restarting-w3svc-error-code-0x8007041d</link>
      <pubDate>Thu, 22 Aug 2013 02:49:22 GMT</pubDate>
      <dc:creator><![CDATA[Michael Aspengren - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/spike/2013/08/22/failed-while-restarting-w3svc-error-code-0x8007041d/</guid>
      <description><![CDATA[&nbsp;
The scenario is this.
You are in IIS Manager for IIS 6.0 and you are changing the ASP.Net...]]></description>
      <content:encoded><![CDATA[<div class="WordSection1">
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">The scenario is this.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">You are in IIS Manager for IIS 6.0 and you are changing the ASP.Net version for your application (Application, Properties, the ASP.Net tab, ASP.Net version).</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">You hit Apply or OK and you get the hourglass and then you wait. The site may also become unavailable until you restart the web server or do an <span class="SpellE">IISReset</span>.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">When you check the Application Event logs, you will see this error:</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #F2F2F2; mso-background-themecolor: background1; mso-background-themeshade: 242;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Event Type:<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp; </span>Error</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #F2F2F2; mso-background-themecolor: background1; mso-background-themeshade: 242;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Event Source:<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>ASP.NET 2.0.50727.0</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #F2F2F2; mso-background-themecolor: background1; mso-background-themeshade: 242;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Event Category:None</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #F2F2F2; mso-background-themecolor: background1; mso-background-themeshade: 242;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Event ID:<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>1024</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #F2F2F2; mso-background-themecolor: background1; mso-background-themeshade: 242;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&hellip;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #F2F2F2; mso-background-themecolor: background1; mso-background-themeshade: 242;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Description:</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #F2F2F2; mso-background-themecolor: background1; mso-background-themeshade: 242;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Failed while restarting W3SVC.<span style="mso-spacerun: yes;">&nbsp; </span>Error code: 0x8007041d</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">So. What is going on?</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Using the err.exe tool (<a href="http://www.microsoft.com/en-us/download/details.aspx?id=985"><span style="color: #033160; mso-themecolor: hyperlink; mso-themeshade: 128; mso-style-textfill-fill-color: #033160; mso-style-textfill-fill-themecolor: hyperlink; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000;">http://www.microsoft.com/en-us/download/details.aspx?id=985</span></a> ) gives a hint:</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #F2F2F2; mso-background-themecolor: background1; mso-background-themeshade: 242;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">C:\ERR&gt;err 0x8007041d</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #F2F2F2; mso-background-themecolor: background1; mso-background-themeshade: 242;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US"># <span class="GramE">as</span> an HRESULT: Severity: FAILURE (1), Facility: 0x7, Code 0x41d</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #F2F2F2; mso-background-themecolor: background1; mso-background-themeshade: 242;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #F2F2F2; mso-background-themecolor: background1; mso-background-themeshade: 242;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp; </span>ERROR_SERVICE_REQUEST_TIMEOUT<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="SpellE">winerror.h</span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #F2F2F2; mso-background-themecolor: background1; mso-background-themeshade: 242;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US"># <span class="GramE">The</span> service did not respond to the start or control request in a timely fashion.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">So something did not respond or start in a given amount of time.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">In this case the following happens. When you change the ASP.Net version the entire W3SVC process restarts. The timeout for this is 60 seconds.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">This also means that the associated application pool must be shut down. And the &ldquo;Shutdown time limit&rdquo; is 90 seconds. </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">This time is given so that, for example, connections to databases can be closed, resources to be freed etc.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">So in a case where the application pool have not stopped within the given time (90 seconds by default) we will hit the W3SVC timeout limit (60 seconds by default) and </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span class="GramE"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">we</span></span><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US"> will get the behavior and message in the application event logs.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">The recommendation would be to not change ASP.Net version on production machines except during maintenance or when the usage is low so that the application pool </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span class="GramE"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">can</span></span><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US"> be stopped within the given time. Or you could reduce the time given to the Application pool to shut down (i.e. less than the 60 second W3SVC timeout limit).</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Now, why the application pool takes so long to stop is a different story </span><span style="font-family: Wingdings; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US; mso-char-type: symbol; mso-symbol-font-family: Wingdings;" lang="EN-US"><span style="mso-char-type: symbol; mso-symbol-font-family: Wingdings;">J</span></span><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US"><br /> <span class="GramE">There</span> could be many reasons why it can&rsquo;t shut down in time. One is described in Tess blog below. But to get the individual cause the specific application pool must be investigated.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">ASP.NET tab forces restart of W3SVC</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US"><a href="http://blogs.msdn.com/b/jorman/archive/2006/04/14/576605.aspx"><span style="color: #033160; mso-themecolor: hyperlink; mso-themeshade: 128; mso-style-textfill-fill-color: #033160; mso-style-textfill-fill-themecolor: hyperlink; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000;">http://blogs.msdn.com/b/jorman/archive/2006/04/14/576605.aspx</span></a> </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">ASP.NET hang/slowness on startup</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US"><a href="http://blogs.msdn.com/b/tess/archive/2008/01/17/asp-net-hang-slowness-on-startup.aspx"><span style="color: #033160; mso-themecolor: hyperlink; mso-themeshade: 128; mso-style-textfill-fill-color: #033160; mso-style-textfill-fill-themecolor: hyperlink; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000;">http://blogs.msdn.com/b/tess/archive/2008/01/17/asp-net-hang-slowness-on-startup.aspx</span></a> </span></p>
</div>]]></content:encoded>
    </item>
    <item>
      <title>A network analysis of passive (EPSV or PASV) FTP connection.</title>
      <link>https://docs.microsoft.com/archive/blogs/spike/a-network-analysis-of-passive-epsv-or-pasv-ftp-connection</link>
      <pubDate>Thu, 04 Jul 2013 05:23:55 GMT</pubDate>
      <dc:creator><![CDATA[Michael Aspengren - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/spike/2013/07/04/a-network-analysis-of-passive-epsv-or-pasv-ftp-connection/</guid>
      <description><![CDATA[&nbsp;
Cases and questions somehow seems to come in bulk.
Lately I have had several cases on FTP...]]></description>
      <content:encoded><![CDATA[<div class="WordSection1">
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Cases and questions somehow seems to come in bulk.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Lately I have had several cases on FTP connections that uses EPSV or PASV.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">And there has been some confusion on how this works and what ports are being used. So below is, hopefully, an understandable explanation.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">The network traces is taken on Windows 2012 running IIS 8. </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Below the sender is always on the left side, the receiver is on the right.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Frame #<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">Src</span> IP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">Src</span> Port<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">Dst</span></span> IP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">Dst</span> Port<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Proto<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">Desc</span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Here we see that the client has initiated the connection to the FTP service. I.e. the client uses, for example, Internet Explorer, to go to the URL: <span class="GramE">ftp:</span>//&lt;the ftp server&gt;.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">This initiates the 3 way handshake between the client (on random port, 50209 in this case) and the control channel port on the server (which is 21 by default).</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">741<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50209 (0xC421)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>TCP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">TCP<span class="GramE">:Flags</span></span>=......S., <span class="SpellE">SrcPort</span>=50209, <span class="SpellE">DstPort</span>=FTP control(21), <span class="SpellE">PayloadLen</span>=0, ...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">743<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50209 (0xC421)<span style="mso-tab-count: 1;">&nbsp; </span>TCP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">TCP<span class="GramE">:Flags</span></span>=...A..S., <span class="SpellE">SrcPort</span>=FTP <span class="GramE">control(</span>21), <span class="SpellE">DstPort</span>=50209, <span class="SpellE">PayloadLen</span>=0, ...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">744<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50209 (0xC421)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>TCP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">TCP<span class="GramE">:Flags</span></span>=...A...., <span class="SpellE">SrcPort</span>=50209, <span class="SpellE">DstPort</span>=FTP control(21), <span class="SpellE">PayloadLen</span>=0, ...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">The server then, from port 21, tells the client that we are on the FTP service and that the user have logged in.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">All FTP command communication between the client and server occurs on port 21 on the server side.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">745<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50209 (0xC421)<span style="mso-tab-count: 1;">&nbsp; </span>FTP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span class="GramE">:Response</span> to Port 50209, '220<span style="mso-spacerun: yes;">&nbsp; </span>Microsoft FTP Service'</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">749<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50209 (0xC421)<span style="mso-tab-count: 1;">&nbsp; </span>FTP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span class="GramE">:Response</span> to Port 50209, '230<span style="mso-spacerun: yes;">&nbsp; </span>User logged in.'</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Now, here we see that the client tells the server that the client wants to use EPSV (extended passive mode). </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">This request is sent from client&rsquo;s port (50209) to the command channel port (21).</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">The server then responds that it wants the data transfer connection to occur port 34347. The server selects one of its ephemeral port and it just happens to be 34347 in this case.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">It could however be any other port that the servers sees fit to use.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">754<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50209 (0xC421)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span class="GramE">:Request</span> from Port 50209, 'EPSV'</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">755<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50209 (0xC421)<span style="mso-tab-count: 1;">&nbsp; </span>FTP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span class="GramE">:Response</span> to Port 50209, '229<span style="mso-spacerun: yes;">&nbsp; </span>Entering Extended Passive Mode (|||34347|)'</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">The first thing that now happens is that the client establishes a new connection between itself and the server for the data transfer communications.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">The client now uses its port 50214 on its side. And as seen above, it has been informed that the server wants the client to connect to the server on port 34347.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">So we now have a new 3 way handshake between these ports.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">757<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50214 (0xC426)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>34347 (0x862B)<span style="mso-tab-count: 1;">&nbsp; </span>TCP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">TCP<span class="GramE">:Flags</span></span>=......S., <span class="SpellE">SrcPort</span>=50214, <span class="SpellE">DstPort</span>=34347, <span class="SpellE">PayloadLen</span>=0, ...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">758<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>34347 (0x862B)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50214 (0xC426)<span style="mso-tab-count: 1;">&nbsp; </span>TCP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">TCP<span class="GramE">:Flags</span></span>=...A..S., <span class="SpellE">SrcPort</span>=34347, <span class="SpellE">DstPort</span>=50214, <span class="SpellE">PayloadLen</span>=0<span class="GramE">, ...</span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">759<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50214 (0xC426)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>34347 (0x862B)<span style="mso-tab-count: 1;">&nbsp; </span>TCP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">TCP<span class="GramE">:Flags</span></span>=...A...., <span class="SpellE">SrcPort</span>=50214, <span class="SpellE">DstPort</span>=34347, <span class="SpellE">PayloadLen</span>=0, ...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Once this is done, we can see that the client sends a LIST command (a DIR) to get a list of files available on the server side. </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">This is a command, so this happens on server port 21.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">760<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50209 (0xC421)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span class="GramE">:Request</span> from Port 50209, 'LIST'</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">761<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50209 (0xC421)<span style="mso-tab-count: 1;">&nbsp; </span>FTP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span class="GramE">:Response</span> to Port 50209, '125<span style="mso-spacerun: yes;">&nbsp; </span>Data connection already open; Transfer starting.'</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">The data is now transferred between server (on port 34347) and the client (on port 50214). </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Once the data is transferred, the server is finishing the connection. This happens with the 4 way handshake.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">This starts with the server sending an ACK-FIN (frame 763) over the data transfer connection and then sends a message to the client over the command channel (frame 764).</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">The client ACKs the servers FIN (frame 765) and the 226 message sent by server (frame 766).</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">The client then sends its own ACK-FIN (frame 767) to the server which then ACKs (frame 768) that. And the connection is now closed.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;</span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">763<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>34347 (0x862B)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50214 (0xC426)<span style="mso-tab-count: 1;">&nbsp; </span>TCP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">TCP<span class="GramE">:Flags</span></span>=...A...F, <span class="SpellE">SrcPort</span>=34347, <span class="SpellE">DstPort</span>=50214, <span class="SpellE">PayloadLen</span>=0, ...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">764<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50209 (0xC421)<span style="mso-tab-count: 1;">&nbsp; </span>FTP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span class="GramE">:Response</span> to Port 50209, '226<span style="mso-spacerun: yes;">&nbsp; </span>Transfer complete.'</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">765<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50214 (0xC426)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>34347 (0x862B)<span style="mso-tab-count: 1;">&nbsp; </span>TCP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">TCP<span class="GramE">:Flags</span></span>=...A...., <span class="SpellE">SrcPort</span>=50214, <span class="SpellE">DstPort</span>=34347, <span class="SpellE">PayloadLen</span>=0, ...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">766<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50209 (0xC421)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>TCP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">TCP<span class="GramE">:Flags</span></span>=...A...., <span class="SpellE">SrcPort</span>=50209, <span class="SpellE">DstPort</span>=FTP control(21), <span class="SpellE">PayloadLen</span>=0, ...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">767<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50214 (0xC426)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>34347 (0x862B)<span style="mso-tab-count: 1;">&nbsp; </span>TCP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">TCP<span class="GramE">:Flags</span></span>=...A...F, <span class="SpellE">SrcPort</span>=50214, <span class="SpellE">DstPort</span>=34347, <span class="SpellE">PayloadLen</span>=0, ...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">768<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>34347 (0x862B)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;client side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>50214 (0xC426)<span style="mso-tab-count: 1;">&nbsp; </span>TCP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">TCP<span class="GramE">:Flags</span></span>=...A...., <span class="SpellE">SrcPort</span>=34347, <span class="SpellE">DstPort</span>=50214, <span class="SpellE">PayloadLen</span>=0, ...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Later on, we have a new EPSV command coming in, this time the server selects a different port that it wants the data transfer communication to occur on (34348).</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Again, this information is sent on the command channel to the client. </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">1407<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50209 (0xC421)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span class="GramE">:Request</span> from Port 50209, 'EPSV'</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">1408<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50209 (0xC421)<span style="mso-tab-count: 1;">&nbsp; </span>FTP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span class="GramE">:Response</span> to Port 50209, '229<span style="mso-spacerun: yes;">&nbsp; </span>Entering Extended Passive Mode (|||34348|)'</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">The client then performs a new 3-way handshake between these ports.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">1410<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50215 (0xC427)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>34348 (0x862C)<span style="mso-tab-count: 1;">&nbsp; </span>TCP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">TCP<span class="GramE">:Flags</span></span>=......S., <span class="SpellE">SrcPort</span>=50215, <span class="SpellE">DstPort</span>=34348, <span class="SpellE">PayloadLen</span>=0, ...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">1411<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>34348 (0x862C)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50215 (0xC427)<span style="mso-tab-count: 1;">&nbsp; </span>TCP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">TCP<span class="GramE">:Flags</span></span>=...A..S., <span class="SpellE">SrcPort</span>=34348, <span class="SpellE">DstPort</span>=50215, <span class="SpellE">PayloadLen</span>=0<span class="GramE">, ...</span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">1412<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50215 (0xC427)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>34348 (0x862C)<span style="mso-tab-count: 1;">&nbsp; </span>TCP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">TCP<span class="GramE">:Flags</span></span>=...A...., <span class="SpellE">SrcPort</span>=50215, <span class="SpellE">DstPort</span>=34348, <span class="SpellE">PayloadLen</span>=0, ...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">And then we see the request from the client to download (RETR) a <span class="SpellE">particulare</span> file (FtpFile.txt here).</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">1413<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50209 (0xC421)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span class="GramE">:Request</span> from Port 50209,'SIZE /FtpFile.txt'</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">1414<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50209 (0xC421)<span style="mso-tab-count: 1;">&nbsp; </span>FTP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span class="GramE">:Response</span> to Port 50209, '213<span style="mso-spacerun: yes;">&nbsp; </span>1763790'</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">1415<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50209 (0xC421)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span class="GramE">:Request</span> from Port 50209,'RETR /FtpFile.txt'</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">1416<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50209 (0xC421)<span style="mso-tab-count: 1;">&nbsp; </span>FTP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span class="GramE">:Response</span> to Port 50209, '125<span style="mso-spacerun: yes;">&nbsp; </span>Data connection already open; Transfer starting.'</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">And then the above is repeated until the FTP session is over.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">So, why is this of interest? Well, if the connection is ACTIVE rather than PASSIVE it means that the server will do the data transfer on port 20 (server side).</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">In the scenario above the server decides on the fly what port to use for the data connection. This then means that the client may have a firewall that is blocking outbound connections on this port.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">In the scenario above, it would possibly mean that the client is allowing outbound traffic on the known FTP command channel port (21). So we can establish a connection and the user can login and so on.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">But as soon as the client performs any data transfer action (a DIR or LIST command for example) we may have a situation where the port provided by the server for the data transfer (port 34347 and 34348 in the example above)</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span class="GramE"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">is</span></span><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US"> blocked in the firewall. This would then mean that the server sends the response to the client over the command port (21) and then just waits until it times out since no data is coming in over the network.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">So, if you have situation where you can connect and login to your FTP server but not transfer or list any data, then the first thing to do is to verify that there is nothing blocking on the port</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span class="GramE"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">that</span></span><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US"> the server chooses to use for the data transfer. If so, you should see (in the example above) that the server sends the port to use (34347 in frame 755) but no SYN coming in from client (frame 757).</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">One last thing, if the client uses PASV rather than EPSV then the FTP<span class="GramE">:Response</span> containing the port to use will look different.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">EPSV:</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>50209 (0xC421)<span style="mso-tab-count: 1;">&nbsp; </span>FTP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span class="GramE">:Response</span> to Port 50209, '229<span style="mso-spacerun: yes;">&nbsp; </span>Entering Extended Passive Mode (|||34347|)'</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">PASV:</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>49707 (0xC22B)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span class="GramE">:Request</span> from Port 49707, 'PASV'</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>21 (0x15)<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>49707 (0xC22B)<span style="mso-tab-count: 1;">&nbsp; </span>FTP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>FTP<span class="GramE">:Response</span> to Port 49707, '227<span style="mso-spacerun: yes;">&nbsp; </span>Entering Passive Mode (10,166,56,104,130,242).'</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>49708 (0xC22C)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>33522 (0x82F2)<span style="mso-tab-count: 1;">&nbsp; </span>TCP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">TCP<span class="GramE">:Flags</span></span>=......S., <span class="SpellE">SrcPort</span>=49708, <span class="SpellE">DstPort</span>=33522, <span class="SpellE">PayloadLen</span>=0, ...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>33522 (0x82F2)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>49708 (0xC22C)<span style="mso-tab-count: 1;">&nbsp; </span>TCP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">TCP<span class="GramE">:Flags</span></span>=...A..S., <span class="SpellE">SrcPort</span>=33522, <span class="SpellE">DstPort</span>=49708, <span class="SpellE">PayloadLen</span>=0<span class="GramE">, ...</span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #D9D9D9; mso-background-themecolor: background1; mso-background-themeshade: 217;"><span style="font-size: 8.0pt; line-height: 105%; font-family: Consolas; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&lt;client side&gt; <span style="mso-tab-count: 1;">&nbsp; </span>49708 (0xC22C)<span style="mso-tab-count: 1;">&nbsp; </span>&lt;server side&gt;<span style="mso-tab-count: 1;">&nbsp;&nbsp; </span>33522 (0x82F2)<span style="mso-tab-count: 1;">&nbsp; </span>TCP<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">TCP<span class="GramE">:Flags</span></span>=...A...., <span class="SpellE">SrcPort</span>=49708, <span class="SpellE">DstPort</span>=33522, <span class="SpellE">PayloadLen</span>=0, ...</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">EPSV sends the port number in 'clear text' PASV sends it in the format of (10<span class="GramE">,166,56,104,130,242</span>).</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">However, do not despair. The math is simple. Take the second to last number (130) and multiply it with 256 and add the last number (242) and you will have the port number.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">In this case ((130 * 256) + 242) = 33522. And the 3-way handshake will occur on this port.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;</span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Hope the above helps.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Information <span class="GramE">About</span> the IIS File Transmission Protocol (FTP) Service</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US"><a href="http://support.microsoft.com/kb/283679"><span style="color: #033160; mso-themecolor: hyperlink; mso-themeshade: 128; mso-style-textfill-fill-color: #033160; mso-style-textfill-fill-themecolor: hyperlink; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000;">http://support.microsoft.com/kb/283679</span></a> </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Opening connection (3-way handshake)</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US"><a href="http://en.wikipedia.org/wiki/3_way_handshake#Connection_establishment"><span style="color: #033160; mso-themecolor: hyperlink; mso-themeshade: 128; mso-style-textfill-fill-color: #033160; mso-style-textfill-fill-themecolor: hyperlink; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000;">http://en.wikipedia.org/wiki/3_way_handshake#Connection_establishment</span></a> </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">Closing connection (4-way handshake)</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="color: #1f4e79; mso-themecolor: accent1; mso-themeshade: 128; mso-style-textfill-fill-color: #1F4E79; mso-style-textfill-fill-themecolor: accent1; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000;"><a href="http://en.wikipedia.org/wiki/Transmission_Control_Protocol#Connection_termination"><span style="color: #033160; mso-themecolor: hyperlink; mso-themeshade: 128; mso-style-textfill-fill-color: #033160; mso-style-textfill-fill-themecolor: hyperlink; mso-style-textfill-fill-alpha: 100.0%; mso-style-textfill-fill-colortransforms: lumm=50000; mso-ansi-language: EN-US;" lang="EN-US">http://en.wikipedia.org/wiki/Transmission_Control_Protocol#Connection_termination</span></a></span></p>
</div>]]></content:encoded>
    </item>
    <item>
      <title>How to download multiple files concurrently using WebClient and the DownloadFileAsync method.</title>
      <link>https://docs.microsoft.com/archive/blogs/spike/how-to-download-multiple-files-concurrently-using-webclient-and-the-downloadfileasync-method</link>
      <pubDate>Wed, 12 Jun 2013 01:50:51 GMT</pubDate>
      <dc:creator><![CDATA[Michael Aspengren - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/spike/2013/06/12/how-to-download-multiple-files-concurrently-using-webclient-and-the-downloadfileasync-method/</guid>
      <description><![CDATA[&nbsp;
I had a case the other day where customer was using WebClient and the DownloadFileAsync...]]></description>
      <content:encoded><![CDATA[<div class="WordSection1">
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">I had a case the other day where customer was using <span class="SpellE">WebClient</span> and the <span class="SpellE">DownloadFileAsync</span> method.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Customer then issued 10 concurrent calls to the <span class="SpellE">DownloadFileAsync</span> method and expected all the files to be downloaded at the same time.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">However, only 2 files were concurrently downloading. 10 files were created on disk but only 2 were downloading.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">When one file download was complete. The next would start and so on until all 10 files were downloaded.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">I did some research but found no good explanation or documentation on why this happened or how to fix this.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">So, here is the why and the how. I will do this with an example.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">First place 10 files that will be downloaded on web server. </span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">In my case I&rsquo;ve simply called them File1.txt, File2.txt, etc. up to File10.txt and put them in a &ldquo;Files&rdquo; directory.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Create a new Windows Form Application and drop a button on it.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">In the code behind, use the following code:</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">public</span></span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">partial</span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">class</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">Form1</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> : </span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">Form</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">public</span></span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> Form1()</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">InitializeComponent</span></span><span class="GramE">(</span>);</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">private</span></span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">void</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> button1_Click(</span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">object</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> sender, </span><span class="SpellE"><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">EventArgs</span></span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> e)</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="background: white; color: green; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">// Setting up source and destination</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="background: white; color: green; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">// and creating a list of the file source and destination.</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">string</span></span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> <span class="SpellE">src</span> = </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">"http://&lt;your web server&gt;/Files/File"</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">;</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">string</span></span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> <span class="SpellE">dst</span> = </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">@"C:\Temp\Files\File"</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">;</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">string</span></span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> extension = </span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">".txt"</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">;</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp; </span><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">List</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">&lt;</span><span class="SpellE"><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">FileItem</span></span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">&gt; files = </span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">new</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">List</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">&lt;</span><span class="SpellE"><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">FileItem</span></span><span class="GramE"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">&gt;(</span></span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">);</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">for</span></span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> (</span><span class="SpellE"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">int</span></span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> <span class="SpellE">i</span> = 1; <span class="SpellE">i</span> &lt;= 10; <span class="SpellE">i</span>++)</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">files.Add</span></span><span class="GramE">(</span></span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">new</span><span class="SpellE"><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">FileItem</span></span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> { Source = </span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">new</span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">Uri</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">(<span class="SpellE">src</span> + <span class="SpellE">i.ToString</span>() + extension), Destination = <span class="SpellE">dst</span> + <span class="SpellE">i.ToString</span>() + extension });</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>}</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="background: white; color: green; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">// <span class="GramE">Just</span> iterated through the list to issue 10 concurrent <span class="SpellE">async</span> file downloads</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span class="GramE"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">foreach</span></span></span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> (</span><span class="SpellE"><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">FileItem</span></span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> fi </span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">in</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> files)</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">WebClient</span></span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> client = </span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">new</span><span class="SpellE"><span class="GramE"><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">WebClient</span></span></span><span class="GramE"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">(</span></span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">);</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">client.DownloadFileAsync</span></span><span class="GramE">(</span><span class="SpellE">fi.Source</span>, <span class="SpellE">fi.Destination</span>);</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">class</span></span><span class="SpellE"><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">FileItem</span></span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">public</span></span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">Uri</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> Source { </span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">get</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">; </span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">set</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">; }</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">public</span></span><span style="background: white; color: #2b91af; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">String</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> Destination { </span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">get</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">; </span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">set</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">; }</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-highlight: white;">}</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="background: white; color: black; line-height: 106%; font-family: Consolas; font-size: 8pt; mso-highlight: white;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>}</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Now create the destination directory (<strong style="mso-bidi-font-weight: normal;">C:\Temp\Files\</strong> in this case) if you haven&rsquo;t do so yet.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Run the Win Form application but do not hit the button yet.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Open the destination directory in windows explorer (should be empty) and hit the button. </span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">It should now looks as follows. All files are created but only 2 are downloading at the same time. The rest of the files have a size of 0.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Once one file is downloaded, another one will be downloading until all 10 are downloaded.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/78/77/1832.WebClient.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-78-77/1832.WebClient.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/78/77/1832.WebClient.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-78-77/1832.WebClient.png" alt="" border="0" /></a></span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">So, what we want is to have all 10 files to download concurrently. Not only 2.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">The reason for only 2 files being downloaded concurrently is that this is the default number for outgoing connections in the System.Net / &lt;<span class="SpellE">connectionManagement</span>&gt; / <span class="SpellE">maxconnection</span> setting.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Since you only have 2 outgoing connections. There will be only 2 file downloads allowed at the same time. <span class="SpellE">Async</span> or not.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">See more here:</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&lt;<span class="SpellE"><span class="GramE">connectionManagement</span></span>&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US"><a href="http://msdn.microsoft.com/en-us/library/fb6y0fyc.aspx">http://msdn.microsoft.com/en-us/library/fb6y0fyc.aspx</a></span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">The solution is simply to up this number to, in this example, 10.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">This is done like this in the example above. </span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Open the <span class="SpellE">App.config</span> file for the project and add the <span class="SpellE">maxconnection</span> setting like so:</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span class="GramE"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">&lt;?</span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">xml</span></span><span style="background: white; color: red; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">version</span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">=</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">"</span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">1.0</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">"</span><span style="background: white; color: red; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">encoding</span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">=</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">"</span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">utf-8</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">"</span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> ?&gt;</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">&lt;</span><span class="GramE"><span style="background: white; color: #a31515; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">configuration</span></span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">&gt;</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>&lt;</span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">system.net</span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">&gt;</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;</span><span class="SpellE"><span class="GramE"><span style="background: white; color: #a31515; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">connectionManagement</span></span></span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">&gt;</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;</span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">add</span><span style="background: white; color: red; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">address</span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> = </span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">"</span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">*</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">"</span><span class="SpellE"><span style="background: white; color: red; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">maxconnection</span></span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> = </span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">"</span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">10</span><span style="background: white; color: black; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">"</span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"> /&gt;</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;/</span><span class="SpellE"><span style="background: white; color: #a31515; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">connectionManagement</span></span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">&gt;</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>&lt;/</span><span style="background: white; color: #a31515; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">system.net</span><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">&gt;</span></p>
<p class="MsoNormal" style="line-height: normal; margin-bottom: 0pt; mso-layout-grid-align: none;"><span style="background: white; color: blue; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp; </span></span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="background: white; color: blue; line-height: 106%; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">&lt;/</span><span style="background: white; color: #a31515; line-height: 106%; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">configuration</span><span style="background: white; color: blue; line-height: 106%; font-family: Consolas; font-size: 8pt; mso-ansi-language: EN-US; mso-highlight: white;" lang="EN-US">&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">In this case we allow 10 outgoing connections to any address (*). The <span class="SpellE">Maxconnection</span> value can be different for different endpoints. See the example in the documentation.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Now empty the destination directory and rerun the application. You should now have all 10 files downloading at the same time.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;">&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/78/77/1526.WebClient2.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-78-77/1526.WebClient2.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/78/77/1526.WebClient2.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-78-77/1526.WebClient2.png" alt="" border="0" /></a></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">Hope this helps.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
</div>]]></content:encoded>
    </item>
    <item>
      <title>How to deploy your Windows Store app to Surface RT for testing.</title>
      <link>https://docs.microsoft.com/archive/blogs/spike/how-to-deploy-your-windows-store-app-to-surface-rt-for-testing</link>
      <pubDate>Sun, 19 May 2013 23:56:56 GMT</pubDate>
      <dc:creator><![CDATA[Michael Aspengren - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/spike/2013/05/19/how-to-deploy-your-windows-store-app-to-surface-rt-for-testing/</guid>
      <description><![CDATA[A short post on how to test your Windows Store apps on your Surface RT.
&nbsp;
This is not so...]]></description>
      <content:encoded><![CDATA[<div class="WordSection1">
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">A short post on how to test your Windows Store apps on your Surface RT.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">This is not so hard but it took me a little while to find out how to do this so I thought I&rsquo;d share this.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">The &lsquo;problem&rsquo; is that you need a developer license on the target machine. This you will be administered when, for example, creating a new app in Visual Studio.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">However, you can&rsquo;t run Visual Studio on Surface RT, so this needs to be done another way. And it is useful to test your applications on portable devices in order to test sensors, GPS etc.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">So here is how you do it. </span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">. Select your project in Visual Studio. Right click and select &ldquo;Store&rdquo; -&gt; &ldquo;Create App Packages&hellip;&rdquo;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/78/77/6765.One.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-78-77/6765.One.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/78/77/6765.One.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-78-77/6765.One.png" alt="" border="0" /></a></span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">. Select &ldquo;No&rdquo; in the &ldquo;Do you want to build packages to upload to the Windows Store?&rdquo;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">. Configure ARM as the target. Take note (or change) of the location for the output location and select &ldquo;Create&rdquo;.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/78/77/6232.Two.png" original-url="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-78-77/6232.Two.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/78/77/6232.Two.png" original-url="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-78-77/6232.Two.png" alt="" border="0" /></a></span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">. Now you will have the App package created at the output location. Copy the whole &ldquo;AppPackages&rdquo; directory to the Surface RT.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">You can still not run it. First you need to install you developer license on the Surface RT.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">. On the Surface RT, start a PowerShell command prompt as administrator.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">. Run the following command and follow the instructions:</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black;">Show-WindowsDeveloperLicenseRegistration</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black;">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">See more about this here:</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&ldquo;Get a developer license (Windows Store apps)&rdquo;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><a href="http://msdn.microsoft.com/en-us/library/windows/apps/hh974578.aspx"><span style="color: #034990; mso-themecolor: hyperlink; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">http://msdn.microsoft.com/en-us/library/windows/apps/hh974578.aspx</span></a></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">. Once this is done, you have the developer license on the Surface RT. So simply navigate to the &ldquo;AppPackages&rdquo; directory that you copied over earlier.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">Right click the .ps1 file that was generated for you (typically something like &ldquo;Add-AppDevPackage.ps1&rdquo;) and select &ldquo;Run with PowerShell&rdquo;.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">. And we&rsquo;re done! You should now have your app on your Surface RT&rsquo;s start page. Ready for testing.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">Once you have the developer license on the Surface RT there is no need to reinstall it for each time you want to test your application.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">The license will only be valid on the machine for finite time. After this the app will not run and you will have to reinstall the developer license on the Surface.</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">That is, if you have not finished your app and published it to the store </span><span style="color: #2f5496; font-family: Wingdings; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US; mso-ascii-font-family: Calibri; mso-ascii-theme-font: minor-latin; mso-hansi-font-family: Calibri; mso-hansi-theme-font: minor-latin; mso-char-type: symbol; mso-symbol-font-family: Wingdings;" lang="EN-US"><span style="mso-char-type: symbol; mso-symbol-font-family: Wingdings;">J</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0pt;"><span style="color: #2f5496; mso-themecolor: accent5; mso-themeshade: 191; mso-ansi-language: EN-US;" lang="EN-US">There may be other ways to do this, but this is how I do it and it is simple enough.</span></p>
</div>]]></content:encoded>
    </item>
    <item>
      <title>How to create and use CascadingDropDown from the ajaxToolkit.</title>
      <link>https://docs.microsoft.com/archive/blogs/spike/how-to-create-and-use-cascadingdropdown-from-the-ajaxtoolkit</link>
      <pubDate>Wed, 10 Apr 2013 01:50:13 GMT</pubDate>
      <dc:creator><![CDATA[Michael Aspengren - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/spike/2013/04/10/how-to-create-and-use-cascadingdropdown-from-the-ajaxtoolkit/</guid>
      <description><![CDATA[A short demo on how to create/use CascadingDropDown from the...]]></description>
      <content:encoded><![CDATA[<div class="WordSection1">
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">A short demo on how to create/use <span class="SpellE">CascadingDropDown</span> from the &ldquo;<span class="SpellE">AjaxControlToolkit</span>&rdquo;.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">For this demo I will use the world of football since this lends itself well to cascading drop downs. </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">A country has leagues, a league has teams and teams have players, players have statistics etc.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">So let&rsquo;s get to it.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">. First create a new &ldquo;ASP.Net Empty Web Site&rdquo; in Visual Studio called <span class="SpellE">AjaxCDDDemo</span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">. Install the &ldquo;<span class="SpellE">AjaxControlToolkit</span>&rdquo; via <span class="SpellE">NuGet</span> by right clicking the project and selecting &ldquo;Manage <span class="SpellE">NuGet</span> Packages&rdquo; and search online for &ldquo;<span class="SpellE">AjaxControlToolkit</span>&rdquo; and hit install.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">. Then we need a web service that feeds the drop down. <br /> From: </span><a href="http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/CascadingDropDown/CascadingDropDown.aspx"><span style="mso-ansi-language: EN-US;" lang="EN-US">http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/CascadingDropDown/CascadingDropDown.aspx</span></a></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&ldquo;</span><em style="mso-bidi-font-style: normal;"><span style="font-size: 10.0pt; line-height: 106%; mso-bidi-font-family: Tahoma; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">All the logic about the contents of the set of <span class="SpellE">DropDownList</span> controls lives on the server in a web service. This web service can use any suitable method for storing and looking up the relevant data.</span></em><span style="font-size: 10.0pt; line-height: 106%; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">&rdquo;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; color: black; mso-themecolor: text1; mso-ansi-language: EN-US;" lang="EN-US">So add a new Web Service called &ldquo;FootballService.asmx" (using C# in this example) to the project.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">. Then you need to uncomment the </span><span style="font-size: 10.0pt; line-height: 106%; mso-bidi-font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">[<span class="SpellE">System.Web.Script.Services.<span style="color: #2b91af;">ScriptService</span></span>]</span><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US"> attribute above the class definition. </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">. You can load data from a database or any other storage. I will use three lists (Countries, Leagues, <span class="GramE">Teams</span>) in this example. You can add more lists (Players for each team etc.) if you wish.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">Full code for the web service:</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">using</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">AjaxControlToolkit</span>;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">using</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> System;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">using</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">System.Collections.Generic</span>;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">using</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">System.Linq</span>;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">using</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">System.Web</span>;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">using</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">System.Web.Services</span>;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: gray; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">///</span><span style="font-size: 8.0pt; font-family: Consolas; color: gray; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;summary&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: gray; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">///</span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> Summary description for <span class="SpellE">FootballService</span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: gray; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">///</span><span style="font-size: 8.0pt; font-family: Consolas; color: gray; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;/summary&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">[</span><span class="SpellE"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">WebService</span></span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Namespace = </span><span style="font-size: 8.0pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">"http://tempuri.org/"</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">)]</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">[</span><span class="SpellE"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">WebServiceBinding</span></span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">(</span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">ConformsTo</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> = </span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">WsiProfiles</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">.BasicProfile1_1)]</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// <span class="GramE">To</span> allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">[<span class="SpellE">System.Web.Script.Services.<span style="color: #2b91af;">ScriptService</span></span>]</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">public</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">class</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">FootballService</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> : <span class="SpellE">System.Web.Services.<span style="color: #2b91af;">WebService</span></span> {</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">public</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">FootballService</span> () {</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">//Uncomment the following line if using designed components </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">//<span class="SpellE"><span class="GramE">InitializeComponent</span></span><span class="GramE">(</span>); </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">FillLists</span></span><span class="GramE">(</span>);</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>}</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">List</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Country</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt; countries = </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">List</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Country</span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt;(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">);</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">List</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">League</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt; leagues = </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">List</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">League</span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt;(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">);</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">List</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Team</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt; teams = </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">List</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Team</span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt;(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">);</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">private</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">void</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">FillLists</span>()</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// <span class="GramE">Adding</span> some countries.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">countries.Add</span></span><span class="GramE">(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Country</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> { Id = 1, Name = </span><span style="font-size: 8.0pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">"England"</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> });</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">countries.Add</span></span><span class="GramE">(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Country</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> { Id = 2, Name = </span><span style="font-size: 8.0pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">"Sweden"</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> });</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">countries.Add</span></span><span class="GramE">(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Country</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> { Id = 3, Name = </span><span style="font-size: 8.0pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">"Spain"</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> });</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// <span class="GramE">Adding</span> some leagues with the Id of the country they belong to.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">leagues.Add</span></span><span class="GramE">(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">League</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> { Id = 1, Name = </span><span style="font-size: 8.0pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">"Premier League"</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">, <span class="SpellE">CountryId</span> = 1 });</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="mso-spacerun: yes;">&nbsp;&nbsp;</span><span class="SpellE"><span class="GramE">leagues.Add</span></span><span class="GramE">(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">League</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> { Id = 2, Name = </span><span style="font-size: 8.0pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">"Championship"</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">, <span class="SpellE">CountryId</span> = 1 });</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">leagues.Add</span></span><span class="GramE">(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">League</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> { Id = 3, Name = </span><span style="font-size: 8.0pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">"<span class="SpellE">Superettan</span>"</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">, <span class="SpellE">CountryId</span> = 2 });</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">leagues.Add</span></span><span class="GramE">(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">League</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> { Id = 4, Name = </span><span style="font-size: 8.0pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">"<span class="SpellE">Allsvenskan</span>"</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">, <span class="SpellE">CountryId</span> = 2 });</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// <span class="GramE">Adding</span> some teams with the Id of the league they belong to.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">teams.Add</span></span><span class="GramE">(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Team</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> { Id = 1, Name = </span><span style="font-size: 8.0pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">"Manchester United"</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">, <span class="SpellE">LeagueId</span> = 1 });</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">teams.Add</span></span><span class="GramE">(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Team</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> { Id = 2, Name = </span><span style="font-size: 8.0pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">"Arsenal"</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">, <span class="SpellE">LeagueId</span> = 1 });</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">teams.Add</span></span><span class="GramE">(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Team</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> { Id = 3, Name = </span><span style="font-size: 8.0pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">"Crystal Palace"</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">, <span class="SpellE">LeagueId</span> = 2 });</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">teams.Add</span></span><span class="GramE">(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Team</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> { Id = 4, Name = </span><span style="font-size: 8.0pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">"Watford"</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">, <span class="SpellE">LeagueId</span> = 2 });</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">teams.Add</span></span><span class="GramE">(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Team</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> { Id = 5, Name = </span><span style="font-size: 8.0pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">"<span class="SpellE">Hammarby</span>"</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">, <span class="SpellE">LeagueId</span> = 3 });</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>}</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// *** INFO ***</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// The JavaScript code coming from the <span class="SpellE">CascadingDropDown</span> extender calls a web service method.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// This method is expected to return an array of type <span class="SpellE"><span class="GramE">CascadingDropDownNameValue</span></span><span class="GramE">[</span>].</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// For the CascadingDropDownNameValue contructor the first argument is the list entry text. The second argument is the value</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>[</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">WebMethod</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">]</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">public</span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">CascadingDropDownNameValue</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">[] <span class="SpellE">GetCountries</span>(</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">string</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">knownCategoryValues</span>, </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">string</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> category)</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// Here we simply create a new list of <span class="SpellE">CascadingDropDownNameValue</span>.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// <span class="GramE">We</span> then fill the list will all countries from the list containing the countries and returns this as an array.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">List</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">CascadingDropDownNameValue</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt; l = </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">List</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">CascadingDropDownNameValue</span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt;(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">);</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">var</span></span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> x = </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">from</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> c </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">in</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> countries </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">select</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> c;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">foreach</span></span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> (</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Country</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">country</span> </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">in</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> x)</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">l.Add</span></span><span class="GramE">(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">CascadingDropDownNameValue</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">(<span class="SpellE">country.Name</span>, <span class="SpellE">country.Id.ToString</span>()));</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">return</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">l.ToArray</span>();</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>}</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>[</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">WebMethod</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">]</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">public</span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">CascadingDropDownNameValue</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">[] <span class="SpellE">GetLeagues</span>(</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">string</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">knownCategoryValues</span>, </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">string</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> category)</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// Here we create a new list of <span class="SpellE">CascadingDropDownNameValue</span>.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// <span class="GramE">We</span> then fill the list will all Leagues that has the provided <span class="SpellE">countryId</span> from the list containing the leagues.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// First we need to determine the value selected in the first dropdown (<span class="SpellE">countryId</span> in this case).</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// There is helper method for this, <span class="SpellE">ParseKnownCategoryValuesString</span>.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// <span class="GramE">We</span> also need to validate this data. This is the "Category" in the web page.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// One validated, we have the id in the <span class="SpellE">countryId</span> variable.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">int</span></span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">countryId</span>;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">System.Collections.Specialized.<span style="color: #2b91af;">StringDictionary</span></span> <span class="SpellE">kv</span> = </span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">CascadingDropDown</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">.ParseKnownCategoryValuesString(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">knownCategoryValues);</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">if</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> (!<span class="SpellE">kv.ContainsKey</span>(</span><span style="font-size: 8.0pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">"Country"</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">) || !</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Int32</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">.TryParse(<span class="SpellE">kv</span>[</span><span style="font-size: 8.0pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">"Country"</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">], </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">out</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">countryId</span>))</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">throw</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">ArgumentException</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">(</span><span style="font-size: 8.0pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">"Couldn't find Country."</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">);</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>};</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// <span class="GramE">We</span> then fill the list will all <span class="SpellE">leauges</span> from the list containing the leagues where the <span class="SpellE">countryId</span> matches the incoming <span class="SpellE">countryId</span>.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">List</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">CascadingDropDownNameValue</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt; l = </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">List</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">CascadingDropDownNameValue</span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt;(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">);</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">var</span></span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> x = </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">from</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> le </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">in</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> leagues </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">where</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">le.CountryId</span> == <span class="SpellE">countryId</span> </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">select</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> le;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">foreach</span></span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> (</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">League</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">league</span> </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">in</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> x)</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">l.Add</span></span><span class="GramE">(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">CascadingDropDownNameValue</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">(<span class="SpellE">league.Name</span>, <span class="SpellE">league.Id.ToString</span>()));</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">return</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">l.ToArray</span>();</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>}</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>[</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">WebMethod</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">]</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">public</span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">CascadingDropDownNameValue</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">[] <span class="SpellE">GetTeams</span>(</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">string</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">knownCategoryValues</span>, </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">string</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> category)</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// <span class="GramE">This</span> method does the same as the <span class="SpellE">GetLeagues</span> but takes the <span class="SpellE">leagueId</span> and select the teams based on that.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">int</span></span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">leagueId</span>;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE">System.Collections.Specialized.<span style="color: #2b91af;">StringDictionary</span></span> <span class="SpellE">kv</span> = </span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">CascadingDropDown</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">.ParseKnownCategoryValuesString(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">knownCategoryValues);</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">if</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> (!<span class="SpellE">kv.ContainsKey</span>(</span><span style="font-size: 8.0pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">"League"</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">) || !</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Int32</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">.TryParse(<span class="SpellE">kv</span>[</span><span style="font-size: 8.0pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">"League"</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">], </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">out</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">leagueId</span>))</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">throw</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">ArgumentException</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">(</span><span style="font-size: 8.0pt; font-family: Consolas; color: #a31515; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">"Couldn't find League."</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">);</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>};</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">List</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">CascadingDropDownNameValue</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt; l = </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">List</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">CascadingDropDownNameValue</span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt;(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">);</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">var</span></span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> x = </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">from</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> t </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">in</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> teams </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">where</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">t.LeagueId</span> == <span class="SpellE">leagueId</span> </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">select</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> t;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">foreach</span></span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> (</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Team</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">team</span> </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">in</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> x)</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span class="SpellE"><span class="GramE">l.Add</span></span><span class="GramE">(</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">new</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">CascadingDropDownNameValue</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">(<span class="SpellE">team.Name</span>, <span class="SpellE">team.Id.ToString</span>()));</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">return</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">l.ToArray</span>();</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>}</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>#region</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> Classes</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// <span class="GramE">We</span> have some countries.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// <span class="GramE">Each</span> country has some leagues and each league have some teams so the leagues </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: green; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">// have an Id for the country it belongs to and the teams have an id for the league they belong to.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">public</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">class</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Country</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">public</span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">int</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> Id { </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">get</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">; </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">set</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">; }</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">public</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">string</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> Name { </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">get</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">; </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">set</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">; }</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>}</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">public</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">class</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">League</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">public</span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">int</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> Id { </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">get</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">; </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">set</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">; }</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">public</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">string</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> Name { </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">get</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">; </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">set</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">; }</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">public</span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">int</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">CountryId</span> { </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">get</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">; </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">set</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">; }</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>}</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">public</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">class</span><span style="font-size: 8.0pt; font-family: Consolas; color: #2b91af; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Team</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">public</span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">int</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> Id { </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">get</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">; </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">set</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">; }</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">public</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">string</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> Name { </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">get</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">; </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">set</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">; }</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">public</span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">int</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"> <span class="SpellE">LeagueId</span> { </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">get</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">; </span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">set</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">; }</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white;">}</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>#<span class="SpellE">endregion</span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white;">}</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">. Now we have the web service that will deliver the data. So time to create the page that will hold the <span class="SpellE">CascadingDropDown</span> controls.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">So add a new Web Form (Default.aspx) to the project. </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">. Full code for the web page:</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: yellow; mso-highlight: yellow; mso-ansi-language: EN-US;" lang="EN-US">&lt;%</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">@</span><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Page</span><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Language</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="C#"</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">AutoEventWireup</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="true"</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">CodeFile</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="<span class="SpellE">Default.aspx.cs</span>"</span><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Inherits</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="_Default"</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: yellow; mso-highlight: yellow; mso-ansi-language: EN-US;" lang="EN-US">%&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;!</span><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">DOCTYPE</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">html</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">html</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">xmlns</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="http://www.w3.org/1999/xhtml"&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">head</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">runat</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="server"&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">title</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt;&lt;/</span><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">title</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;/</span><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">head</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">body</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">form</span><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">id</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="form1"</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">runat</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="server"&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">div</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: yellow; mso-highlight: yellow; mso-ansi-language: EN-US;" lang="EN-US">&lt;%</span><span style="font-size: 8.0pt; font-family: Consolas; color: darkgreen; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">--We need the <span class="SpellE">ScriptManager</span> somewhere on the page (within the Form element)<span class="GramE">--<span style="color: black; background: yellow; mso-highlight: yellow;">%</span></span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: yellow; mso-highlight: yellow; mso-ansi-language: EN-US;" lang="EN-US">&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">asp</span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">:</span><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">ScriptManager</span></span></span><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">ID</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="<span class="SpellE">asm</span>"</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">runat</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="server"</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">/&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: yellow; mso-highlight: yellow; mso-ansi-language: EN-US;" lang="EN-US">&lt;%</span><span style="font-size: 8.0pt; font-family: Consolas; color: darkgreen; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">--Set up the <span class="SpellE">DropDownlist</span> that will be used. --</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: yellow; mso-highlight: yellow; mso-ansi-language: EN-US;" lang="EN-US">%&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">asp</span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">:</span><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">DropDownList</span></span></span><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">id</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="<span class="SpellE">ddl_Countries</span>"</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">runat</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="server"</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">/&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">asp</span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">:</span><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">DropDownList</span></span></span><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">id</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="<span class="SpellE">ddl_Leagues</span>"</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">runat</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="server"</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">/&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">asp</span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">:</span><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">DropDownList</span></span></span><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">id</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="<span class="SpellE">ddl_Teams</span>"</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">runat</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="server"</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">/&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">ajaxToolkit</span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">:</span><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">CascadingDropDown</span></span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">ID</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="<span class="SpellE">ccdCountries</span>"</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">runat</span></span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="server"</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">ServicePath</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="FootballService.asmx"</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">ServiceMethod</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="<span class="SpellE">GetCountries</span>"</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">TargetControlID</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="<span class="SpellE">ddl_Countries</span>"</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Category</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="Country"</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">/&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">ajaxToolkit</span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">:</span><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">CascadingDropDown</span></span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">ID</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="<span class="SpellE">ccdLeagues</span>"</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp; </span><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span class="SpellE"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">runat</span></span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="server"</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">ServicePath</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="FootballService.asmx"</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">ServiceMethod</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="<span class="SpellE">GetLeagues</span>"</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">TargetControlID</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="<span class="SpellE">ddl_Leagues</span>"</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">ParentControlID</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="<span class="SpellE">ddl_Countries</span>"</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Category</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="League"</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">EmptyText</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="No leagues for this country."/&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;</span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">ajaxToolkit</span><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">:</span><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">CascadingDropDown</span></span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">ID</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="<span class="SpellE">ccdTeams</span>"</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span class="GramE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">runat</span></span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="server"</span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">ServicePath</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="FootballService.asmx"</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">ServiceMethod</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="<span class="SpellE">GetTeams</span>"</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">TargetControlID</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="<span class="SpellE">ddl_Teams</span>"</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">ParentControlID</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="<span class="SpellE">ddl_Leagues</span>"</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">Category</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="Team"</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="SpellE"><span style="font-size: 8.0pt; font-family: Consolas; color: red; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">EmptyText</span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">="No teams for this league."</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">/&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: yellow; mso-highlight: yellow; mso-ansi-language: EN-US;" lang="EN-US">&lt;%</span><span style="font-size: 8.0pt; font-family: Consolas; color: darkgreen; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">--<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>Quick explanation.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: darkgreen; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>. The <span class="SpellE">ServicePath</span> points to the backing <span class="SpellE">WebService</span>.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: darkgreen; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>. The <span class="SpellE">ServiceMethod</span> points to the method in the backing <span class="SpellE">WebService</span> that will return the data.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: darkgreen; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>. The <span class="SpellE">TargetControlID</span> points to the <span class="SpellE">dropdownlist</span> to populate.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: darkgreen; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>. The <span class="SpellE">ParentControlID</span> points to the parent <span class="SpellE">dropdownlist</span> that controls the content of this list.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: darkgreen; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>. The Category is the information passed to the web method.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: darkgreen; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>. The <span class="SpellE">EmptyText</span> is shown when there is no data.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: darkgreen; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>. There are some more properties as well.<span class="GramE">--<span style="color: black; background: yellow; mso-highlight: yellow;">%</span></span></span><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: yellow; mso-highlight: yellow; mso-ansi-language: EN-US;" lang="EN-US">&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;/</span><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">div</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: black; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;/</span><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">form</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; line-height: normal; mso-layout-grid-align: none; text-autospace: none;"><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;/</span><span style="font-size: 8.0pt; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">body</span><span style="font-size: 8.0pt; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 8.0pt; line-height: 106%; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&lt;/</span><span style="font-size: 8.0pt; line-height: 106%; font-family: Consolas; color: maroon; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">html</span><span style="font-size: 8.0pt; line-height: 106%; font-family: Consolas; color: blue; background: white; mso-highlight: white; mso-ansi-language: EN-US;" lang="EN-US">&gt;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">Now you should be able to run the page and see how the dropdowns are populated based on the values of the parent control.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">Hope this helps.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="Normal"><span style="mso-ansi-language: EN-US;" lang="EN-US">Filling a List Using <span class="SpellE">CascadingDropDown</span>(C#)</span></p>
<p class="Normal"><a href="http://www.asp.net/web-forms/tutorials/ajax-control-toolkit/cascadingdropdown/filling-a-list-using-cascadingdropdown-cs"><span style="mso-ansi-language: EN-US;" lang="EN-US">http://www.asp.net/web-forms/tutorials/ajax-control-toolkit/cascadingdropdown/filling-a-list-using-cascadingdropdown-cs</span></a></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; line-height: 106%; mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
</div>]]></content:encoded>
    </item>
    <item>
      <title>IIS 7.5 - Unable to deploy second server to WFF farm, "Failed to upload assembly 'Microsoft.Web.PlatformInstaller, Version=3.0.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' on remote agent"</title>
      <link>https://docs.microsoft.com/archive/blogs/spike/iis-7-5-unable-to-deploy-second-server-to-wff-farm-failed-to-upload-assembly-microsoft-web-platforminstaller-version3-0-3-0-cultureneutral-publickeytoken31bf3856ad364e35-on-remote-age</link>
      <pubDate>Wed, 27 Feb 2013 01:51:00 GMT</pubDate>
      <dc:creator><![CDATA[Michael Aspengren - MSFT]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/spike/2013/02/27/iis-7-5-unable-to-deploy-second-server-to-wff-farm-failed-to-upload-assembly-microsoft-web-platforminstaller-version3-0-3-0-cultureneutral-publickeytoken31bf3856ad364e35-on-remote-age/</guid>
      <description><![CDATA[I recently had a case where customer was setting up a web farm using the Web Farm Framework...]]></description>
      <content:encoded><![CDATA[<div class="WordSection1">
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">I recently had a case where customer was setting up a web farm using the Web Farm Framework (WFF).</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">Customer could setup the controller and deploy the primary server.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">However, when attempting to deploy a secondary server into the farm, it failed with the following:</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt; background: #E7E6E6; mso-background-themecolor: background2;"><span style="mso-ansi-language: EN-US;" lang="EN-US">Failed to upload assembly '<span class="SpellE">Microsoft.Web.PlatformInstaller</span>, Version=3.0.3.0, Culture=neutral, <span class="SpellE">PublicKeyToken</span>=31bf3856ad364e35' on remote agent.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">So I did what you do when you get cases like this. Research. But I couldn&rsquo;t come up with anything, so hence this post.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">It showed that the error in this case came from the fact that the receiving machine, i.e. the one that would act as host for the secondary server did not have .Net installed.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">Each computer that will participate in a server farm needs to (amongst other things) have the .NET Framework 2.0 or later installed.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">Once installed, the secondary server could be deployed.</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">Some references:</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">Setting up a Server Farm with the Web Farm Framework 2.0 for IIS 7</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US"><a href="http://www.iis.net/learn/web-hosting/microsoft-web-farm-framework-20-for-iis-7/setting-up-a-server-farm-with-the-web-farm-framework-20-for-iis">http://www.iis.net/learn/web-hosting/microsoft-web-farm-framework-20-for-iis-7/setting-up-a-server-farm-with-the-web-farm-framework-20-for-iis</a> &nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">System and Platform Requirements for the Web Farm Framework 2.0 for IIS 7 </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US"><a href="http://www.iis.net/learn/web-hosting/microsoft-web-farm-framework-20-for-iis-7/system-and-platform-requirements-for-the-web-farm-framework-20-for-iis">http://www.iis.net/learn/web-hosting/microsoft-web-farm-framework-20-for-iis-7/system-and-platform-requirements-for-the-web-farm-framework-20-for-iis</a> &nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">Creating a Server Farm with the Web Farm Framework </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US"><a href="http://www.asp.net/web-forms/tutorials/deployment/configuring-server-environments-for-web-deployment/creating-a-server-farm-with-the-web-farm-framework">http://www.asp.net/web-forms/tutorials/deployment/configuring-server-environments-for-web-deployment/creating-a-server-farm-with-the-web-farm-framework</a> &nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">Overview of the Web Farm Framework 2.0 for IIS 7 </span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US"><a href="http://www.iis.net/learn/web-hosting/microsoft-web-farm-framework-20-for-iis-7/overview-of-the-web-farm-framework-20-for-iis">http://www.iis.net/learn/web-hosting/microsoft-web-farm-framework-20-for-iis-7/overview-of-the-web-farm-framework-20-for-iis</a> &nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;"><span style="mso-ansi-language: EN-US;" lang="EN-US">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: .0001pt;">HTH</p>
</div>]]></content:encoded>
    </item>
  </channel>
</rss>