BUG: ASP.NET 2.0 FileNotFoundException

Discussion in 'ASP .Net' started by Alan Samet, Feb 23, 2006.

  1. Alan Samet

    Alan Samet Guest

    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
    Alan Samet, Feb 23, 2006
    #1
    1. Advertising

  2. 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
    Laurent Bugnion, Feb 24, 2006
    #2
    1. Advertising

  3. Alan Samet

    Alan Samet Guest

    I'm not building this application as a set of dlls. This is the reason
    I'm so concerned. It seems like it could potentially be a bug in
    ASP.NET of the worst kind -- the Gremlin.

    I have a feeling that what's happening is as follows:

    An aspx/ascx file changes that contains a reference to this file.
    The compiled/cached dll that's generated by ASP.NET gets purged
    When ASP.NET attempts to load the assembly, it doesn't catch that it
    doesn't exist and then attempt a recompile, it just fails.

    -Alan
    Alan Samet, Feb 25, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian
    Replies:
    1
    Views:
    3,261
    Rick Strahl [MVP]
    Dec 5, 2003
  2. Stephen Witter
    Replies:
    2
    Views:
    5,460
    Stephen Witter
    May 28, 2004
  3. msnews.microsoft.com

    System.IO.FileNotFoundException help

    msnews.microsoft.com, Jun 3, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    2,208
    msnews.microsoft.com
    Jun 3, 2004
  4. Martinh
    Replies:
    0
    Views:
    2,780
    Martinh
    Aug 15, 2004
  5. =?Utf-8?B?UmFqYQ==?=
    Replies:
    2
    Views:
    825
    bruce barker
    Sep 24, 2004
Loading...

Share This Page