RE: Could not load file or assembly 'App_Web_tod59ga8' and similar

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Eric,

Welcome.
Regarding on the "could not loda file or assembly...." exception, based on
my experience, it is likely caused by the dynamically compiled assemblies
of the UserControl or any dependencs are invisible to it. In ASP.NET 2.0
all the page and Usercontrols are dynamically compiled into assemblies, and
pages and usercontrols in different folder are not compiled into the same
assembly by default. Event in the same folder, if we use purely dynamic
compilation, the usercontrol or page's dynamnic class may reside in
different assemblies... This will cause some of the problem you
mentioned, currently I'd suggest you try isolating the problem to a
certain UserControl and the pages which reference or use it (also report
the error.....). Then, we can try doing some further test on this......

In addition, the following msdn article has mentioned most of the migration
issues in upgrading asp.net app from 1.x to 2.0, there contains some
similiar problem as this:

#Common Web Project Conversion Issues and Solutions
http://msdn.microsoft.com/asp.net/reference/migration/upgrade/default.aspx?p
ull=/library/en-us/dnaspp/html/conversionissuesasp_net.asp

Hope helps. 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.)







--------------------
| NNTP-Posting-Date: Wed, 07 Dec 2005 19:42:58 -0600
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: Could not load file or assembly 'App_Web_tod59ga8' and similar
| From: Eric Falsken <efalsken@xxxxxxxxxxxxxxxxx>
| Organization: db4o
| Message-ID: <Xns9725B490AAACEericdb4ocom@xxxxxxxxxxxxxx>
| User-Agent: Xnews/5.04.25
| Date: Wed, 07 Dec 2005 19:42:58 -0600
| Lines: 57
| X-Trace:
sv3-oLU4CPDQttw+RjjzzXNmRVTfqPwzj/fKt+CK7WIEu2yZOhzvQyycq8jO4HVDKdLSQRKtn9+c
1sOVMD6!YK8Z3XTAIGz9WO7Ei0JgtSUJqgTXHi6eWulgpAYOZOUupJ7vtrT47Aqtpc9s6wZRb+Vd
Xg==
| X-Complaints-To: abuse@xxxxxxxxxxxx
| X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
| X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
| X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your
complaint properly
| X-Postfilter: 1.3.32
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.gigan
ews.com!local01.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:363530
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Eric Falsken <eric@xxxxxxxx> wrote on 04 Dec 2005:
|
| > craigkenisston@xxxxxxxxxxx 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.
| >>
| >> However, I found that sometimes I get this error :
| >>
| >> "Could not load file or assembly 'App_Web_tod59ga8, Version=0.0.0.0,
| >> Culture=neutral, PublicKeyToken=null' or one of its dependencies. The
| >> system cannot find the file specified"
| >>
| >> The error always appears to point to places of code where user
| >> controls are declared. The "App_Web_xxxxx" assembly seems to be a
| >> random name choosen by VS.Net to rename my binaries or something like
| >> that. The error is gone by either restarting the web services, or
| >> closing and reopening visual studio or both.
| >> Anyone has ever experimented this error ? Any clue ?
| >>
| >
| > I get this error too. It shows up every few days, sometimes after only
| > a few hours. But of course, the file is where it should be.
| >
| > Server Error in '/' Application.
| > Could not load file or assembly 'App_Web_gvvevrsq, 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_gvvevrsq, Version=0.0.0.0, Culture=neutral,
| > PublicKeyToken=null' or one of its dependencies. The system cannot
| > find the file specified.
| >
|
| Sorry. Just reposting this with a different alias so the MSDN guys can
| answer me. I'm still having the same problem as above with no solution
| except to stop the W3SVC service and delete everything in
| C:/windows/Microsoft.NET/Framework/v2.0.xxxx/Temporary ASP.NET/*
|
|
|
| --
| Eric Falsken
| Technical Evangelist: db4o
| web: www.db4o.com
| email: eric@xxxxxxxx
| skype: efalsken
|

.



Relevant Pages

  • RE: Could not load file or assembly App_Web_tod59ga8 and similar
    ... > compiled assemblies of the UserControl or any dependencs are invisible ... > the same folder, if we use purely dynamic compilation, the usercontrol ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Big problem with VS2008 & WPF
    ... Now I have a main project and several assemblies. ... I have the reference correct since it did compile correctly once. ... I have a usercontrol within the usercontrol. ... HELP HELP HELP! ...
    (microsoft.public.dotnet.languages.vb)
  • Big problem with VS2008 & WPF
    ... I just made a small change to a WPF project to put the usercontrols into their own assembly. ... Now I have a main project and several assemblies. ... I have the reference correct since it did compile correctly once. ... I have a usercontrol within the usercontrol. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: I need to pass an object to a UserControl
    ... = Project MyUserControl contains a UserControl and a class called cObject. ... = Project MyWinApp contains your application and a class also called ... & assemblies. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: EventLogPermission via caspol.exe
    ... I moved my code off UNC to local disk. ... Exception oInnerException, Boolean bLog) ... > web app and assemblies over UNC. ...
    (microsoft.public.dotnet.security)