<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 / ASP.NET</title>
        <link>http://geekswithblogs.net/murraybgordon/category/5186.aspx</link>
        <description>ASP / ASP.NET</description>
        <language>en-US</language>
        <copyright>Murray Gordon</copyright>
        <managingEditor>murraybgordon@gmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>Ever received a "Could not load file or assembly" ... "The system cannot find the file specified" on your ASP.NET web application</title>
            <link>http://geekswithblogs.net/murraybgordon/archive/2007/01/25/104527.aspx</link>
            <description>&lt;p&gt;&lt;font face="ver"&gt;Well I did, and the issue seemed to be intermittent. Here&amp;rsquo;s what it looked like for me:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="ver"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;a href="http://murray.gordon.org/blog/SNAG_2D070118_151024.png"&gt;&lt;font face="ver"&gt;&lt;img alt="SNAG-070118_151024" src="http://murray.gordon.org/blog/SNAG_2D070118_151024_thumb.jpg" border="0" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;font color="#000000"&gt;&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;&lt;font face="ver"&gt;Here&amp;rsquo;s what I found out.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="ver"&gt;You can read about the issue on Microsoft&amp;rsquo;s Help and Support at&amp;nbsp;&lt;/font&gt;&lt;a href="http://support.microsoft.com/Default.aspx?kbid=915782"&gt;&lt;font face="ver"&gt;FIX: You may receive an InvalidCastException error in an ASP.NET-connected Web application&lt;/font&gt;&lt;/a&gt;&lt;font face="ver"&gt;&amp;nbsp;(&lt;/font&gt;&lt;a href="http://support.microsoft.com/Default.aspx?kbid=915782"&gt;&lt;font face="ver"&gt;http://support.microsoft.com/Default.aspx?kbid=915782&lt;/font&gt;&lt;/a&gt;&lt;font face="ver"&gt;)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="ver"&gt;Unfortunately, there&amp;rsquo;s no immediate download or fix. You have to call Microsoft Support to find out if the secret fix applies to your scenario. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="ver"&gt;In my case it did not. I have already received a fix pack taking me from .NET Framework 2.0.50727.80 to 2.0.50727.210, which meant they didn&amp;rsquo;t have a fix for me.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="ver"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;a href="http://murray.gordon.org/blog/SNAG_2D070125_110233.png"&gt;&lt;font face="ver"&gt;&lt;img alt="SNAG-070125_110233" src="http://murray.gordon.org/blog/SNAG_2D070125_110233_thumb.jpg" border="0" /&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="ver"&gt;Fortunately my good buddy Bill Ryan, MVP and &amp;ldquo;Master of ADO.NET&amp;rdquo; had a recommendation:&lt;/font&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 12pt"&gt;&lt;font face="ver"&gt;Yah, I've gotten that a bunch actually. Usually it's b/c of temp files.&amp;nbsp; Clear your temp directory and give it another try. What's happening is that the temp file name generated when the assembly is loaded exceed 255 characters. So it's truncated.&amp;nbsp; That in turn means that what it's trying to access doesn't exist.&amp;nbsp; &lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;Here&amp;rsquo;s a related support kb addressing the issue: &lt;a href="http://support.microsoft.com/kb/823196"&gt;&lt;font face="ver"&gt;http://support.microsoft.com/kb/823196&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;Also, set the compilation directory's tempDirectory property specifically. You can point it to C:\whatever or some shorter path name than it normally would use and thereby not have the really long path name problem. &lt;/p&gt;&lt;/blockquote&gt;
&lt;p class="MsoNormal" dir="ltr" style="MARGIN: 0in 0in 0pt"&gt;Needless to say, that worked for me.&lt;/p&gt;
&lt;p class="MsoNormal" dir="ltr" style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" dir="ltr" style="MARGIN: 0in 0in 0pt"&gt;Thanks Bill!&lt;/p&gt;
&lt;p class="MsoNormal" dir="ltr" style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" dir="ltr" style="MARGIN: 0in 0in 0pt"&gt;And to anyone out there having this problem, hope this helps.&lt;/p&gt;
&lt;p class="MsoNormal" dir="ltr" style="MARGIN: 0in 0in 0pt"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" dir="ltr" style="MARGIN: 0in 0in 0pt"&gt;Thanks,&lt;/p&gt;
&lt;p class="MsoNormal" dir="ltr" style="MARGIN: 0in 0in 0pt"&gt;Murray&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=104527"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=104527" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/murraybgordon/aggbug/104527.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Murray Gordon</dc:creator>
            <guid>http://geekswithblogs.net/murraybgordon/archive/2007/01/25/104527.aspx</guid>
            <pubDate>Thu, 25 Jan 2007 15:17:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/murraybgordon/comments/104527.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/murraybgordon/archive/2007/01/25/104527.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/murraybgordon/comments/commentRss/104527.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/murraybgordon/services/trackbacks/104527.aspx</trackback:ping>
        </item>
    </channel>
</rss>