Hi,
Alan Samet wrote:
> I've just started getting random exceptions of type
> FileNotFoundException on a framework I've ported to ASP.NET 2.0. The
> exact message of the Exception is as follows:
>
> Could not load file or assembly 'App_Web_tim3bwzz, Version=0.0.0.0,
> Culture=neutral, PublicKeyToken=null' or one of its dependencies. The
> system cannot find the file specified.
>
> The highlighted line of source on the standard ASP.NET error page is
> this:
>
> Line 1: <%@ Control ClassName="UserBrowser" %>
>
> I have a feeling that this exception is related to some sort of
> internal assembly caching and purging being out of sync. When I save
> the offending file, the exception is resolved.
>
> This concerns me in that I would not want to run into this issue when
> my present application goes live. Is there any documentation that can
> build my confidence that this won't happen once out of development?
>
> -Alan
I think that it could *also* be a version conflict. IIRC, when the
assembly with the correct version number is not found at runtime, this
exception is thrown. Such case often happens when other libraries are
referenced in a project as a DLL (as opposed to referenced as a project).
Make sure that all your versions are consistent, and if they are not,
recompile the top application (in this case the web project) using the
correct versions.
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering:
http://www.galasoft-LB.ch
Private/Malaysia:
http://mypage.bluewin.ch/lbugnion
Support children in Calcutta:
http://www.calcutta-espoir.ch