Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply

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

 
Thread Tools Search this Thread
Old 12-21-2005, 07:32 PM   #1
urs@prismanet.ch
 
Posts: n/a
Default could not load file or assembly ASP_WEB_... in ASP.NET 2.0

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

  Reply With Quote
Old 12-22-2005, 07:33 AM   #2
Steven Cheng[MSFT]
 
Posts: n/a
Default RE: could not load file or assembly ASP_WEB_... in ASP.NET 2.0

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:
| 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: < .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: groups-
| 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.
Gecko/20051111 Firefox/1.5,gzip(gfe),gzip(gfe)
| Complaints-To: groups-
| 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
|
|

  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript relative path to load xml file torontodesi Software 2 02-26-2009 12:13 PM
SONY DVD RW DW-G120A SOMETIMES FAILS...... atlantic965 DVD Video 0 06-18-2006 09:36 PM
problems backing up dvds Lawrence Traub DVD Video 11 09-27-2005 06:34 PM
Re: Ripping DVDs. Please answer the attached question. - Question.txt Stan Brown DVD Video 19 02-09-2005 10:19 PM
Burn process failed - help! Log file posted for help troubleshooting Michael Mason DVD Video 1 08-16-2004 08:24 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47