PC Review


Reply
Thread Tools Rate Thread

BUG: ASP.NET 2.0 FileNotFoundException

 
 
Alan Samet
Guest
Posts: n/a
 
      23rd Feb 2006
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

 
Reply With Quote
 
 
 
 
Laurent Bugnion
Guest
Posts: n/a
 
      24th Feb 2006
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
 
Reply With Quote
 
Alan Samet
Guest
Posts: n/a
 
      25th Feb 2006
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GAC and FileNotFoundException Can someone help? Prodip Saha Microsoft ASP .NET 7 15th Apr 2009 03:18 PM
FileNotFoundException Luigi Microsoft ASP .NET 1 20th Sep 2006 04:17 PM
FileNotFoundException =?Utf-8?B?dm4=?= Microsoft Excel Programming 0 19th Jul 2005 08:13 PM
FileNotFoundException MattC Microsoft ASP .NET 5 11th May 2005 05:22 PM
FileNotFoundException =?Utf-8?B?TWFyY28=?= Microsoft Dot NET Compact Framework 0 9th Jun 2004 03:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:44 PM.