locked
Could not load file or assembly 'ABC, Version=1.0.0.0, Culture=EN-US, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. RRS feed

  • Question

  • User-1825349734 posted

    Hi,

    We are working on Visual Studio 2012. Recently we have migrated our application from Visual Studio 2005 to 2012. It's working fine in our development environment.

    Now when we have published and then hosted the application in to Prod environment IIS7, it's working for few hours and then getting the issue.

    We tried to find out the details of the exception in event log:

    Below is the trace in event log:

    Source: System.Web Message: Exception of type 'System.Web.HttpUnhandledException' was thrown. Stack Trace: at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 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.xxx_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) HelpLink: Source: App_Web_rvb5klxy Message: Could not load file or assembly 'xxx.business, Version=1.0.0.0, Culture=EN-US, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. Stack Trace: at xxx.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Conol.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) HelpLink:

    Source: System.Web

    Message: Exception of type 'System.Web.HttpUnhandledException' was thrown.

    Stack Trace:    at System.Web.UI.Page.HandleError(Exception e)

       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

       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.xxx_aspx.ProcessRequest(HttpContext context)

       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    HelpLink:

    Source: App_Web_rvb5klxy

    Message: Could not load file or assembly 'xxx.Business, Version=1.0.0.0, Culture=EN-US, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

    Stack Trace:    at xxx.Page_Load(Object sender, EventArgs e)

       at System.Web.UI.Control.OnLoad(EventArgs e)

       at System.Web.UI.Control.LoadRecursive()

       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    HelpLink: 

    We have tried the below options to resolve the issue:

    1. Created new version for the xxx.Business and replaced. It workedfine  for couple of hours and then again the same issue got replicated in the event viewer.

    2. Changed few IIS settings- Enable32Bit= true in Application pool setting

    3. Deleted the temporary asp.net files and then recycled apppool and ran the application. it worked for 3 hrs and again logged the same exception.

    4.Deleted the old Application from IIS and again published. Worked fine for few hours and again logged the same error in Event Viewer

    5. Registered the xxx.Business dll in the GAC and again ran the application. It worked fine for few hours again and same exception log created in event viewer.

    Can you please look in to issue and provide the workaround to rectify the issue. 

    Tuesday, July 16, 2013 11:07 PM

Answers

  • User-166373564 posted

    Hi devilsnani

    Message: Could not load file or assembly 'xxx.Business, Version=1.0.0.0, Culture=EN-US, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

    It seems a pretty common solution is to clear out the shadow copy folder, you'll need to shutdown IIS and Visual Studio first:

    "C:\WINDOWS\Microsoft.NET\Framework\.........\Temporary ASP.NET"

    You can also check the document that clearing out "temporary asp.net files", perhaps many solutions are also available for you to deal with this issue,

    Regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 24, 2013 1:22 AM

All replies

  • User-801004448 posted

    Did you replace xxx in xxx.business

    It could be your website was not uploaded correctly. Some file might be missing.

    Friday, July 19, 2013 1:41 AM
  • User-166373564 posted

    Hi devilsnani

    Message: Could not load file or assembly 'xxx.Business, Version=1.0.0.0, Culture=EN-US, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

    It seems a pretty common solution is to clear out the shadow copy folder, you'll need to shutdown IIS and Visual Studio first:

    "C:\WINDOWS\Microsoft.NET\Framework\.........\Temporary ASP.NET"

    You can also check the document that clearing out "temporary asp.net files", perhaps many solutions are also available for you to deal with this issue,

    Regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 24, 2013 1:22 AM