<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>Problems &amp; Solutions</title>
        <link>http://blogs.dotnetnerds.com/sherman/category/99.aspx</link>
        <description>Problems &amp; Solutions</description>
        <language>en-US</language>
        <copyright>Sherman Quick</copyright>
        <managingEditor>sherman@dotnetnerds.com</managingEditor>
        <generator>Subtext Version 1.9.2.23</generator>
        <item>
            <title>Dealing with the Download Cache</title>
            <link>http://blogs.dotnetnerds.com/sherman/archive/2006/11/15/37805.aspx</link>
            <description>&lt;p&gt;I recently experienced some woes with updating a .dll in the Microsoft Download Cache, C:\Windows\Assembly\Download, that I've finally been able to resolve.  Anyway, I thought I'd share my experiences to help any of you guys who might be encountering a similar issue.  Here are some details to clarify...&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Problem&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;I had just completed some changes to a custom library, .dll file, that gets downloaded from our website to the client's download cache directory, C:\Windows\Assembly\Download, when I discovered that an older version of the file was continurously being loaded every time I tried to access the site as a client.  This continued to occur despite the fact that I'd updated our website with the most recent revision of the file.  In case you're curious, our website loads that .dll file onto the client so that it can communicate with the client's laser hand-scanner, a device used to read bar-coded information into controls of our site.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Root Cause:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;An older version of the .dll file is continuously being loaded every time I access the appropriate page because the file has been cached to the client's local temporary internet files folder.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Solution&lt;/strong&gt;: &lt;/p&gt;
&lt;p&gt;Here are the steps that I used to effectively resolve this issue:&lt;/p&gt;
&lt;p&gt;Please note: all these actions take place on the client which happens to be using IE 7&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;Open Internet Explorer and click &lt;strong&gt;Tools&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Internet Options&lt;/strong&gt; &lt;/li&gt;
    &lt;li&gt;Under the &lt;strong&gt;General&lt;/strong&gt; tab, click on the Delete button located in the &lt;strong&gt;Browsing History&lt;/strong&gt; section &lt;/li&gt;
    &lt;li&gt;Click the &lt;strong&gt;Delete files...&lt;/strong&gt; button located under the &lt;strong&gt;Temporary Internet Files&lt;/strong&gt; section &lt;/li&gt;
    &lt;li&gt;Click &lt;strong&gt;Yes&lt;/strong&gt; to delete all temporary Internet Explorer files &lt;/li&gt;
    &lt;li&gt;Click &lt;strong&gt;Close&lt;/strong&gt; &lt;/li&gt;
    &lt;li&gt;Click on the &lt;strong&gt;Settings&lt;/strong&gt; button located in the &lt;strong&gt;Browsing History&lt;/strong&gt; section &lt;/li&gt;
    &lt;li&gt;Click on the radio button that reads &lt;strong&gt;Every time I visit the webpage&lt;/strong&gt; and make certain the disk space specified is greater than the file being loaded (you can change this back to it's original settings after the client has downloaded the new file if you aren't comfortable w/ this change) &lt;/li&gt;
    &lt;li&gt;Click &lt;strong&gt;OK&lt;/strong&gt;, click &lt;strong&gt;OK&lt;/strong&gt; &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This action will allow a new version of the .dll file to be loaded onto the client when he/she accesses your site.&lt;/p&gt;
&lt;p&gt;Optional:&lt;/p&gt;
&lt;p&gt;If you also wish to clear out the Download Cache directory, C:\Windows\Assembly\Download, on the client and start over fresh, you can perform the following actions:&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;Open a Visual Studio .NET Command Prompt (can be either 2003 or 2005, but I just happen to be using 2005)
    &lt;ul&gt;
        &lt;li&gt;It's located under &lt;strong&gt;Start&lt;/strong&gt; -&amp;gt; &lt;strong&gt;All Programs&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Microsoft Visual Studio 2005&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Visual Studio Tools&lt;/strong&gt; -&amp;gt; &lt;strong&gt;Visual Studio 2005 Command Prompt&lt;/strong&gt; on my system, but could be different for yours &lt;/li&gt;
    &lt;/ul&gt;
    &lt;/li&gt;
    &lt;li&gt;Type &lt;strong&gt;gacutil /cdl&lt;/strong&gt; and hit the Enter key &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This action will effectively delete all existing files currently located in the Download Cache directory.&lt;/p&gt;&lt;img src="http://blogs.dotnetnerds.com/sherman/aggbug/37805.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Sherman Quick</dc:creator>
            <guid>http://blogs.dotnetnerds.com/sherman/archive/2006/11/15/37805.aspx</guid>
            <pubDate>Wed, 15 Nov 2006 18:00:45 GMT</pubDate>
            <wfw:comment>http://blogs.dotnetnerds.com/sherman/comments/37805.aspx</wfw:comment>
            <comments>http://blogs.dotnetnerds.com/sherman/archive/2006/11/15/37805.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.dotnetnerds.com/sherman/comments/commentRss/37805.aspx</wfw:commentRss>
            <trackback:ping>http://blogs.dotnetnerds.com/sherman/services/trackbacks/37805.aspx</trackback:ping>
        </item>
    </channel>
</rss>