Could not load file or assembly App_Web...

Last post 11-19-2009 9:58 AM by thermalnoise. 110 replies.

Sort Posts:

  • Could not load file or assembly App_Web...

    04-28-2006, 1:15 PM
    • Member
      157 point Member
    • BradW
    • Member since 01-06-2006, 7:40 PM
    • Posts 40

    Every now and then one or more  .Net 2 production apps are coming up with the error "Could not load file or assembly 'App_Web...".   The app works fine up until that point....and then it breaks and the only solution seems to be to recompile.   Somehow it seems like it be occurring when the application has recycled and .Net recompiles to it's temp files.  These are apps created using the WAP project model.

    Any insight as to why this might be occurring would be appreciated.

    Full error below:

    Exception messages

    ########## System.IO.FileNotFoundException ##########

    Could not load file or assembly 'App_Web_9olwzuwu, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
    Stack

       at ASP.modules_viewheader_ascx.__BuildControlTree(modules_viewheader_ascx __ctrl)
       at ASP.modules_viewheader_ascx.FrameworkInitialize()
       at System.Web.UI.UserControl.InitializeAsUserControlInternal()
       at System.Web.UI.UserControl.InitializeAsUserControl(Page page)
       at ASP.managereservation_aspx.__BuildControlViewHeader1()
       at ASP.managereservation_aspx.__BuildControlForm1()
       at ASP.managereservation_aspx.__BuildControlTree(managereservation_aspx __ctrl)
       at ASP.managereservation_aspx.FrameworkInitialize()
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at ASP.managereservation_aspx.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


     

  • Re: Could not load file or assembly App_Web...

    05-01-2006, 8:24 AM
    • Member
      137 point Member
    • JamesChe
    • Member since 03-14-2006, 7:31 PM
    • Posts 28

    Brad,

     

    You might want to call us and get hotfix 915782. It may resolve this issue. Here's the article:

    http://support.microsoft.com/kb/915782/en-us

     

    Jim Cheshire
    Senior Escalation Engineer
    ASP.NET Critical Problem Resolution Team
    Microsoft Corporation
  • Re: Could not load file or assembly App_Web...

    05-15-2006, 1:37 PM
    • Member
      32 point Member
    • lieblick
    • Member since 05-18-2004, 10:45 AM
    • Posts 7
    Hey Brad ... let us know if that helped!  I'm experiencing something similar!
  • Re: Could not load file or assembly App_Web...

    05-15-2006, 1:48 PM
    • Member
      157 point Member
    • BradW
    • Member since 01-06-2006, 7:40 PM
    • Posts 40

    Haven't tried the hotfix.  The problem description in the kb article doesn't not match up with this issue...and I'm somewhat reluctant to try a seemingly unrelated hotfix in hopes that it will resolve this issue.

     

  • Re: Could not load file or assembly App_Web...

    05-18-2006, 3:53 PM
    • Member
      12 point Member
    • fivetools
    • Member since 05-12-2006, 10:25 PM
    • Posts 3
    I'm also experiencing the same issue - and I too am relectant to try the hotfix cause it doesn't seem to be related.  Anyone tried the hotfix and did it fix the problem?  The workaround solution of editing the file that is causing the error does work - but I'm not really excited about having to watch for the error to apply the workaround everytime it happens.
  • Re: Could not load file or assembly App_Web...

    05-18-2006, 4:35 PM
    • Member
      5 point Member
    • Nifty
    • Member since 05-18-2006, 8:31 PM
    • Posts 1

    I too an running into this but with an IBM product.

    System.IO.FileNotFoundException: Could not load file or assembly 'IBM.Data.DB2, Version=8.1.2.1, Culture=neutral, PublicKeyToken=7c307b91aa13d208' or one of its dependencies. The system cannot find the file specified.
       at blah blah blah()
    
    What is weird is that I'm using the same assembly elsewhere with no problems.
     
  • Re: Could not load file or assembly App_Web...

    05-18-2006, 5:55 PM
    • Member
      5 point Member
    • mvijay
    • Member since 05-18-2006, 9:46 PM
    • Posts 1

    Hi

    I am also facing the same issue. I deployed the hotfix into dev server. Issue still exists. So don't deploy the hotfix. It is not going to fix this issue.

    I also opened a ticket with microsoft yesterday. Now I am waiting for my system to crash. I need to take dumps to send it to microsoft. Does anyone know how to reproduce this issue?. For us it happends suddenly.

    Regards

    mvijay

  • Re: Could not load file or assembly App_Web...

    05-18-2006, 6:51 PM
    • Member
      137 point Member
    • JamesChe
    • Member since 03-14-2006, 7:31 PM
    • Posts 28

    Keep in mind that even though the hotfix didn't work for one person, it might fix it for another.  :)

    If anyone can provide an application that reproduces this for us, it would be tremendously helpful.

     

    Jim Cheshire
    Senior Escalation Engineer
    ASP.NET Critical Problem Resolution Team
    Microsoft Corporation
  • Re: Could not load file or assembly App_Web...

    05-21-2006, 5:05 PM
    • Member
      42 point Member
    • donhrobjartz
    • Member since 04-03-2006, 12:47 PM
    • Posts 9

    Did get the solution to this problem? This is constantly happening to our applications, in the development enviroment and the production enviroment....

    Someone PLEASE let me know if there is a fix to the problem.

  • Re: Could not load file or assembly App_Web...

    05-22-2006, 2:02 AM
    • Member
      15 point Member
    • projyal
    • Member since 05-19-2006, 10:47 AM
    • Posts 3

    Hi

    Are you using a compiled version or you are just letting ASP.NET to compile?

    regards

    Projyal

  • Re: Could not load file or assembly App_Web...

    05-22-2006, 4:56 AM
    • Member
      42 point Member
    • donhrobjartz
    • Member since 04-03-2006, 12:47 PM
    • Posts 9
    It happens in both compiled code and uncompiled (when asp.net compiles)
  • Re: Could not load file or assembly App_Web...

    05-22-2006, 9:14 AM
    • Member
      15 point Member
    • hikingNerd
    • Member since 05-22-2006, 1:03 PM
    • Posts 3
    I am having this same problem, also.   And all of you are correct.  The only Temporary fix is to make a small change in the offending user control, and copy it to the production server.  I was hoping that in-place compilation would have helped, but no dice.  I have written an ASP.NET 2.0 intranet application for my company and can't release it into production until this problem is solved.  If anyone has found a fix, please let us know.  Thx.
  • Re: Could not load file or assembly App_Web...

    05-22-2006, 11:36 AM
    • Member
      15 point Member
    • hikingNerd
    • Member since 05-22-2006, 1:03 PM
    • Posts 3

    I'm back already.  I called Microsoft about this issue, and those guys gave me a hotfix.  It seems to have corrected the problem, but time will tell. 

  • Re: Could not load file or assembly App_Web...

    05-23-2006, 3:24 PM
    • Member
      10 point Member
    • chenty
    • Member since 05-23-2006, 7:21 PM
    • Posts 2

    hikingNerd:
    I am having this same problem, also.   And all of you are correct.  The only Temporary fix is to make a small change in the offending user control, and copy it to the production server.  I was hoping that in-place compilation would have helped, but no dice.  I have written an ASP.NET 2.0 intranet application for my company and can't release it into production until this problem is solved.  If anyone has found a fix, please let us know.  Thx.

    Hi, I have exactly the same problem. It seems that when I have nested user control, I will have the problem. Need to make some small change in user control and hope it is fixed. You mentioned they give you a hotfix, could you provide a link where I can download it?? Many thanks

  • Re: Could not load file or assembly App_Web...

    05-30-2006, 10:25 AM
    • Member
      5 point Member
    • d_b
    • Member since 05-30-2006, 2:22 PM
    • Posts 1
    I am having the exact same problem as well.  Modifying the offending file makes the problem temporarily go away, but this is a serious problem.  Can you post any more information about this hotfix?  Thanks.
Page 1 of 8 (111 items) 1 2 3 4 5 Next > ... Last ยป