473,880 Members | 1,877 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_rsznkz do, 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:
[FileNotFoundExc eption: Could not load file or assembly
'App_Web_rsznkz do, Version=0.0.0.0 , Culture=neutral ,
PublicKeyToken= null' or one of its dependencies. The system cannot find
the file specified.]
ASP.usercontrol s_nav_ascx.__Bu ildControlTree( usercontrols_na v_ascx
__ctrl) +0
ASP.usercontrol s_nav_ascx.Fram eworkInitialize () +21
System.Web.UI.U serControl.Init ializeAsUserCon trolInternal() +31
System.Web.UI.U serControl.Init ializeAsUserCon trol(Page page) +14
ASP.catalog_mai n_aspx.__BuildC ontroln1() +53
ASP.catalog_mai n_aspx.__BuildC ontroll(Control __ctrl) +51
System.Web.UI.C ompiledTemplate Builder.Instant iateIn(Control
container) +12
ASP.masterpages _3col_master.__ BuildControll() +105
ASP.masterpages _3col_master.__ BuildControlf() +118

ASP.masterpages _3col_master.__ BuildControlTre e(masterpages_3 col_master
__ctrl) +136
ASP.masterpages _3col_master.Fr ameworkInitiali ze() +45
System.Web.UI.U serControl.Init ializeAsUserCon trolInternal() +31
System.Web.UI.M asterPage.Creat eMaster(Templat eControl owner,
HttpContext context, VirtualPath masterPageFile, IDictionary
contentTemplate Collection) +1978544
System.Web.UI.P age.get_Master( ) +48
System.Web.UI.P age.ApplyMaster Page() +18
System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
+543

Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
ASP.NET Version:2.0.507 27.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 10811
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.c h
| Newsgroups: microsoft.publi c.dotnet.framew ork.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************ **********@g47g 2000cwa.googleg roups.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**********@go ogle.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),g zip(gfe)
| Complaints-To: gr**********@go ogle.com
| Injection-Info: g47g2000cwa.goo glegroups.com; posting-host=84.73.233. 50;
| posting-account=hmlk0A0 AAABA00P_j215Tr NL0lU6v41c
| Path:
TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!ne wsfeed00.sul.t-online.de!t-onli
ne.de!border2.n ntp.dca.giganew s.com!border1.n ntp.dca.giganew s.com!nntp.giga n
ews.com!postnew s.google.com!g4 7g2000cwa.googl egroups.com!not-for-mail
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3663 84
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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_rsznkz do, 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:
| [FileNotFoundExc eption: Could not load file or assembly
| 'App_Web_rsznkz do, Version=0.0.0.0 , Culture=neutral ,
| PublicKeyToken= null' or one of its dependencies. The system cannot find
| the file specified.]
| ASP.usercontrol s_nav_ascx.__Bu ildControlTree( usercontrols_na v_ascx
| __ctrl) +0
| ASP.usercontrol s_nav_ascx.Fram eworkInitialize () +21
| System.Web.UI.U serControl.Init ializeAsUserCon trolInternal() +31
| System.Web.UI.U serControl.Init ializeAsUserCon trol(Page page) +14
| ASP.catalog_mai n_aspx.__BuildC ontroln1() +53
| ASP.catalog_mai n_aspx.__BuildC ontroll(Control __ctrl) +51
| System.Web.UI.C ompiledTemplate Builder.Instant iateIn(Control
| container) +12
| ASP.masterpages _3col_master.__ BuildControll() +105
| ASP.masterpages _3col_master.__ BuildControlf() +118
|
| ASP.masterpages _3col_master.__ BuildControlTre e(masterpages_3 col_master
| __ctrl) +136
| ASP.masterpages _3col_master.Fr ameworkInitiali ze() +45
| System.Web.UI.U serControl.Init ializeAsUserCon trolInternal() +31
| System.Web.UI.M asterPage.Creat eMaster(Templat eControl owner,
| HttpContext context, VirtualPath masterPageFile, IDictionary
| contentTemplate Collection) +1978544
| System.Web.UI.P age.get_Master( ) +48
| System.Web.UI.P age.ApplyMaster Page() +18
| System.Web.UI.P age.ProcessRequ estMain(Boolean
| includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint)
| +543
|
| Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
| ASP.NET Version:2.0.507 27.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 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 and everything was migrated. I have been >> working on improvements on it this day. >>
1
3580
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 precompiling is no help. Is there a fix or workaround so this can some stability? Any help at all is...
4
3988
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 the following error will occur: --------------------------------------------------
2
151664
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 great on my development machine, but on the production server, I got the typical error as follows:
1
18316
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 Message: Could not load file or assembly 'Microsoft.SqlServer.ConnectionInfo, Version=9.0.242.0,...
3
10789
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 server with necessary assemblies, but itís getting error as bellow. In my system I could not find...
0
3969
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 decided to merge the two assemblies into one, my logic being no offending assembly no access denied...
1
8367
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 add, but didnt help: C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5
4
4906
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: Can anyone help me out with this. Im totally stuck here.
0
9925
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 usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9772
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10713
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10809
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10395
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5777
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5972
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4595
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 we have to send another system
2
4192
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.