Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

2.0 problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
param@community.nospam - 15 Feb 2006 15:31 GMT
Hi all, Every few days my asp.net 2.0 web app gives the error below. I have
to go in and issue a iisreset command and then delete all the temporary
asp.net files in the 2.0 folder for it to start working again. What is going
on?

Server Error in '/' Application.
--------------------------------------------------------------------------------

Could not load file or assembly 'App_Web_nr8ih6ru, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system
cannot find the file specified.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: Could not load file or
assembly 'App_Web_nr8ih6ru, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null' or one of its dependencies. The system cannot find the
file specified.

TIA!
Steven Cheng[MSFT] - 16 Feb 2006 06:40 GMT
Hi Param,

Thank you for posting.

As for the "Could not load file or assembly" error, I've also noticed some
other customers and community members report such issue. And in most cases,
the problem is caused by some page which include or reference some other
ascx usercontrols or uesrcontrols has nested usercontrols....   Is this
also your case?  For test, when the application running correctly ,you can
go to the  .NET 2.0's ASP.NET temporarly dir and find the problem assembly  
(App_Web_nr8ih6ru, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null' in your case) and use reflector to check what's the
page and usercontrols in this assembly.

Meanwhile, you can also try avoid this issue by either turning off batching
- in web.config, set <compilation batch="false"/>, or, when the error
occurs, do a clean re-build for the application using precompilation tool:

  aspnet_compiler -v <your app name> -c

This will force a clean re-build for your application. It will shorten
response time for first request dramatically. (It is recommended to always
do a clean re-build whenever changes made to a web site.)

Please let me know your result.

Regards,

Steven Cheng
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

param@community.nospam - 16 Feb 2006 14:47 GMT
YEs, we do have nested usercontrols. Let me try disabling batching. Will
that impact my app in anyway?

> Hi Param,
>
[quoted text clipped - 32 lines]
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
Steven Cheng[MSFT] - 17 Feb 2006 03:26 GMT
This will prevent the ASP.NET runtime compare all the page classes at one
time, we can just have a test on this. If those suggestions not work, I'm
afraid so far we haven't any definite means and it may require further
throubleshooting. You can try searching in the MSDN feedback center to
lookup some existing bugs listed there:

http://lab.msdn.microsoft.com/productfeedback/default.aspx

If no ones find there, you can submit a new record on t his.

Regards,

Steven Cheng
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.