473,395 Members | 1,443 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

BUG: ASP.NET 2.0 FileNotFoundException

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

Feb 23 '06 #1
2 940
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
Feb 24 '06 #2
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

Feb 25 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: | last post by:
Hi, On the file handling methods, if you are dealing with files (Windows filesystem is case INSENSITIVE) yet when you specify file A.BLAH and its a.blah on windows, you get...
1
by: ulf | last post by:
Hello, After I got a FileNotFoundException in my real life CSharp code, I nailed it down to the following line: System.EnterpriseServices.ResourcePool rp = new...
2
by: Michael Sanford | last post by:
I'm getting a Sysmte.IO.FileNotFoundException when executing the code below. It is straight from the example. This works on one machine, but not the other. Other benign calls invoke the same...
0
by: Daylor | last post by:
any suggestions, why FileNotFoundException is throw , when im try to send object from appdomain to other ? (the object inherits MarshalByRefObject) i dont have a clue what the VS.2003 want...
3
by: Nick | last post by:
Hello, Let me explain my situation. There is an application in C++ (that I didn't write) that needs to call a C# DLL. One option, I believe, would be to compile the app with the clr switch....
5
by: MattC | last post by:
Hi, I am getting the following error: System.IO.FileNotFoundException: C:\Dreamtxt\WebSites\mysite\www\feedback.aspx at System.Web.UI.TemplateParser.GetParserCacheItem() at...
3
by: James | last post by:
Hi guys Do you ever get the exception in Managed C++? How can I know which file or dll is missed?
0
by: Peter Vestergaard | last post by:
Hi, I am running VS .Net 2005. I have an application in which one of the classes are having a member that is an instance of a class defined in a managed C++ dll. As soon as I try to create an...
2
by: bbindae | last post by:
I am trying to check whether XmlTextReader reads the xml file successfully or not. MSDN says that XmlTextReader raise the FileNotFoundException when it cannot find the file to read. Here is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.