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

Home Posts Topics Members FAQ

could not load file or assembly ASP_WEB_... in ASP.NET 2.0

urs
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:

Server Error in '/' Application.

Could not load file or assembly 'App_Web_rsznkzdo, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. The
system cannot find the file specified.

the stack trace reads as follows:
[FileNotFoundException: Could not load file or assembly
'App_Web_rsznkzdo, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null' or one of its dependencies. The system cannot find
the file specified.]
ASP.usercontrols_nav_ascx.__BuildControlTree(userc ontrols_nav_ascx
__ctrl) +0
ASP.usercontrols_nav_ascx.FrameworkInitialize() +21
System.Web.UI.UserControl.InitializeAsUserControlI nternal() +31
System.Web.UI.UserControl.InitializeAsUserControl( Page page) +14
ASP.catalog_main_aspx.__BuildControln1() +53
ASP.catalog_main_aspx.__BuildControll(Control __ctrl) +51
System.Web.UI.CompiledTemplateBuilder.InstantiateI n(Control
container) +12
ASP.masterpages_3col_master.__BuildControll() +105
ASP.masterpages_3col_master.__BuildControlf() +118

ASP.masterpages_3col_master.__BuildControlTree(mas terpages_3col_master
__ctrl) +136
ASP.masterpages_3col_master.FrameworkInitialize() +45
System.Web.UI.UserControl.InitializeAsUserControlI nternal() +31
System.Web.UI.MasterPage.CreateMaster(TemplateCont rol owner,
HttpContext context, VirtualPath masterPageFile, IDictionary
contentTemplateCollection) +1978544
System.Web.UI.Page.get_Master() +48
System.Web.UI.Page.ApplyMasterPage() +18
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+543

Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.42
It seems to me like somehow ASP.NET disposed the generated assemblies
in the meantime. Please notice that this application was published by
XCOPY over FTP, that means it is not a precompiled app or something
like this.

How can that happen? I know that I could probably resolve the problem
with restarting IIS, but since I am not the ISP hosting this site, it
is not in my power. Anyway, I think this is a real bug, since I cannot
tell my ISP to just restart the IIS process every now and then. Does
anyone has an idea what is happening here?

Thanks for any help
Urs

Dec 21 '05 #1
1 10776
Hi Urs,

Welcome to ASPNET newsgroup.
From your description, you've deployed an ASP.NET 2.0 web application onto
a hosting server, the application run well intially , but now you're
encountering "cound not load file or assembly..." error when try visting
the web application's home page, yes?

From the callstack and error info, it seems that the page is try locating a
dynamic compiled UserControl class's assembly. Is your web application
purely dynamically compiled without any precompilation? Also, how is the
usercontrol referenced in the home page, is it statically declare in the
aspx template or created dynamically and added into the page's control
collection? Based on my experience, since asp.net 2.0 dynamic compilation
will compile pages or usercontrols in different assemblies, if we dosn't
explictly reference usercontrol (through @reference or @register directive
) in aspx page, the page may fail to locate the Usercontrol's dynamic
generated assembly..... So if this is the case, you can use the following
directive to explicitly reference the usercontrol file in your page which
use that usercontrol:

<%@ Reference VirtualPath="~/Products.ascx" %>

elsewise, I'll do some further research on this...

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: ur*@prismanet.ch
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: could not load file or assembly ASP_WEB_... in ASP.NET 2.0
| Date: 21 Dec 2005 12:32:09 -0800
| Organization: http://groups.google.com
| Lines: 62
| Message-ID: <11**********************@g47g2000cwa.googlegroups .com>
| NNTP-Posting-Host: 84.73.233.50
| Mime-Version: 1.0
| Content-Type: text/plain; charset="iso-8859-1"
| X-Trace: posting.google.com 1135197134 21790 127.0.0.1 (21 Dec 2005
20:32:14 GMT)
| X-Complaints-To: gr**********@google.com
| NNTP-Posting-Date: Wed, 21 Dec 2005 20:32:14 +0000 (UTC)
| User-Agent: G2/0.2
| X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8)
Gecko/20051111 Firefox/1.5,gzip(gfe),gzip(gfe)
| Complaints-To: gr**********@google.com
| Injection-Info: g47g2000cwa.googlegroups.com; posting-host=84.73.233.50;
| posting-account=hmlk0A0AAABA00P_j215TrNL0lU6v41c
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfee d00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!border1.nntp.d ca.giganews.com!nntp.gigan
ews.com!postnews.google.com!g47g2000cwa.googlegrou ps.com!not-for-mail
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:366384
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| 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:
|
| Server Error in '/' Application.
|
| Could not load file or assembly 'App_Web_rsznkzdo, Version=0.0.0.0,
| Culture=neutral, PublicKeyToken=null' or one of its dependencies. The
| system cannot find the file specified.
|
| the stack trace reads as follows:
| [FileNotFoundException: Could not load file or assembly
| 'App_Web_rsznkzdo, Version=0.0.0.0, Culture=neutral,
| PublicKeyToken=null' or one of its dependencies. The system cannot find
| the file specified.]
| ASP.usercontrols_nav_ascx.__BuildControlTree(userc ontrols_nav_ascx
| __ctrl) +0
| ASP.usercontrols_nav_ascx.FrameworkInitialize() +21
| System.Web.UI.UserControl.InitializeAsUserControlI nternal() +31
| System.Web.UI.UserControl.InitializeAsUserControl( Page page) +14
| ASP.catalog_main_aspx.__BuildControln1() +53
| ASP.catalog_main_aspx.__BuildControll(Control __ctrl) +51
| System.Web.UI.CompiledTemplateBuilder.InstantiateI n(Control
| container) +12
| ASP.masterpages_3col_master.__BuildControll() +105
| ASP.masterpages_3col_master.__BuildControlf() +118
|
| ASP.masterpages_3col_master.__BuildControlTree(mas terpages_3col_master
| __ctrl) +136
| ASP.masterpages_3col_master.FrameworkInitialize() +45
| System.Web.UI.UserControl.InitializeAsUserControlI nternal() +31
| System.Web.UI.MasterPage.CreateMaster(TemplateCont rol owner,
| HttpContext context, VirtualPath masterPageFile, IDictionary
| contentTemplateCollection) +1978544
| System.Web.UI.Page.get_Master() +48
| System.Web.UI.Page.ApplyMasterPage() +18
| System.Web.UI.Page.ProcessRequestMain(Boolean
| includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
| +543
|
| Version Information: Microsoft .NET Framework Version:2.0.50727.42;
| ASP.NET Version:2.0.50727.42
|
|
| It seems to me like somehow ASP.NET disposed the generated assemblies
| in the meantime. Please notice that this application was published by
| XCOPY over FTP, that means it is not a precompiled app or something
| like this.
|
| How can that happen? I know that I could probably resolve the problem
| with restarting IIS, but since I am not the ISP hosting this site, it
| is not in my power. Anyway, I think this is a real bug, since I cannot
| tell my ISP to just restart the IIS process every now and then. Does
| anyone has an idea what is happening here?
|
| Thanks for any help
| Urs
|
|

Dec 22 '05 #2

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...
1
3550
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. ...
4
3971
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...
2
151629
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...
1
18286
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...
3
10757
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...
0
3929
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...
1
8296
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. ...
4
4892
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...
0
7260
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
7384
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
7539
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
4746
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...
0
3234
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1596
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
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...

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.