472,117 Members | 2,742 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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 10641
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by antonyliu2002 | last post: by
1 post views Thread by Steve Wofford | last post: by

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.