473,569 Members | 2,692 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Could not load file or assembly *

I have checked around and could not find anything here that exactly matches
my issue, which is odd since I have found numerous posts on this in other
news groups. I have a ASP .Net 2.0 site that is distributed as code (the
pages are not precompiled, but code behind is used). From time to time I get
the following error:
Could not load file or assembly 'App_Web_u2h48f gb, Version=0.0.0.0 ,
Culture=neutral , PublicKeyToken= null' or one of its dependencies. The system
cannot find the file specified.

The name of the assembly is different, but otherwise the error is the same.
The only work around I've found (by looking at other news groups) is to
delete the websites folder from
C:\WINDOWS\Micr osoft.Net\Frame work\v2.0.50727 \Temporary ASP.NET Files. Once
the folder is deleted, the web site will come up without issue.

Surely there is a better solution to this or perhaps a way to avoid this
error.
Sep 19 '06 #1
2 2590
you probably did not include page directives for references to other pages
or user controls. pages are compiled into seperate dlls, so one page can not
reference another without a page directive. but on the first compile, pages
are batched into a single dll (for compile performance), so the directive is
not required if the pages end up in the same compile batch.

-- bruce (sqlwork.com)
"John Bailey" <Jo********@dis cussions.micros oft.comwrote in message
news:3C******** *************** ***********@mic rosoft.com...
>I have checked around and could not find anything here that exactly matches
my issue, which is odd since I have found numerous posts on this in other
news groups. I have a ASP .Net 2.0 site that is distributed as code (the
pages are not precompiled, but code behind is used). From time to time I
get
the following error:
Could not load file or assembly 'App_Web_u2h48f gb, Version=0.0.0.0 ,
Culture=neutral , PublicKeyToken= null' or one of its dependencies. The
system
cannot find the file specified.

The name of the assembly is different, but otherwise the error is the
same.
The only work around I've found (by looking at other news groups) is to
delete the websites folder from
C:\WINDOWS\Micr osoft.Net\Frame work\v2.0.50727 \Temporary ASP.NET Files.
Once
the folder is deleted, the web site will come up without issue.

Surely there is a better solution to this or perhaps a way to avoid this
error.

Sep 19 '06 #2
The directives to the controls are included in the controls that reference
them.

Also, although the app code directory is compiled into a single assembly,
each control and page are actually compiled into separate assemblies. This
is true even if you are publishing the site precompiled or the first time the
site is compiled (I removed my directory from temporary internet files and
reran my site to confirm this behavior). There are some dlls that get
created that do not appear to correspond to either a page, control or the app
code directory, and sometimes one of these has the issue, but most of the
time it is a dll from one of the controls.

What makes this error even more frustrating is that the assembly that it
references in the error is present in the directory, and often it has no
dependencies other than ASP .Net controls.

The one thing this page does have is nested user controls. The page
contains a web user control (control A), and this web user control contains
another web user control (control B). The control A has the appropriate
reference to control B, but the page only has a reference to control A. I am
hoping that you are not implying that the page has to have a reference to any
controls nested in the web user controls it contains, because this would be
pretty ridiculous and would be a maintenance nightmare (just imagine if you
modified control A down the road after it had been used in a few dozen places
and added a web user control to it).

"bruce barker (sqlwork.com)" wrote:
you probably did not include page directives for references to other pages
or user controls. pages are compiled into seperate dlls, so one page can not
reference another without a page directive. but on the first compile, pages
are batched into a single dll (for compile performance), so the directive is
not required if the pages end up in the same compile batch.

-- bruce (sqlwork.com)
"John Bailey" <Jo********@dis cussions.micros oft.comwrote in message
news:3C******** *************** ***********@mic rosoft.com...
I have checked around and could not find anything here that exactly matches
my issue, which is odd since I have found numerous posts on this in other
news groups. I have a ASP .Net 2.0 site that is distributed as code (the
pages are not precompiled, but code behind is used). From time to time I
get
the following error:
Could not load file or assembly 'App_Web_u2h48f gb, Version=0.0.0.0 ,
Culture=neutral , PublicKeyToken= null' or one of its dependencies. The
system
cannot find the file specified.

The name of the assembly is different, but otherwise the error is the
same.
The only work around I've found (by looking at other news groups) is to
delete the websites folder from
C:\WINDOWS\Micr osoft.Net\Frame work\v2.0.50727 \Temporary ASP.NET Files.
Once
the folder is deleted, the web site will come up without issue.

Surely there is a better solution to this or perhaps a way to avoid this
error.


Sep 20 '06 #3

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

Similar topics

2
568
by: Eric Falsken | last post by:
Eric Falsken <eric@db4o.com> wrote on 04 Dec 2005: > craigkenisston@hotmail.com wrote on 19 Nov 2005: > >> I'm working in the migration of an asp.net application in 1.1 to 2.0. >> I'm new to this application, just worked with that some days. >> Today, I decided to open the project in VS.2005 and everything seemed >> to be fine, all opened...
1
10780
by: urs | last post by:
Two days ago, I built an ASP.NET 2.0 application and published it on a shared IIS 6 Web server. After publishing, and during the whole day, it worked fine. The server remained untouched since. Today, I wanted to access the home page of the application again with a browser. But instead of the proper page, I just got an ugly message: ...
1
3552
by: ddelaney | last post by:
I've seen this posted before in many places, but have yet to find a real fix. I have a web application on dev server right now, and randomly, hours or days, it returns the expception posted below. If I copy the incHeader.ascx.vb over to the server again, it appears to recompile and works fine, again, for random period of times. Even...
4
3973
by: Richard Bysouth | last post by:
Hi I am running a site built on asp.net 1.1 on a windows server 2003 (which is running asp.net 2.0 - shared hosting at my webhost). The site is low traffic and very simple (mostly static text apart from a couple of usercontrols that pull info from a sql db). The problem I'm getting is that it will run fine for a few days, then suddenly...
2
151641
by: antonyliu2002 | last post by:
I am testing AJAX. I've downloaded the AJAX Extension and the CTP December package and installed on BOTH my development machine and the production server. Then I created a very very simple web application, which contains a button and a label. When the button is clicked, some message is shown on the label. That's it. The AJAX works...
1
18294
by: naimishranderi | last post by:
Hello friends I am using ASP.NET 2.0 and SQL Server 2000 for DB synchronization(replication) project. When I am running this web application on local machine it running fine, but when I deploy it using FTP s/w to hosting server I got error following. Click here to see web page www.aus-business.com/naimish/replication Parser Error...
3
10764
by: pratikkagda | last post by:
Hi all, My system contains Framework 3.5 with visual studio 2008 as well as 2005; here I have developed an application with crystal report with framework 2.0. It is working great in my system but when I upload this project into our production server (Production server only contains Framework 2.0 and IIS) and deployed the site to the production...
0
3933
by: Andy | last post by:
Thanks Peter, I thought I'd give an update on this problem. My application had 2 assemblies that contained classed for the Data access and business logic layer. It was on one of them that I was getting the Access denied error. After checking different settings and googling I wasnt able to pinpoint the problem and as a temporary fix I...
1
8305
by: Steve Wofford | last post by:
I am recieving the following. This happens when I moved it from my development system to our production SBS 2003 w/ latest .net frameworks and service packs . I developed under XPSP2 and VS2008. The error is pointing to the Web.Config of my application. System.Data.Entity was missing from the server, but was on the dev system. I tried to...
4
4895
by: lasida | last post by:
Hi, I have developed an application in C#. Now I'm working on a tool which is again written in c# which will give me all the assemblies referenced by my application. In the code i need to get each assembly recursively and load it. When I run my tool some of the assemblies are loaded successfully but it end up giving following exception: ...
0
7698
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7970
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1213
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.