<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>ASP.NET</title>
        <link>http://geekswithblogs.net/amaniar/category/10760.aspx</link>
        <description>ASP.NET</description>
        <language>en-US</language>
        <copyright>amaniar</copyright>
        <managingEditor>asifmaniar@yahoo.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>A Simple implementation of the Proxy Design Pattern using C#</title>
            <link>http://geekswithblogs.net/amaniar/archive/2012/02/07/a-simple-implementation-of-the-proxy-design-pattern-using-c-sharp.aspx</link>
            <description>&lt;p&gt;A proxy is an object that can be used to control creation and access of a more complex object thereby deferring the cost of    &lt;br /&gt;creating it until the time its needed.&lt;/p&gt;  &lt;p&gt;Below is a simple implementation of the proxy pattern in C#. The ComplexProtectedExpensiveResource is private to the    &lt;br /&gt;ProxyContainer and cannot be instantiated by a client. The client creates an instance of the SimpleProxy class which controls     &lt;br /&gt;its access to the more complex and expensive to create ComplexProtectedExpensiveResource class.&lt;/p&gt;  &lt;p&gt;Note that the ComplexProtectedExpensiveResource is created by the SimpleProxy instance only when needed and after    &lt;br /&gt;verifying that the client indeed has access to it.&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;namespace&lt;/span&gt; Patterns
{
    &lt;span class="kwrd"&gt;class&lt;/span&gt; ProxyContainer
    {
        &lt;span class="kwrd"&gt;private&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; ComplexProtectedExpensiveResource
        {
            &lt;span class="kwrd"&gt;internal&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; DoWork()
            {
                &lt;span class="rem"&gt;//do some heavy lifting&lt;/span&gt;
            }
        }

        &lt;span class="rem"&gt;// The Proxy&lt;/span&gt;
        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; SimpleProxy
        {
            ComplexProtectedExpensiveResource _complexProtectedResource;
            &lt;span class="kwrd"&gt;private&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; _password;

            &lt;span class="kwrd"&gt;public&lt;/span&gt; SimpleProxy(&lt;span class="kwrd"&gt;string&lt;/span&gt; password)
            {
                _password = password;
            }

            &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; DoWork()
            {
                &lt;span class="kwrd"&gt;if&lt;/span&gt; (Authenticate())
                {
                    _complexProtectedResource.DoWork();    
                }
            }

            &lt;span class="kwrd"&gt;bool&lt;/span&gt; Authenticate()
            {
                &lt;span class="rem"&gt;//authenticate request&lt;/span&gt;
                &lt;span class="kwrd"&gt;if&lt;/span&gt; (_password == &lt;span class="str"&gt;"password"&lt;/span&gt;)
                {
                    &lt;span class="rem"&gt;//create expensive object if authenticated&lt;/span&gt;
                    &lt;span class="kwrd"&gt;if&lt;/span&gt; (_complexProtectedResource == &lt;span class="kwrd"&gt;null&lt;/span&gt;)
                        _complexProtectedResource = &lt;span class="kwrd"&gt;new&lt;/span&gt; ComplexProtectedExpensiveResource();
                    &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;true&lt;/span&gt;;
                }
                &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;false&lt;/span&gt;;
            }
        }
    }

    &lt;span class="rem"&gt;// The Client&lt;/span&gt;
    &lt;span class="kwrd"&gt;class&lt;/span&gt; ProxyPattern : ProxyContainer
    {
        &lt;span class="kwrd"&gt;static&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; DoWork()
        {
           var simpleProxy = &lt;span class="kwrd"&gt;new&lt;/span&gt; SimpleProxy(&lt;span class="str"&gt;"password"&lt;/span&gt;);
           simpleProxy.DoWork();
        }
    }
}&lt;/pre&gt;
&lt;style type="text/css"&gt;&lt;![CDATA[
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }]]&gt;&lt;/style&gt; &lt;img src="http://geekswithblogs.net/amaniar/aggbug/148627.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>amaniar</dc:creator>
            <guid>http://geekswithblogs.net/amaniar/archive/2012/02/07/a-simple-implementation-of-the-proxy-design-pattern-using-c-sharp.aspx</guid>
            <pubDate>Tue, 07 Feb 2012 21:02:57 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/amaniar/comments/148627.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/amaniar/archive/2012/02/07/a-simple-implementation-of-the-proxy-design-pattern-using-c-sharp.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/amaniar/comments/commentRss/148627.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/amaniar/services/trackbacks/148627.aspx</trackback:ping>
        </item>
        <item>
            <title>Using Sitecores pipeline to pre-populate item in current language</title>
            <link>http://geekswithblogs.net/amaniar/archive/2011/12/12/using-sitecores-pipeline-to-pre-populate-item-in-current-language.aspx</link>
            <description>&lt;p&gt;Sitecore has a powerful event pipeline infrastructure that you can leverage to plugin commands into various item creation, change, move, publish etc events.&lt;/p&gt; &lt;p&gt;Recently I had to add functionality to Sitecore so that when an items version is created all fields from a target language are copied into the newly created version to ease editing.&lt;/p&gt; &lt;p&gt;To do this first we add an event handler in the Web.Config file for the versionAdded event.&lt;/p&gt;&lt;pre class="csharpcode"&gt; &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;event&lt;/span&gt; &lt;span class="attr"&gt;name&lt;/span&gt;&lt;span class="kwrd"&gt;="item:versionAdded"&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;handler&lt;/span&gt; &lt;span class="attr"&gt;type&lt;/span&gt;&lt;span class="kwrd"&gt;="MyNamespace.MyClass, MyAssembly"&lt;/span&gt; &lt;span class="attr"&gt;method&lt;/span&gt;&lt;span class="kwrd"&gt;="OnVersionAdded"&lt;/span&gt; &lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;
      &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;event&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;style type="text/css"&gt;&lt;![CDATA[csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
]]&gt;&lt;/style&gt;

&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Then add the OnVersionAdded event to the class added to the type attribute above.&lt;/p&gt;
&lt;p&gt;The Method is as shown:&lt;/p&gt;&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;namespace&lt;/span&gt; MyNameSpace{
    &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; MyClass
    {
        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; OnVersionAdded(&lt;span class="kwrd"&gt;object&lt;/span&gt; sender, EventArgs args)
        {
           &lt;span class="rem"&gt;//get item&lt;/span&gt;
            var item = Event.ExtractParameter(args, 0) &lt;span class="kwrd"&gt;as&lt;/span&gt; Item;
            &lt;span class="kwrd"&gt;try&lt;/span&gt;
            {
                &lt;span class="kwrd"&gt;if&lt;/span&gt; (item != &lt;span class="kwrd"&gt;null&lt;/span&gt; &amp;amp;&amp;amp; item.Version.Number == 1)
                { 
                        &lt;span class="rem"&gt;//copy fields from fallback item&lt;/span&gt;
                        &lt;span class="rem"&gt;//we were using Language Fallback as explained below. Get whatever sourceItem you want to use &lt;/span&gt;
                        var fallbackItem = FallbackLanguageManager.GetFallbackItem(item, &lt;span class="kwrd"&gt;false&lt;/span&gt;);

                        item.Editing.BeginEdit();
                        fallbackItem.Fields.ReadAll();
                        &lt;span class="rem"&gt;//copy over all fields from source to target language&lt;/span&gt;
                        &lt;span class="kwrd"&gt;foreach&lt;/span&gt; (Sitecore.Data.Fields.Field field &lt;span class="kwrd"&gt;in&lt;/span&gt; fallbackItem.Fields)
                        {
                            &lt;span class="kwrd"&gt;if&lt;/span&gt; (!field.Shared &amp;amp;&amp;amp; !field.Name.StartsWith(&lt;span class="str"&gt;"__"&lt;/span&gt;) &amp;amp;&amp;amp; field.Name.Trim() != &lt;span class="str"&gt;""&lt;/span&gt;)
                            {
                                item.Fields[field.Name].SetValue(field.Value, &lt;span class="kwrd"&gt;true&lt;/span&gt;);
                            }
                        }
                        item.Editing.EndEdit();
                        item.Editing.AcceptChanges();
                    }
                }
            }
            &lt;span class="kwrd"&gt;catch&lt;/span&gt; (Exception exception)
            {
                Sitecore.Diagnostics.Log.Error(&lt;span class="str"&gt;"Application Error"&lt;/span&gt;, exception, &lt;span class="kwrd"&gt;this&lt;/span&gt;);
                &lt;span class="kwrd"&gt;if&lt;/span&gt; (item != &lt;span class="kwrd"&gt;null&lt;/span&gt;)
                { 
                    item.Editing.CancelEdit(); 
                }
            }
    }
}&lt;/pre&gt;&lt;pre class="csharpcode"&gt; &lt;/pre&gt;&lt;pre class="csharpcode"&gt;Note that above code uses a FallbackLanguageManager to get the fallback item. &lt;/pre&gt;&lt;pre class="csharpcode"&gt;This is basically the current item in the fallback language configured for the current language.&lt;/pre&gt;&lt;pre class="csharpcode"&gt;This is based on the Fallback provider released by Alex Shyba at Sitecore:&lt;/pre&gt;&lt;pre class="csharpcode"&gt;&lt;a title="http://sitecoreblog.alexshyba.com/2010/11/approaching-language-fallback-with.html" href="http://sitecoreblog.alexshyba.com/2010/11/approaching-language-fallback-with.html"&gt;http://sitecoreblog.alexshyba.com/2010/11/approaching-language-fallback-with.html&lt;/a&gt;&lt;/pre&gt;&lt;pre class="csharpcode"&gt; &lt;/pre&gt;&lt;pre class="csharpcode"&gt;If you are not using the fallback simply change the line to get the Item from the desired source language like:&lt;/pre&gt;&lt;pre class="csharpcode"&gt;var fallbackItem = item.Database.GetItem(item.ID, Language.Parse(&lt;span class="str"&gt;"en"&lt;/span&gt;));&lt;/pre&gt;
&lt;style type="text/css"&gt;&lt;![CDATA[csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
]]&gt;&lt;/style&gt;
&lt;pre class="csharpcode"&gt; &lt;/pre&gt;&lt;pre class="csharpcode"&gt;Code for the FallbackLanguageManager (borrowed from Alex’s fallback provider source)&lt;/pre&gt;&lt;pre class="csharpcode"&gt; &lt;/pre&gt;&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; FallbackLanguageManager
    {
        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;static&lt;/span&gt; Item GetFallbackItem(Item item, &lt;span class="kwrd"&gt;bool&lt;/span&gt; forceFallback)
        {
            var fallbackLanguage = GetFallbackLanguage(item.Language, item.Database);
            var enforcedFallbackLanguage = Language.Parse(&lt;span class="str"&gt;"en"&lt;/span&gt;);

            &lt;span class="kwrd"&gt;if&lt;/span&gt; (fallbackLanguage != &lt;span class="kwrd"&gt;null&lt;/span&gt; &amp;amp;&amp;amp; !String.IsNullOrEmpty(fallbackLanguage.Name) &amp;amp;&amp;amp; !fallbackLanguage.Equals(item.Language))
            {
                &lt;span class="kwrd"&gt;return&lt;/span&gt; item.Database.GetItem(item.ID, fallbackLanguage, Version.Latest);
            }

            &lt;span class="kwrd"&gt;if&lt;/span&gt; (forceFallback &amp;amp;&amp;amp; !item.Language.Equals(enforcedFallbackLanguage))
            {
                &lt;span class="kwrd"&gt;return&lt;/span&gt; item.Database.GetItem(item.ID, enforcedFallbackLanguage, Version.Latest);
            }

            &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;null&lt;/span&gt;;
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;static&lt;/span&gt; Language GetFallbackLanguage(Language language, Database database)
        {
            var sourceLangItem = GetLanguageDefinitionItem(language, database);
            &lt;span class="kwrd"&gt;return&lt;/span&gt; sourceLangItem != &lt;span class="kwrd"&gt;null&lt;/span&gt; ? GetFallbackLanguage(sourceLangItem) : &lt;span class="kwrd"&gt;null&lt;/span&gt;;
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;static&lt;/span&gt; Item GetLanguageDefinitionItem(Language language, Database database)
        {
            var sourceLanguageItemId = LanguageManager.GetLanguageItemId(language, database);
            &lt;span class="kwrd"&gt;return&lt;/span&gt; ID.IsNullOrEmpty(sourceLanguageItemId) ? &lt;span class="kwrd"&gt;null&lt;/span&gt; : ItemManager.GetItem(sourceLanguageItemId, Language.Parse(&lt;span class="str"&gt;"en"&lt;/span&gt;), Version.Latest, database, SecurityCheck.Disable);
        }

        &lt;span class="kwrd"&gt;protected&lt;/span&gt; &lt;span class="kwrd"&gt;static&lt;/span&gt; Language GetFallbackLanguage(Item langItem)
        {
            var fallbackLangName = langItem[SitecoreFields.FallbackLanguage];
            Language fallbackLang;
            &lt;span class="kwrd"&gt;return&lt;/span&gt; Language.TryParse(fallbackLangName, &lt;span class="kwrd"&gt;out&lt;/span&gt; fallbackLang) ? fallbackLang : &lt;span class="kwrd"&gt;null&lt;/span&gt;;
        }
    }&lt;/pre&gt;
&lt;style type="text/css"&gt;&lt;![CDATA[csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
]]&gt;&lt;/style&gt;
&lt;pre class="csharpcode"&gt; &lt;/pre&gt;&lt;pre class="csharpcode"&gt;Hope this helps!&lt;/pre&gt;
&lt;style type="text/css"&gt;&lt;![CDATA[csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
]]&gt;&lt;/style&gt; &lt;img src="http://geekswithblogs.net/amaniar/aggbug/148018.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>amaniar</dc:creator>
            <guid>http://geekswithblogs.net/amaniar/archive/2011/12/12/using-sitecores-pipeline-to-pre-populate-item-in-current-language.aspx</guid>
            <pubDate>Mon, 12 Dec 2011 22:41:10 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/amaniar/comments/148018.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/amaniar/archive/2011/12/12/using-sitecores-pipeline-to-pre-populate-item-in-current-language.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/amaniar/comments/commentRss/148018.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/amaniar/services/trackbacks/148018.aspx</trackback:ping>
        </item>
        <item>
            <title>Removing / Restricting Access to Sitecores Interface on Content Delivery Environments</title>
            <link>http://geekswithblogs.net/amaniar/archive/2011/10/24/restricting-access-to-sitecores-interface-on-content-delivery-environments.aspx</link>
            <description>&lt;p&gt;Here are a few steps you can follow if you want to restrict access to Sitecore’s Interface on content delivery environments.&lt;/p&gt;
&lt;p&gt;1) Open Internet Information Services (IIS) Manager&lt;/p&gt;
&lt;p&gt;2) Expand your Content Delivery website&lt;/p&gt;
&lt;p&gt;3) Click on the Sitecore folder&lt;/p&gt;
&lt;p&gt;4) Double Click on Authentication in the middle content pane&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/amaniar/Windows-Live-Writer/Restricting-Access-to-Sitecore_F5F5/image_4.png"&gt;&lt;img width="518" height="396" border="0" style="background-image: none; border: 0px none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px;" title="image" alt="image" src="http://geekswithblogs.net/images/geekswithblogs_net/amaniar/Windows-Live-Writer/Restricting-Access-to-Sitecore_F5F5/image_thumb_1.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;5) In the Authentication Pane right click Anonymous Authentication and click Disable&lt;/p&gt;
&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/amaniar/Windows-Live-Writer/Restricting-Access-to-Sitecore_F5F5/image_6.png"&gt;&lt;img width="519" height="309" border="0" style="background-image: none; border: 0px none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px;" title="image" alt="image" src="http://geekswithblogs.net/images/geekswithblogs_net/amaniar/Windows-Live-Writer/Restricting-Access-to-Sitecore_F5F5/image_thumb_2.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;6) Try visiting the Sitecore login page on the Content Delivery site and verify that you get an access denied exception&lt;/p&gt;
&lt;p&gt;&lt;a href="http://geekswithblogs.net/images/geekswithblogs_net/amaniar/Windows-Live-Writer/Restricting-Access-to-Sitecore_F5F5/image_8.png"&gt;&lt;img width="529" height="251" border="0" style="background-image: none; border: 0px none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px;" title="image" alt="image" src="http://geekswithblogs.net/images/geekswithblogs_net/amaniar/Windows-Live-Writer/Restricting-Access-to-Sitecore_F5F5/image_thumb_3.png" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;7) You might also want to copy the yourwebroot/sitecore/service folder into the webroot and update the paths in the web.config file for the various error pages.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt; &lt;img src="http://geekswithblogs.net/amaniar/aggbug/147442.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>amaniar</dc:creator>
            <guid>http://geekswithblogs.net/amaniar/archive/2011/10/24/restricting-access-to-sitecores-interface-on-content-delivery-environments.aspx</guid>
            <pubDate>Mon, 24 Oct 2011 21:40:32 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/amaniar/comments/147442.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/amaniar/archive/2011/10/24/restricting-access-to-sitecores-interface-on-content-delivery-environments.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/amaniar/comments/commentRss/147442.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/amaniar/services/trackbacks/147442.aspx</trackback:ping>
        </item>
        <item>
            <title>Copying Sitecore Items across Languages</title>
            <link>http://geekswithblogs.net/amaniar/archive/2010/10/25/copying-sitecore-items-across-languages.aspx</link>
            <description>&lt;p&gt;When using multiple languages/cultures in the Sitecore CMS the content of an item isn’t usually copied over from an existing language to a new language version.&lt;/p&gt;
&lt;div&gt;While working on a multi lingual website after content was added to the primary language (en-US) I had to write a script to copy all fields from the primary language into other languages (Example en-GB).&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;Here is some code that I used for Sitecore 6.2.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;The following method copies an item from the Source Language to a Target Language provided that the source item has at least one version. Note that if the Target Item lacks a version one is created and only the custom fields (ones not starting with a &lt;u&gt;__&lt;/u&gt;) are copied over.&lt;/div&gt;
&lt;div style="border: 1pt solid windowtext; padding: 1pt 4pt; background: none repeat scroll 0% 0% rgb(221, 217, 195);"&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;void&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt; &lt;strong&gt;Copy&lt;/strong&gt;(Sitecore.Data.Items.&lt;span style="color: rgb(43, 145, 175);"&gt;Item&lt;/span&gt; item, Sitecore.Globalization.&lt;span style="color: rgb(43, 145, 175);"&gt;Language&lt;/span&gt; sourceLanguage,&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;             Sitecore.Globalization.&lt;span style="color: rgb(43, 145, 175);"&gt;Language&lt;/span&gt; targetLanguage)&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;        {&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            //get a reference to the master DB&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            Sitecore.Data.&lt;span style="color: rgb(43, 145, 175);"&gt;Database&lt;/span&gt; masterDB = Sitecore.Configuration.&lt;span style="color: rgb(43, 145, 175);"&gt;Factory&lt;/span&gt;.GetDatabase(&lt;span style="color: rgb(163, 21, 21);"&gt;"master"&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;           &lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            Sitecore.Data.Items.&lt;span style="color: rgb(43, 145, 175);"&gt;Item&lt;/span&gt; targetItem = masterDB.Items[item.ID, targetLanguage];&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            Sitecore.Data.Items.&lt;span style="color: rgb(43, 145, 175);"&gt;Item&lt;/span&gt; sourceItem = masterDB.Items[item.ID, sourceLanguage];&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt; &lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            &lt;span style="color: blue;"&gt;if&lt;/span&gt; (targetItem == &lt;span style="color: blue;"&gt;null&lt;/span&gt; || sourceItem == &lt;span style="color: blue;"&gt;null&lt;/span&gt; || sourceItem.Versions.Count == 0)&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                &lt;span style="color: blue;"&gt;return&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            &lt;span style="color: rgb(192, 0, 0);"&gt;//Disable the security context&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            &lt;span style="color: blue;"&gt;using&lt;/span&gt; (&lt;span style="color: blue;"&gt;new&lt;/span&gt; Sitecore.SecurityModel.&lt;span style="color: rgb(43, 145, 175);"&gt;SecurityDisabler&lt;/span&gt;())&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            {&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                &lt;span style="color: blue;"&gt;try&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                {&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    &lt;span style="color: blue;"&gt;if&lt;/span&gt; (targetItem.Versions.Count == 0)&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    {&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; text-indent: 0.5in; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                  &lt;span style="color: rgb(192, 0, 0);"&gt;//add a version if none exist&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                        targetItem = targetItem.Versions.AddVersion();&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    &lt;span style="color: rgb(192, 0, 0);"&gt;//edit item in target language&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    targetItem.Editing.BeginEdit();&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    sourceItem.Fields.ReadAll();&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    &lt;span style="color: rgb(192, 0, 0);"&gt;//copy over all fields from source to target language&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    //we omit internal fields which start with __&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    &lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (Sitecore.Data.Fields.&lt;span style="color: rgb(43, 145, 175);"&gt;Field&lt;/span&gt; field &lt;span style="color: blue;"&gt;in&lt;/span&gt; sourceItem.Fields)&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    {&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                        &lt;span style="color: blue;"&gt;if&lt;/span&gt; (!field.Shared &amp;amp;&amp;amp; !field.Name.StartsWith(&lt;span style="color: rgb(163, 21, 21);"&gt;"__"&lt;/span&gt;) &amp;amp;&amp;amp; field.Name.Trim() != &lt;span style="color: rgb(163, 21, 21);"&gt;""&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                        {&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                            targetItem.Fields[field.Name].SetValue(field.Value, true);&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                        }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt; &lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    targetItem.Editing.EndEdit();&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    targetItem.Editing.AcceptChanges();&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                &lt;span style="color: blue;"&gt;catch&lt;/span&gt; (&lt;span style="color: rgb(43, 145, 175);"&gt;Exception&lt;/span&gt; ex)&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                {&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    targetItem.Editing.CancelEdit();&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    Response.Write(ex.Message);&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            }&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;            &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;The following method copies an item from a Source Language to a Target language. In this case two items can be different but are expected to have the same Fields.&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div style="border: 1pt solid windowtext; padding: 1pt 4pt; background: none repeat scroll 0% 0% rgb(221, 217, 195);"&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; &lt;strong&gt;Copy&lt;/strong&gt;(Sitecore.Data.Items.&lt;span style="color: rgb(43, 145, 175);"&gt;Item&lt;/span&gt; sourceItem, Sitecore.Globalization.&lt;span style="color: rgb(43, 145, 175);"&gt;Language&lt;/span&gt; sourceLanguage,&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            Sitecore.Data.Items.&lt;span style="color: rgb(43, 145, 175);"&gt;Item&lt;/span&gt; targetItem, Sitecore.Globalization.&lt;span style="color: rgb(43, 145, 175);"&gt;Language&lt;/span&gt; targetLanguage)&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;        {&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            Sitecore.Data.&lt;span style="color: rgb(43, 145, 175);"&gt;Database&lt;/span&gt; masterDB = Sitecore.Configuration.&lt;span style="color: rgb(43, 145, 175);"&gt;Factory&lt;/span&gt;.GetDatabase(&lt;span style="color: rgb(163, 21, 21);"&gt;"master"&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt; &lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            targetItem = masterDB.Items[targetItem.ID, targetLanguage];&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            sourceItem = masterDB.Items[sourceItem.ID, sourceLanguage];&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt; &lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            &lt;span style="color: blue;"&gt;if&lt;/span&gt; (targetItem == &lt;span style="color: blue;"&gt;null&lt;/span&gt; || sourceItem == &lt;span style="color: blue;"&gt;null&lt;/span&gt; || sourceItem.Versions.Count == 0)&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                &lt;span style="color: blue;"&gt;return&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt; &lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            &lt;span style="color: blue;"&gt;using&lt;/span&gt; (&lt;span style="color: blue;"&gt;new&lt;/span&gt; Sitecore.SecurityModel.&lt;span style="color: rgb(43, 145, 175);"&gt;SecurityDisabler&lt;/span&gt;())&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            {&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                &lt;span style="color: blue;"&gt;try&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                {&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    &lt;span style="color: blue;"&gt;if&lt;/span&gt; (targetItem.Versions.Count == 0)&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    {&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                        targetItem = targetItem.Versions.AddVersion();&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    targetItem.Editing.BeginEdit();&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    sourceItem.Fields.ReadAll();&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    &lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (Sitecore.Data.Fields.&lt;span style="color: rgb(43, 145, 175);"&gt;Field&lt;/span&gt; field &lt;span style="color: blue;"&gt;in&lt;/span&gt; sourceItem.Fields)&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    {&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                        &lt;span style="color: blue;"&gt;if&lt;/span&gt; (!field.Shared &amp;amp;&amp;amp; !field.Name.StartsWith(&lt;span style="color: rgb(163, 21, 21);"&gt;"__"&lt;/span&gt;) &amp;amp;&amp;amp; field.Name.Trim() != &lt;span style="color: rgb(163, 21, 21);"&gt;""&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                        {&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                            targetItem.Fields[field.Name].SetValue(field.Value, true);&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                        }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt; &lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    targetItem.Editing.EndEdit();&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    targetItem.Editing.AcceptChanges();&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                &lt;span style="color: blue;"&gt;catch&lt;/span&gt; (&lt;span style="color: rgb(43, 145, 175);"&gt;Exception&lt;/span&gt; ex)&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                {&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    targetItem.Editing.CancelEdit();&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    Response.Write(ex.Message);&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt; &lt;/div&gt;
&lt;div style="background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;        }&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;You can call the above methods after querying Sitecore’s Master DB for items you would like to clone.&lt;/div&gt;
&lt;div style="border: 1pt solid windowtext; padding: 1pt 4pt; background: none repeat scroll 0% 0% rgb(221, 217, 195);"&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;protected&lt;/span&gt;&lt;span style="font-size: 10pt;"&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; Import(&lt;span style="color: blue;"&gt;object&lt;/span&gt; sender, &lt;span style="color: rgb(43, 145, 175);"&gt;EventArgs&lt;/span&gt; e)&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;        {&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            &lt;span style="color: blue;"&gt;try&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            {&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                Sitecore.Data.&lt;span style="color: rgb(43, 145, 175);"&gt;Database&lt;/span&gt; masterDB = Sitecore.Configuration.&lt;span style="color: rgb(43, 145, 175);"&gt;Factory&lt;/span&gt;.GetDatabase(&lt;span style="color: rgb(163, 21, 21);"&gt;"master"&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt; &lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                Sitecore.Data.Items.&lt;span style="color: rgb(43, 145, 175);"&gt;Item&lt;/span&gt;[] items = Sitecore.&lt;span style="color: rgb(43, 145, 175);"&gt;Context&lt;/span&gt;.Database.SelectItems&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                 (&lt;span style="color: rgb(163, 21, 21);"&gt;"/sitecore/content/Home/MySectionToCopy//*"&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;               &lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                //get source and target language for the copy&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                Sitecore.Globalization.&lt;span style="color: rgb(43, 145, 175);"&gt;Language&lt;/span&gt; sourceLanguage = Sitecore.Data.Managers.&lt;span style="color: rgb(43, 145, 175);"&gt;LanguageManager&lt;/span&gt;.GetLanguage(&lt;span style="color: rgb(163, 21, 21);"&gt;"en-US"&lt;/span&gt;, masterDB);&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                Sitecore.Globalization.&lt;span style="color: rgb(43, 145, 175);"&gt;Language&lt;/span&gt; targetLanguage = Sitecore.Data.Managers.&lt;span style="color: rgb(43, 145, 175);"&gt;LanguageManager&lt;/span&gt;.GetLanguage(&lt;span style="color: rgb(163, 21, 21);"&gt;"en-GB"&lt;/span&gt;, masterDB);&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt; &lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                &lt;span style="color: blue;"&gt;if&lt;/span&gt; (sourceLanguage == &lt;span style="color: blue;"&gt;null&lt;/span&gt; || targetLanguage == &lt;span style="color: blue;"&gt;null&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                    &lt;span style="color: blue;"&gt;return&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt; &lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                &lt;span style="color: blue;"&gt;foreach&lt;/span&gt; (&lt;span style="color: rgb(43, 145, 175);"&gt;Item&lt;/span&gt; item &lt;span style="color: blue;"&gt;in&lt;/span&gt; items)&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                {&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                  //copy item from source to target language&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;b&gt;&lt;span style="font-size: 10pt;"&gt;                    Copy(item, sourceLanguage, targetLanguage);&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            &lt;span style="color: blue;"&gt;catch&lt;/span&gt; (&lt;span style="color: rgb(43, 145, 175);"&gt;Exception&lt;/span&gt; ex)&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            {&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;                Response.Write(ex.Message);&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt;"&gt;            }&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.0001pt; line-height: normal; background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt; &lt;/div&gt;
&lt;div style="background: none repeat scroll 0% 0% rgb(221, 217, 195); border: medium none; padding: 0in;"&gt;&lt;span style="font-size: 10pt; line-height: 115%;"&gt;        }&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;strong&gt;Note: &lt;/strong&gt;You also have the option to plug into Sitecore’s event pipeline and automatically copy a source language into the target language when a version is added.&lt;/div&gt;
&lt;div&gt;More on Event Handling in Sitecore here: &lt;a href="http://sdn.sitecore.net/Articles/API/Using%20Events/Handling%20Events.aspx"&gt;http://sdn.sitecore.net/Articles/API/Using%20Events/Handling%20Events.aspx&lt;/a&gt;&lt;/div&gt; &lt;img src="http://geekswithblogs.net/amaniar/aggbug/142444.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>amaniar</dc:creator>
            <guid>http://geekswithblogs.net/amaniar/archive/2010/10/25/copying-sitecore-items-across-languages.aspx</guid>
            <pubDate>Mon, 25 Oct 2010 21:20:53 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/amaniar/comments/142444.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/amaniar/archive/2010/10/25/copying-sitecore-items-across-languages.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/amaniar/comments/commentRss/142444.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/amaniar/services/trackbacks/142444.aspx</trackback:ping>
        </item>
        <item>
            <title>Enabling HTTP Redirect in IIS7</title>
            <link>http://geekswithblogs.net/amaniar/archive/2010/10/12/enabling-http-redirect-in-iis7.aspx</link>
            <description>&lt;p&gt;If you want a virtual directory or a site in IIS7.x to redirect to another url you first have to make sure you have installed http redirect for IIS.&lt;/p&gt;
&lt;p&gt;To do that goto Control Panel &amp;gt; Program and Features and select &lt;strong&gt;Turn Windows features on or off&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img width="383" height="186" src="/images/geekswithblogs_net/amaniar/IIS7HttpRedirect/intsllatingstep2.png" alt="" /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Choose IIS and click on Add Role Services and make sure you check &lt;strong&gt;HTTP Redirection&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="width: 750px; height: 542px;" src="/images/geekswithblogs_net/amaniar/IIS7HttpRedirect/intsllatingstep1.png" alt="" /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; Let the feature be installed and configured.&lt;/p&gt;
&lt;p&gt;&lt;img width="750" height="564" src="/images/geekswithblogs_net/amaniar/IIS7HttpRedirect/intsllatingstep3.png" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;Now you will see the HTTP Redirect option in the Features View of IIS.&lt;/p&gt;
&lt;p&gt;&lt;img width="700" height="228" alt="" src="/images/geekswithblogs_net/amaniar/IIS7HttpRedirect/intsllatingstep4.png" /&gt;&lt;/p&gt;
&lt;p&gt;Click HTTP Redirect and add the necessary redirect information to add a redirect for a virtual directory or an entire site.&lt;/p&gt;
&lt;p&gt;&lt;img width="497" height="311" alt="" src="/images/geekswithblogs_net/amaniar/IIS7HttpRedirect/intsllatingstep5.png" /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt; &lt;img src="http://geekswithblogs.net/amaniar/aggbug/142260.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>amaniar</dc:creator>
            <guid>http://geekswithblogs.net/amaniar/archive/2010/10/12/enabling-http-redirect-in-iis7.aspx</guid>
            <pubDate>Tue, 12 Oct 2010 20:00:11 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/amaniar/comments/142260.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/amaniar/archive/2010/10/12/enabling-http-redirect-in-iis7.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/amaniar/comments/commentRss/142260.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/amaniar/services/trackbacks/142260.aspx</trackback:ping>
        </item>
        <item>
            <title>WCF and IIS7: 404 - File or Directory not found </title>
            <link>http://geekswithblogs.net/amaniar/archive/2010/08/31/wcf--iis7-404-file-or-directory-not-found.aspx</link>
            <description>&lt;p&gt;
&lt;/p&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type" /&gt;
&lt;meta content="Word.Document" name="ProgId" /&gt;
&lt;meta content="Microsoft Word 12" name="Generator" /&gt;
&lt;meta content="Microsoft Word 12" name="Originator" /&gt;
&lt;link href="file:///C:%5CDOCUME%7E1%5Camaniar%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List" /&gt;
&lt;link href="file:///C:%5CDOCUME%7E1%5Camaniar%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData" /&gt;
&lt;link href="file:///C:%5CDOCUME%7E1%5Camaniar%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping" /&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
&lt;w:WordDocument&gt;
&lt;w:View&gt;Normal&lt;/w:View&gt;
&lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
&lt;w:TrackMoves /&gt;
&lt;w:TrackFormatting /&gt;
&lt;w:PunctuationKerning /&gt;
&lt;w:ValidateAgainstSchemas /&gt;
&lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
&lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
&lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
&lt;w:DoNotPromoteQF /&gt;
&lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;
&lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
&lt;w:LidThemeComplexScript&gt;HI&lt;/w:LidThemeComplexScript&gt;
&lt;w:Compatibility&gt;
&lt;w:BreakWrappedTables /&gt;
&lt;w:SnapToGridInCell /&gt;
&lt;w:WrapTextWithPunct /&gt;
&lt;w:UseAsianBreakRules /&gt;
&lt;w:DontGrowAutofit /&gt;
&lt;w:SplitPgBreakAndParaMark /&gt;
&lt;w:DontVertAlignCellWithSp /&gt;
&lt;w:DontBreakConstrainedForcedTables /&gt;
&lt;w:DontVertAlignInTxbx /&gt;
&lt;w:Word11KerningPairs /&gt;
&lt;w:CachedColBalance /&gt;
&lt;/w:Compatibility&gt;
&lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
&lt;m:mathPr&gt;
&lt;m:mathFont m:val="Cambria Math" /&gt;
&lt;m:brkBin m:val="before" /&gt;
&lt;m:brkBinSub m:val="&amp;#45;-" /&gt;
&lt;m:smallFrac m:val="off" /&gt;
&lt;m:dispDef /&gt;
&lt;m:lMargin m:val="0" /&gt;
&lt;m:rMargin m:val="0" /&gt;
&lt;m:defJc m:val="centerGroup" /&gt;
&lt;m:wrapIndent m:val="1440" /&gt;
&lt;m:intLim m:val="subSup" /&gt;
&lt;m:naryLim m:val="undOvr" /&gt;
&lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
&lt;w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267"&gt;
&lt;w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal" /&gt;
&lt;w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 1" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 2" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 3" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 4" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 5" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 6" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 7" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 8" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 9" /&gt;
&lt;w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption" /&gt;
&lt;w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title" /&gt;
&lt;w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font" /&gt;
&lt;w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle" /&gt;
&lt;w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong" /&gt;
&lt;w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis" /&gt;
&lt;w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid" /&gt;
&lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text" /&gt;
&lt;w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1" /&gt;
&lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision" /&gt;
&lt;w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph" /&gt;
&lt;w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote" /&gt;
&lt;w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis" /&gt;
&lt;w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis" /&gt;
&lt;w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference" /&gt;
&lt;w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference" /&gt;
&lt;w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title" /&gt;
&lt;w:LsdException Locked="false" Priority="37" Name="Bibliography" /&gt;
&lt;w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading" /&gt;
&lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;style type="text/css"&gt;&lt;!--
 /* Font Definitions */
 @font-face
	{font-family:Mangal;
	panose-1:0 0 4 0 0 0 0 0 0 0;
	mso-font-charset:1;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:32768 0 0 0 0 0;}
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;
	mso-font-charset:0;
	mso-generic-font-family:roman;
	mso-font-pitch:variable;
	mso-font-signature:-1610611985 1107304683 0 0 159 0;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:-1610611985 1073750139 0 0 159 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-parent:"";
	margin-top:0in;
	margin-right:0in;
	margin-bottom:10.0pt;
	margin-left:0in;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:Calibri;
	mso-fareast-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:Mangal;
	mso-bidi-theme-font:minor-bidi;}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-default-props:yes;
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:Calibri;
	mso-fareast-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:Mangal;
	mso-bidi-theme-font:minor-bidi;}
.MsoPapDefault
	{mso-style-type:export-only;
	margin-bottom:10.0pt;
	line-height:115%;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.WordSection1
	{page:WordSection1;}
--&gt;&lt;/style&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:PMingLiU;
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
&lt;/style&gt;
&lt;![endif]--&gt;&lt;span style="font-size: medium;"&gt;&lt;span style="font-family: Arial;"&gt;Ever been puzzled by the 404 - File or Directory not found error message when deploying a WCF service to a new .NET/IIS7 installation?&lt;/span&gt;&lt;/span&gt;
&lt;p&gt;&lt;img src="/images/geekswithblogs_net/amaniar/IIS7WCF/error.png" style="width: 665px; height: 166px;" alt="" /&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: medium;"&gt;&lt;span style="font-family: Arial;"&gt;The error seems to indicate that the .svc file could not be located even though it’s present in the website.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: medium;"&gt;&lt;span style="font-family: Arial;"&gt;This usually is a side effect of the server not having WCF Activation feature turned on. As soon as you turn it on in the Add features wizard your WCF service will be served correctly by IIS.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;img src="/images/geekswithblogs_net/amaniar/IIS7WCF/add-feature.png" style="width: 647px; height: 306px;" alt="" /&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt; &lt;img src="http://geekswithblogs.net/amaniar/aggbug/141575.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>amaniar</dc:creator>
            <guid>http://geekswithblogs.net/amaniar/archive/2010/08/31/wcf--iis7-404-file-or-directory-not-found.aspx</guid>
            <pubDate>Tue, 31 Aug 2010 20:48:41 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/amaniar/comments/141575.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/amaniar/archive/2010/08/31/wcf--iis7-404-file-or-directory-not-found.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/amaniar/comments/commentRss/141575.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/amaniar/services/trackbacks/141575.aspx</trackback:ping>
        </item>
        <item>
            <title>Cleaner ClientID's with ASP.NET 4.0</title>
            <link>http://geekswithblogs.net/amaniar/archive/2010/04/27/cleaner-clientids-with-asp.net-4.0.aspx</link>
            <description>&lt;p&gt;
&lt;/p&gt;&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type" /&gt;
&lt;meta content="Word.Document" name="ProgId" /&gt;
&lt;meta content="Microsoft Word 12" name="Generator" /&gt;
&lt;meta content="Microsoft Word 12" name="Originator" /&gt;
&lt;link href="file:///C:\DOCUME~1\amaniar\LOCALS~1\Temp\msohtmlclip1\01\clip_filelist.xml" rel="File-List" /&gt;
&lt;link href="file:///C:\DOCUME~1\amaniar\LOCALS~1\Temp\msohtmlclip1\01\clip_themedata.thmx" rel="themeData" /&gt;
&lt;link href="file:///C:\DOCUME~1\amaniar\LOCALS~1\Temp\msohtmlclip1\01\clip_colorschememapping.xml" rel="colorSchemeMapping" /&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
&lt;w:WordDocument&gt;
&lt;w:View&gt;Normal&lt;/w:View&gt;
&lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
&lt;w:TrackMoves /&gt;
&lt;w:TrackFormatting /&gt;
&lt;w:PunctuationKerning /&gt;
&lt;w:ValidateAgainstSchemas /&gt;
&lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
&lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
&lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
&lt;w:DoNotPromoteQF /&gt;
&lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;
&lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
&lt;w:LidThemeComplexScript&gt;HI&lt;/w:LidThemeComplexScript&gt;
&lt;w:Compatibility&gt;
&lt;w:BreakWrappedTables /&gt;
&lt;w:SnapToGridInCell /&gt;
&lt;w:WrapTextWithPunct /&gt;
&lt;w:UseAsianBreakRules /&gt;
&lt;w:DontGrowAutofit /&gt;
&lt;w:SplitPgBreakAndParaMark /&gt;
&lt;w:DontVertAlignCellWithSp /&gt;
&lt;w:DontBreakConstrainedForcedTables /&gt;
&lt;w:DontVertAlignInTxbx /&gt;
&lt;w:Word11KerningPairs /&gt;
&lt;w:CachedColBalance /&gt;
&lt;/w:Compatibility&gt;
&lt;m:mathPr&gt;
&lt;m:mathFont m:val="Cambria Math" /&gt;
&lt;m:brkBin m:val="before" /&gt;
&lt;m:brkBinSub m:val="&amp;#45;-" /&gt;
&lt;m:smallFrac m:val="off" /&gt;
&lt;m:dispDef /&gt;
&lt;m:lMargin m:val="0" /&gt;
&lt;m:rMargin m:val="0" /&gt;
&lt;m:defJc m:val="centerGroup" /&gt;
&lt;m:wrapIndent m:val="1440" /&gt;
&lt;m:intLim m:val="subSup" /&gt;
&lt;m:naryLim m:val="undOvr" /&gt;
&lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
&lt;w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267"&gt;
&lt;w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal" /&gt;
&lt;w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 1" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 2" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 3" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 4" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 5" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 6" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 7" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 8" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 9" /&gt;
&lt;w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption" /&gt;
&lt;w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title" /&gt;
&lt;w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font" /&gt;
&lt;w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle" /&gt;
&lt;w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong" /&gt;
&lt;w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis" /&gt;
&lt;w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid" /&gt;
&lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text" /&gt;
&lt;w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1" /&gt;
&lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision" /&gt;
&lt;w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph" /&gt;
&lt;w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote" /&gt;
&lt;w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis" /&gt;
&lt;w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis" /&gt;
&lt;w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference" /&gt;
&lt;w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference" /&gt;
&lt;w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title" /&gt;
&lt;w:LsdException Locked="false" Priority="37" Name="Bibliography" /&gt;
&lt;w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading" /&gt;
&lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;style type="text/css"&gt;&lt;!--
 /* Font Definitions */
 @font-face
	{font-family:Mangal;
	panose-1:0 0 4 0 0 0 0 0 0 0;
	mso-font-charset:1;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:32768 0 0 0 0 0;}
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;
	mso-font-charset:0;
	mso-generic-font-family:roman;
	mso-font-pitch:variable;
	mso-font-signature:-1610611985 1107304683 0 0 159 0;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:-1610611985 1073750139 0 0 159 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-parent:"";
	margin-top:0in;
	margin-right:0in;
	margin-bottom:10.0pt;
	margin-left:0in;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:Calibri;
	mso-fareast-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:Mangal;
	mso-bidi-theme-font:minor-bidi;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	mso-themecolor:hyperlink;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-noshow:yes;
	mso-style-priority:99;
	color:purple;
	mso-themecolor:followedhyperlink;
	text-decoration:underline;
	text-underline:single;}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-default-props:yes;
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:Calibri;
	mso-fareast-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:Mangal;
	mso-bidi-theme-font:minor-bidi;}
.MsoPapDefault
	{mso-style-type:export-only;
	margin-bottom:10.0pt;
	line-height:115%;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
--&gt;&lt;/style&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
mso-bidi-font-size:10.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
&lt;/style&gt;
&lt;![endif]--&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;A common complain we have had when using ASP.NET web forms is the inability to control the ID attributes being rendered in the HTML markup when using server controls.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Our Interface Engineers want to be able to predict the ID’s of controls thereby having more control over their client side code for selecting/manipulating elements by ID or using CSS to target them.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;While playing with the just released VS2010 and .NET 4.0 I discovered some real cool improvements. One of them is the ability to now have full control over the ID being rendered for server controls. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;ASP.NET 4.0 controls now have a new ClientIDMode property which gives the developer complete control over the ID’s being rendered making it easy to write JavaScript and CSS against the rendered html.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;By default the ClientIDMode is set to Predictable which results in clean and predictable ID’s by concatenating the ID’s of the Parent and child controls. So the following markup:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-bottom: 0.0001pt; line-height: normal;" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: rgb(163, 21, 21);"&gt;asp&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;:&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: rgb(163, 21, 21);"&gt;Content&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; &lt;span style="color: red;"&gt;ID&lt;/span&gt;&lt;span style="color: blue;"&gt;="ParentContainer"&lt;/span&gt; &lt;span style="color: red;"&gt;ContentPlaceHolderID&lt;/span&gt;&lt;span style="color: blue;"&gt;="MainContentPlaceHolder"&lt;/span&gt; &lt;span style="color: red;"&gt;runat&lt;/span&gt;&lt;span style="color: blue;"&gt;="server"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-bottom: 0.0001pt; line-height: normal;" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;asp&lt;/span&gt;&lt;span style="color: blue;"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;Label&lt;/span&gt; &lt;span style="color: red;"&gt;runat&lt;/span&gt;&lt;span style="color: blue;"&gt;="server"&lt;/span&gt; &lt;span style="color: red;"&gt;ID&lt;/span&gt;&lt;span style="color: blue;"&gt;="MyLabel"&amp;gt;&lt;/span&gt;My Label&lt;span style="color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;asp&lt;/span&gt;&lt;span style="color: blue;"&gt;:&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;Label&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-bottom: 0.0001pt; line-height: normal;" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: rgb(163, 21, 21);"&gt;asp&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;:&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: rgb(163, 21, 21);"&gt;Content&lt;/span&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;&amp;gt;&lt;span style=""&gt;              &lt;/span&gt;&lt;span style=""&gt;                                                                                                                                               &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-bottom: 0.0001pt; line-height: normal;" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Will render: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-bottom: 0.0001pt; line-height: normal;" class="MsoNormal"&gt;&lt;span style="font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: rgb(163, 21, 21);"&gt;span&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; &lt;span style="color: red;"&gt;id&lt;/span&gt;&lt;span style="color: blue;"&gt;="ParentContainer_MyLabel"&amp;gt;&lt;/span&gt;My Label&lt;span style="color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;span&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Instead of something like this: (current)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: rgb(163, 21, 21);"&gt;span&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; &lt;span style="color: red;"&gt;id&lt;/span&gt;&lt;span style="color: blue;"&gt;="ct100_ParentContainer_MyLabel"&amp;gt;&lt;/span&gt;My Label&lt;span style="color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);"&gt;span&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Other modes include AutoID (renders ID’s like it currently does in .NET 3.5), Static (renders the ID exactly as specified in the code) and Inherit (defers the mode to the parent control).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;So now I can write my jQuery selector as:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: rgb(192, 0, 0);"&gt;$(“&lt;span style=""&gt;ParentContainer_MyLabel”).text(“My new Text”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Instead of:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: rgb(192, 0, 0);"&gt;$(‘&amp;lt;%=this.&lt;span style=""&gt; MyLabel&lt;/span&gt;.ClientID%&amp;gt;’&lt;span style=""&gt;).text(“My new Text”);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Scott Mitchell has a great article about this new feature:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;a href="http://bit.ly/ailEJ2"&gt;&lt;span style=""&gt;http://bit.ly/ailEJ2&lt;/span&gt;&lt;/a&gt;&lt;span style=""&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Am excited about this and some other improvements. Many thanks to the ASP.NET team for Listening!&lt;/span&gt;&lt;span style="line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
 &lt;img src="http://geekswithblogs.net/amaniar/aggbug/139539.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>amaniar</dc:creator>
            <guid>http://geekswithblogs.net/amaniar/archive/2010/04/27/cleaner-clientids-with-asp.net-4.0.aspx</guid>
            <pubDate>Tue, 27 Apr 2010 14:40:07 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/amaniar/comments/139539.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/amaniar/archive/2010/04/27/cleaner-clientids-with-asp.net-4.0.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/amaniar/comments/commentRss/139539.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/amaniar/services/trackbacks/139539.aspx</trackback:ping>
        </item>
        <item>
            <title>IIS7 Shared Configuration with Offline Files</title>
            <link>http://geekswithblogs.net/amaniar/archive/2010/01/13/iis7-shared-configuration-with-offline-files.aspx</link>
            <description>&lt;p&gt;&lt;span style="font-size: larger;"&gt;&lt;span style="font-family: Arial;"&gt;Recently I was working on a hardware architecture project for a client. The final architecture for one of the websites consisted of 3 web servers hosting windows 2008 and IIS 7 being load balanced.&lt;br /&gt;
When setting up the websites we decided to use the Shared Configuration hosting built into IIS7. Shared configuration allows you to deploy and propagate IIS configuration changes to all servers by changing one configuration file.&lt;br /&gt;
This post explains it in more detail:&lt;br /&gt;
&lt;a href="http://learn.iis.net/page.aspx/264/shared-configuration/"&gt;http://learn.iis.net/page.aspx/264/shared-configuration/&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: larger;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
We decided to create a network share for the shared configuration files and use the Offline files feature to make sure that the config files were available to IIS even if the share wasn’t temporarily unavailable.&lt;br /&gt;
A good post about how to user Offline sharing is here:&lt;br /&gt;
&lt;a href="http://learn.iis.net/page.aspx/212/offline-files-for-shared-configuration "&gt;http://learn.iis.net/page.aspx/212/offline-files-for-shared-configuration &lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: larger;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
After following all steps all app pools seemed to crash with a strange exception in the event logs:&lt;br /&gt;
&lt;/span&gt;&lt;em&gt;&lt;span style="font-family: Arial;"&gt;The worker process for application pool 'MyAppPool' encountered an error 'Cannot read configuration file&lt;br /&gt;
' trying to read global module configuration data from file '\\?\&amp;lt;EMPTY&amp;gt;', line number '0'.  Worker process startup aborted.&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: larger;"&gt;&lt;span style="font-family: Arial;"&gt;&lt;br /&gt;
After some researching we realized that although the Offline file functionality seems to be available it doesn’t really do anything unless you have the &lt;a href="http://technet.microsoft.com/en-us/library/cc772567.aspx"&gt;Desktop Experience&lt;/a&gt; installed. Otherwise anytime the network shared becomes unavailable the WAS fails to start your worker process and after a set number of times, it goes into Rapid Fail Protection Mode and stops the application pool.&lt;br /&gt;
&lt;br /&gt;
Good IIS resources:&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://mvolo.com/blogs/serverside/default.aspx"&gt;&lt;span style="font-size: larger;"&gt;&lt;span style="font-family: Arial;"&gt;http://mvolo.com/blogs/serverside/default.aspx&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://learn.iis.net/"&gt;&lt;span style="font-size: larger;"&gt;&lt;span style="font-family: Arial;"&gt;http://learn.iis.net/&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/amaniar/aggbug/137480.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>amaniar</dc:creator>
            <guid>http://geekswithblogs.net/amaniar/archive/2010/01/13/iis7-shared-configuration-with-offline-files.aspx</guid>
            <pubDate>Wed, 13 Jan 2010 23:09:37 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/amaniar/comments/137480.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/amaniar/archive/2010/01/13/iis7-shared-configuration-with-offline-files.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/amaniar/comments/commentRss/137480.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/amaniar/services/trackbacks/137480.aspx</trackback:ping>
        </item>
        <item>
            <title>Building a Silverlight Flickr Application using Windows Communication Foundation</title>
            <link>http://geekswithblogs.net/amaniar/archive/2009/09/30/silverlight-flickr-wcf-search-demo.aspx</link>
            <description>&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;&lt;link rel="File-List" href="file:///C:\DOCUME~1\amaniar\LOCALS~1\Temp\msohtmlclip1\01\clip_filelist.xml" /&gt;
&lt;link rel="Edit-Time-Data" href="file:///C:\DOCUME~1\amaniar\LOCALS~1\Temp\msohtmlclip1\01\clip_editdata.mso" /&gt;&lt;!--[if !mso]&gt;
&lt;style&gt;
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
&lt;/style&gt;
&lt;![endif]--&gt;
&lt;link rel="themeData" href="file:///C:\DOCUME~1\amaniar\LOCALS~1\Temp\msohtmlclip1\01\clip_themedata.thmx" /&gt;
&lt;link rel="colorSchemeMapping" href="file:///C:\DOCUME~1\amaniar\LOCALS~1\Temp\msohtmlclip1\01\clip_colorschememapping.xml" /&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
&lt;w:WordDocument&gt;
&lt;w:View&gt;Normal&lt;/w:View&gt;
&lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
&lt;w:TrackMoves&gt;false&lt;/w:TrackMoves&gt;
&lt;w:TrackFormatting /&gt;
&lt;w:PunctuationKerning /&gt;
&lt;w:ValidateAgainstSchemas /&gt;
&lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
&lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
&lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
&lt;w:DoNotPromoteQF /&gt;
&lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;
&lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
&lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
&lt;w:Compatibility&gt;
&lt;w:BreakWrappedTables /&gt;
&lt;w:SnapToGridInCell /&gt;
&lt;w:WrapTextWithPunct /&gt;
&lt;w:UseAsianBreakRules /&gt;
&lt;w:DontGrowAutofit /&gt;
&lt;w:SplitPgBreakAndParaMark /&gt;
&lt;w:DontVertAlignCellWithSp /&gt;
&lt;w:DontBreakConstrainedForcedTables /&gt;
&lt;w:DontVertAlignInTxbx /&gt;
&lt;w:Word11KerningPairs /&gt;
&lt;w:CachedColBalance /&gt;
&lt;/w:Compatibility&gt;
&lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
&lt;m:mathPr&gt;
&lt;m:mathFont m:val="Cambria Math" /&gt;
&lt;m:brkBin m:val="before" /&gt;
&lt;m:brkBinSub m:val="&amp;#45;-" /&gt;
&lt;m:smallFrac m:val="off" /&gt;
&lt;m:dispDef /&gt;
&lt;m:lMargin m:val="0" /&gt;
&lt;m:rMargin m:val="0" /&gt;
&lt;m:defJc m:val="centerGroup" /&gt;
&lt;m:wrapIndent m:val="1440" /&gt;
&lt;m:intLim m:val="subSup" /&gt;
&lt;m:naryLim m:val="undOvr" /&gt;
&lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
&lt;w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267"&gt;
&lt;w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal" /&gt;
&lt;w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8" /&gt;
&lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 1" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 2" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 3" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 4" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 5" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 6" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 7" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 8" /&gt;
&lt;w:LsdException Locked="false" Priority="39" Name="toc 9" /&gt;
&lt;w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption" /&gt;
&lt;w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title" /&gt;
&lt;w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font" /&gt;
&lt;w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle" /&gt;
&lt;w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Strong" /&gt;
&lt;w:LsdException Locked="false" Priority="20" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Emphasis" /&gt;
&lt;w:LsdException Locked="false" Priority="59" SemiHidden="false"
UnhideWhenUsed="false" Name="Table Grid" /&gt;
&lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text" /&gt;
&lt;w:LsdException Locked="false" Priority="1" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="No Spacing" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 1" /&gt;
&lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision" /&gt;
&lt;w:LsdException Locked="false" Priority="34" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="List Paragraph" /&gt;
&lt;w:LsdException Locked="false" Priority="29" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Quote" /&gt;
&lt;w:LsdException Locked="false" Priority="30" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Quote" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 1" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 2" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 3" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 4" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 5" /&gt;
&lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Shading Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"
UnhideWhenUsed="false" Name="Light List Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"
UnhideWhenUsed="false" Name="Light Grid Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 1 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium List 2 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"
UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"
UnhideWhenUsed="false" Name="Dark List Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Shading Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful List Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"
UnhideWhenUsed="false" Name="Colorful Grid Accent 6" /&gt;
&lt;w:LsdException Locked="false" Priority="19" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis" /&gt;
&lt;w:LsdException Locked="false" Priority="21" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis" /&gt;
&lt;w:LsdException Locked="false" Priority="31" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference" /&gt;
&lt;w:LsdException Locked="false" Priority="32" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Intense Reference" /&gt;
&lt;w:LsdException Locked="false" Priority="33" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Book Title" /&gt;
&lt;w:LsdException Locked="false" Priority="37" Name="Bibliography" /&gt;
&lt;w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading" /&gt;
&lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;style type="text/css"&gt;&lt;!--
 /* Font Definitions */
 @font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;
	mso-font-charset:0;
	mso-generic-font-family:roman;
	mso-font-pitch:variable;
	mso-font-signature:-1610611985 1107304683 0 0 159 0;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:-1610611985 1073750139 0 0 159 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-unhide:no;
	mso-style-qformat:yes;
	mso-style-parent:"";
	margin-top:0in;
	margin-right:0in;
	margin-bottom:10.0pt;
	margin-left:0in;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:Calibri;
	mso-fareast-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
.MsoChpDefault
	{mso-style-type:export-only;
	mso-default-props:yes;
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-fareast-font-family:Calibri;
	mso-fareast-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
.MsoPapDefault
	{mso-style-type:export-only;
	margin-bottom:10.0pt;
	line-height:115%;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
--&gt;&lt;/style&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}
&lt;/style&gt;
&lt;![endif]--&gt;
&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal; font-family: Verdana;"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 12pt;"&gt;&lt;a target="_blank" href="http://www.flickr.com/"&gt;&lt;span style="color: blue;"&gt;Flickr&lt;/span&gt;&lt;/a&gt; is a popular photo-sharing website.  It’s primarily used by people to store, organize and share their photos. Flickr allows both public and private photos and the ability of people being able to comment on them.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal; font-family: Verdana;"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 12pt;"&gt;Like many other social websites Flickr has a public API that can be used to get access to their data via low level web service calls. We shall use an open source Flickr API library called &lt;a target="_blank" href="http://www.codeplex.com/FlickrNet"&gt;&lt;span style="color: blue;"&gt;FlickrNet&lt;/span&gt;&lt;/a&gt; to take care of the low level web service calls for us.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal; font-family: Verdana;"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal; font-family: Verdana;"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 12pt;"&gt;In this post we shall be using the FlickrAPI to build a simple Silverlight based application. The completed application will display 10 random public photos for any Flickr username/email with the ability to view a larger photo along with any comments.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal; font-family: Verdana;"&gt;&lt;font size="2"&gt;&lt;span style="font-size: 12pt;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;img alt="" style="width: 714px; height: 635px;" src="/images/geekswithblogs_net/amaniar/FlickfApp.jpg" /&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal; font-family: Verdana;"&gt;&lt;font size="3"&gt;&lt;span style="font-size: 12pt;"&gt;The Flickr API provides a means for application developers to interface with Flickr assets - photos, users, comments, blogs, groups, and so forth. In order to use the Flickr API you must have an &lt;em&gt;API key&lt;/em&gt;, which you can get for free from the &lt;a href="http://www.flickr.com/services/api/keys/"&gt;&lt;span style="color: blue;"&gt;Flickr API Keys page&lt;/span&gt;&lt;/a&gt; at &lt;a href="http://www.flickr.com/services/api/keys/"&gt;&lt;span style="color: blue;"&gt;http://www.flickr.com/services/api/keys&lt;/span&gt;&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal; font-family: Verdana;"&gt;&lt;font size="3"&gt;&lt;span style="font-size: 12pt;"&gt;After downloading the FlickrNet.dll we create a web application and a silverlight application. We add the FlickrNet.dll as a reference into the web app and add a Silverlight enabled - WCF service for transmitting data to the Silverlight application.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal; font-family: Verdana;"&gt;&lt;font size="3"&gt;&lt;span style="font-size: 12pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal; font-family: Verdana;"&gt;&lt;font size="3"&gt;&lt;span style="font-size: 12pt;"&gt;Next we add flickrNet config section to our web application and populate it with our API key.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;font size="3"&gt;&lt;span style="font-family: Verdana;"&gt;Note: You might want to disable caching by adding &lt;/span&gt;&lt;/font&gt;&lt;font size="3" color="#ff0000" style="font-family: Verdana;"&gt;disableCache&lt;/font&gt;&lt;font size="3" color="#0000ff" style="font-family: Verdana;"&gt;=&lt;/font&gt;&lt;font size="3" style="font-family: Verdana;"&gt;"&lt;/font&gt;&lt;font size="3" color="#0000ff" style="font-family: Verdana;"&gt;true&lt;/font&gt;&lt;font size="3"&gt;&lt;span style="font-family: Verdana;"&gt;" to the config section if you get permission exceptions in production.&lt;/span&gt;&lt;/font&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style="border: 1pt solid windowtext; padding: 1pt 4pt; background-color: rgb(217, 217, 217); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(217, 217, 217); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;      &amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;configSections&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(217, 217, 217); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;            …&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(217, 217, 217); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;            &amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;section&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt;name&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;=&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;"&lt;span style="color: blue;"&gt;flickrNet&lt;/span&gt;"&lt;span style="color: blue;"&gt; &lt;/span&gt;&lt;span style="color: red;"&gt;type&lt;/span&gt;&lt;span style="color: blue;"&gt;=&lt;/span&gt;"&lt;span style="color: blue;"&gt;FlickrNet.FlickrConfigurationManager,FlickrNet&lt;/span&gt;"&lt;span style="color: blue;"&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(217, 217, 217); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;      &amp;lt;/&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;configSections&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(217, 217, 217); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;      &amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;flickrNet&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt; &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt;apiKey&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;=&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;"&lt;span style="color: blue;"&gt;YOUR API KEY&lt;/span&gt;"&lt;span style="color: blue;"&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;span style="font-family: Verdana;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;span style="font-family: Verdana;"&gt;We also add a FlickrPhoto and FlickrComment classes to represent a Flickr photo and comment respectively.&lt;/span&gt;&lt;br style="" /&gt;
&lt;!--[endif]--&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;span style="font-family: Verdana;"&gt;The Solution looks like this:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;!--[if gte vml 1]&gt;&lt;v:shapetype
id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"&gt;
&lt;v:stroke joinstyle="miter" /&gt;
&lt;v:formulas&gt;
&lt;v:f eqn="if lineDrawn pixelLineWidth 0" /&gt;
&lt;v:f eqn="sum @0 1 0" /&gt;
&lt;v:f eqn="sum 0 0 @1" /&gt;
&lt;v:f eqn="prod @2 1 2" /&gt;
&lt;v:f eqn="prod @3 21600 pixelWidth" /&gt;
&lt;v:f eqn="prod @3 21600 pixelHeight" /&gt;
&lt;v:f eqn="sum @0 0 1" /&gt;
&lt;v:f eqn="prod @6 1 2" /&gt;
&lt;v:f eqn="prod @7 21600 pixelWidth" /&gt;
&lt;v:f eqn="sum @8 21600 0" /&gt;
&lt;v:f eqn="prod @7 21600 pixelHeight" /&gt;
&lt;v:f eqn="sum @10 21600 0" /&gt;
&lt;/v:formulas&gt;
&lt;v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect" /&gt;
&lt;o:lock v:ext="edit" aspectratio="t" /&gt;
&lt;/v:shapetype&gt;&lt;v:shape id="Picture_x0020_1" o:spid="_x0000_i1025" type="#_x0000_t75"
alt="Flickr Solution" style='width:477.75pt;height:275.25pt;visibility:visible;
mso-wrap-style:square'&gt;
&lt;v:imagedata src="file:///C:\DOCUME~1\amaniar\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.png"
o:title="Flickr Solution" /&gt;
&lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;img alt="" style="width: 629px; height: 362px;" src="/images/geekswithblogs_net/amaniar/Flickr/Flickr1.png" /&gt;&lt;!--[endif]--&gt;&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="line-height: normal; font-family: Verdana;"&gt;&lt;span style="font-size: 12pt;"&gt;Next we implement a method in the WCF Service that returns the top 10 random pics for a given user name.&lt;br /&gt;
For this you can use the PeopleFindByUsername method to find the user and then create a PhotoSearchOptions object and set the PerPage property to 200 so we get the first 200 photos for the user.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;span style="font-family: Verdana;"&gt;We order the returned list randomly and then select the top 10 photos with the help of some linq.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class="MsoNormal" style="background-color: rgb(224, 224, 224); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(43, 145, 175);"&gt;FoundUser &lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;userInfo = flickr.PeopleFindByUsername(username);                &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: rgb(224, 224, 224); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;flickrUserId = userInfo.UserId;&lt;span style="color: rgb(43, 145, 175);"&gt;PhotoSearchOptions&lt;/span&gt; options = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;PhotoSearchOptions&lt;/span&gt;();&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: rgb(224, 224, 224); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;options.UserId = flickrUserId;      &lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: rgb(224, 224, 224); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;options.PerPage = 200;&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: rgb(224, 224, 224); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: green;"&gt;//get 10 pics randomly&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: rgb(224, 224, 224); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(43, 145, 175);"&gt;Photos&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt; searchResults = flickr.PhotosSearch(options);&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: rgb(224, 224, 224); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;pics = (&lt;span style="color: blue;"&gt;from&lt;/span&gt; p &lt;span style="color: blue;"&gt;in&lt;/span&gt; searchResults.PhotoCollection.OrderBy(p=&amp;gt;&lt;span style="color: rgb(43, 145, 175);"&gt;Guid&lt;/span&gt;.NewGuid())&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: rgb(224, 224, 224); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;                        &lt;span style="color: blue;"&gt;select&lt;/span&gt; &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;FlickrPhoto&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: rgb(224, 224, 224); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;                        {&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: rgb(224, 224, 224); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;                           PhotoId = p.PhotoId,&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: rgb(224, 224, 224); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;                           Title = p.Title,&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: rgb(224, 224, 224); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;                           MediumUrl = p.MediumUrl,&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: rgb(224, 224, 224); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;                           WebUrl = p.WebUrl,&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: rgb(224, 224, 224); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;                           LargeUrl = p.LargeUrl,&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: rgb(224, 224, 224); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;                           ThumbnailUrl = p.ThumbnailUrl,&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: rgb(224, 224, 224); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;                           SmallUrl = p.SmallUrl}).Take(10).ToList();&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;p class="MsoNormal" style="line-height: normal; font-family: Verdana;"&gt;&lt;span style="font-size: 12pt;"&gt;Next we will add a ServiceReference to this service from our Silverlight project called &lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;FlickrServiceReference&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;. Now we have a client side proxy called FlickrServiceReference which we can use to talk to our web service.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;span style="font-family: Verdana;"&gt;In the silverlight application you can then accept a Flickr username/email from the user and call the Web services &lt;/span&gt;&lt;strong style="font-family: Verdana;"&gt;GetRandomPhotos&lt;/strong&gt;&lt;span style="font-family: Verdana;"&gt; method and bind the results to an ItemsControl as shown in the following code snippet.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class="MsoNormal" style="background-color: rgb(230, 230, 230); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;FlickrServiceReference.&lt;span style="color: rgb(43, 145, 175);"&gt;FlickrServiceClient &lt;/span&gt;service = &lt;span style="color: blue;"&gt;new&lt;/span&gt; SilverlightApplication.FlickrServiceReference.&lt;span style="color: rgb(43, 145, 175);"&gt;FlickrServiceClient&lt;/span&gt;();&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: rgb(230, 230, 230); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;            service.GetRandomPicsCompleted += &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;EventHandler&lt;/span&gt;&amp;lt;SilverlightApplication.FlickrServiceReference.&lt;span style="color: rgb(43, 145, 175);"&gt;GetRandomPicsCompletedEventArgs&lt;/span&gt;&amp;gt;(service_GetRandomPicsCompleted);&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="background-color: rgb(230, 230, 230); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;            service.GetRandomPicsAsync(&lt;span style="color: blue;"&gt;“FlickrUsername”&lt;/span&gt;);&lt;/span&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;span style="font-family: Verdana;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;span style="font-family: Verdana;"&gt;Using a DataTemplate for the ItemsControl to show the Thumbnails inside a ScrollViewer so we can scroll the photos. We use data binding to bind the image source to the ThumbnailUrl property.&lt;/span&gt;&lt;br style="font-family: Verdana;" /&gt;
&lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br style="font-family: Verdana;" /&gt;
&lt;!--[endif]--&gt;&lt;o:p style="font-family: Verdana;"&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="font-size: 12pt; line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;span style="font-family: Verdana;"&gt;Here is a snippet of the scroll viewer that wraps the thumbnails&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style="border: 1pt solid windowtext; padding: 1pt 4pt; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;ScrollViewer&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; HorizontalAlignment&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="Left"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; VerticalAlignment&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="Top"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Grid.Column&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="0"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Grid.Row&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="1"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Name&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="ScrollViewer"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Visibility&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="Collapsed"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;ItemsControl&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; x&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;:&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt;Name&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="icPhotos"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; HorizontalAlignment&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="Left"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; VerticalAlignment&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="Top"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;                         &lt;/span&gt;&lt;span style="color: red;"&gt;&lt;span style=""&gt; &lt;/span&gt;BorderBrush&lt;/span&gt;&lt;span style="color: blue;"&gt;="#FFB83636"&lt;/span&gt;&lt;span style="color: red;"&gt; BorderThickness&lt;/span&gt;&lt;span style="color: blue;"&gt;="1,1,1,1"&lt;/span&gt;&lt;span style="color: red;"&gt; RenderTransformOrigin&lt;/span&gt;&lt;span style="color: blue;"&gt;="0.5,0.5" &amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;ItemsControl.ItemTemplate&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;DataTemplate&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;StackPanel&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; x&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;:&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt;Name&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="content"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Orientation&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="Vertical"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Cursor&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="Hand"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; MouseEnter&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="RightStackPanel_MouseEnter"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; MouseLeave&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="RightStackPanel_MouseLeave"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;StackPanel.Resources&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;Storyboard&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; x&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;:&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt;Name&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="grow"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; BeginTime&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="0"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                                    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;DoubleAnimation&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Storyboard.TargetName&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="st"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Storyboard.TargetProperty&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="ScaleX"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; To&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="1.1"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Duration&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="0:0:.2"/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                                    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;DoubleAnimation&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Storyboard.TargetName&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="st"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Storyboard.TargetProperty&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="ScaleY"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; To&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="1.1"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Duration&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="0:0:.2"/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;Storyboard&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;Storyboard&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; x&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;:&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt;Name&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="shrink"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; BeginTime&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="0"&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                                    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;DoubleAnimation&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Storyboard.TargetName&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="st"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Storyboard.TargetProperty&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="ScaleX"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; To&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="1"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Duration&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="0:0:.2"/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                                    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;DoubleAnimation&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Storyboard.TargetName&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="st"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Storyboard.TargetProperty&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="ScaleY"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; To&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="1"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Duration&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="0:0:.2"/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;Storyboard&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;StackPanel.Resources&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;StackPanel.RenderTransform&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;TransformGroup&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                                    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;ScaleTransform&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; x&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;:&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt;Name&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="st"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; ScaleX&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="1"&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; ScaleY&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="1"/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;TransformGroup&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;StackPanel.RenderTransform&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                            &lt;/span&gt;&lt;/span&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;Image&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Source&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="{&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;Binding&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Path&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;=ThumbnailUrl}"&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; MaxWidth&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="100"&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; MaxHeight&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="100"&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; Margin&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="10"&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: red;"&gt; MouseLeftButtonDown&lt;/span&gt;&lt;/strong&gt;&lt;strong style=""&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;="Image_MouseLeftButtonDown"/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;StackPanel&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                    &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;DataTemplate&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;ItemsControl.ItemTemplate&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;ItemsControl&lt;/span&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;&lt;span style=""&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;; color: rgb(163, 21, 21);"&gt;ScrollViewer&lt;/span&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;; color: blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-size: 12pt; line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 12pt; line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br style="" /&gt;
&lt;!--[if !supportLineBreakNewLine]--&gt;&lt;span style="font-family: Verdana;"&gt;You will notice we have added two animations called grow and shrink that will fire on &lt;/span&gt;&lt;em style="font-family: Verdana;"&gt;MouseEnter&lt;/em&gt;&lt;span style="font-family: Verdana;"&gt; and &lt;/span&gt;&lt;em style="font-family: Verdana;"&gt;MouseLeave&lt;/em&gt;&lt;span style="font-family: Verdana;"&gt; on the stackpanel. As a result the images zoom by 10% every time the cursor is hovered over them.&lt;/span&gt;&lt;o:p style="font-family: Verdana;"&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-family: Verdana;" class="MsoNormal"&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;Next we add some more markup to display a large image along with any comments when a thumbnail is clicked.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="font-family: Verdana;" class="MsoNormal"&gt;&lt;em style=""&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt;OnMouseLeftButtonDown&lt;/span&gt;&lt;/em&gt;&lt;span style="font-size: 12pt; line-height: 115%;"&gt; event of the thumbnail is wired to call the GetComments method on the web service and bind the returned Comments to a ItemSource property of the DataGrid. The larger image is bound to the images mediumUrl.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 12pt; line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;span style="font-family: Verdana;"&gt;The GetComments Method returns a List of FlickrComments for the Photo ID.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style="border: 1pt solid windowtext; padding: 1pt 4pt; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;    &lt;/span&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;List&lt;/span&gt;&amp;lt;&lt;span style="color: rgb(43, 145, 175);"&gt;FlickrComment&lt;/span&gt;&amp;gt; GetComments(&lt;span style="color: blue;"&gt;string&lt;/span&gt; pid)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;        &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;Flickr&lt;/span&gt; flickr = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;Flickr&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color: blue;"&gt;string&lt;/span&gt; flickrUserId = &lt;span style="color: blue;"&gt;string&lt;/span&gt;.Empty;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;List&lt;/span&gt;&amp;lt;&lt;span style="color: rgb(43, 145, 175);"&gt;FlickrComment&lt;/span&gt;&amp;gt; comments = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;List&lt;/span&gt;&amp;lt;&lt;span style="color: rgb(43, 145, 175);"&gt;FlickrComment&lt;/span&gt;&amp;gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color: blue;"&gt;try&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;            &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);"&gt;Comment&lt;/span&gt;[] commentResults = flickr.PhotosCommentsGetList(pid);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;                &lt;/span&gt;comments = (&lt;span style="color: blue;"&gt;from&lt;/span&gt; c &lt;span style="color: blue;"&gt;in&lt;/span&gt; commentResults&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;                                         &lt;/span&gt;&lt;span style="color: blue;"&gt;select&lt;/span&gt; &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;FlickrComment&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;                                         &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;                                         &lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;CommentHtml = c.CommentHtml,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;                                         &lt;/span&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;span style=""&gt; &lt;/span&gt;DateCreated = c.DateCreated,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;                                         &lt;/span&gt;&lt;span style=""&gt; &lt;/span&gt;&lt;span style=""&gt; &lt;/span&gt;PhotoId = c.PhotoId,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;                                         &lt;/span&gt;&lt;span style=""&gt;  &lt;/span&gt;AuthorUserName = c.AuthorUserName,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;                                           &lt;/span&gt;CommentId = c.CommentId&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;                                                &lt;/span&gt;}).ToList();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color: blue;"&gt;catch&lt;/span&gt; (&lt;span style="color: rgb(43, 145, 175);"&gt;FlickrApiException&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;       &lt;/span&gt;&lt;span style=""&gt;     &lt;/span&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;                &lt;/span&gt;&lt;span style="color: green;"&gt;// report error&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;            &lt;/span&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; margin-bottom: 0.0001pt; line-height: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;            &lt;/span&gt;&lt;span style="color: blue;"&gt;return&lt;/span&gt; comments;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="border: medium none; padding: 0in; background-color: rgb(229, 229, 229); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;span style=""&gt;        &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 12pt; line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;br style="font-family: Verdana;" /&gt;
&lt;span style="font-family: Verdana;"&gt; Check the live demo &lt;/span&gt;&lt;a target="_blank" style="font-family: Verdana;" href="http://www.asifmaniar.com/samples/Flickr-Silverlight-WCF.aspx"&gt;here&lt;/a&gt;&lt;span style="font-family: Verdana;"&gt;.&lt;/span&gt;&lt;br style="font-family: Verdana;" /&gt;
&lt;br style="font-family: Verdana;" /&gt;
&lt;span style="font-family: Verdana;"&gt; Download Source code here:&lt;/span&gt;&lt;br /&gt;
&lt;iframe scrolling="no" frameborder="0" src="http://cid-1e4ea5ccba213626.skydrive.live.com/embedicon.aspx/.Public/FlickrBlogDemo.zip" style="padding: 0pt; width: 98px; height: 115px; background-color: rgb(252, 252, 252);" marginwidth="0" marginheight="0" title="Flickr-Silverlight demo source code"&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: 12pt; line-height: 115%; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;span style="font-family: Verdana;"&gt;Resources:&lt;/span&gt;&lt;br style="font-family: Verdana;" /&gt;
&lt;a target="_blank" style="font-family: Verdana;" href="http://www.flickr.com/services/api/keys/"&gt;http://www.flickr.com/services/api/keys/&lt;/a&gt;&lt;br style="font-family: Verdana;" /&gt;
&lt;a target="_blank" style="font-family: Verdana;" href="http://flickrnet.codeplex.com/"&gt;http://flickrnet.codeplex.com/&lt;/a&gt;&lt;br style="font-family: Verdana;" /&gt;
&lt;a target="_blank" style="font-family: Verdana;" href="http://www.4guysfromrolla.com/articles/091609-1.aspx"&gt;http://www.4guysfromrolla.com/articles/091609-1.aspx&lt;/a&gt;&lt;br /&gt;
&lt;a target="_blank" style="font-family: Verdana;" href="http://www.asifmaniar.com/samples/Flickr-Silverlight-WCF.aspx"&gt;http://www.asifmaniar.com/samples/Flickr-Silverlight-WCF.aspx&lt;/a&gt; &lt;br /&gt;
&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;img src="http://geekswithblogs.net/amaniar/aggbug/135196.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>amaniar</dc:creator>
            <guid>http://geekswithblogs.net/amaniar/archive/2009/09/30/silverlight-flickr-wcf-search-demo.aspx</guid>
            <pubDate>Wed, 30 Sep 2009 20:08:32 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/amaniar/comments/135196.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/amaniar/archive/2009/09/30/silverlight-flickr-wcf-search-demo.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/amaniar/comments/commentRss/135196.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/amaniar/services/trackbacks/135196.aspx</trackback:ping>
        </item>
    </channel>
</rss>
