locked
could not load file or assembly RRS feed

  • Question

  • User-1244068445 posted

    The web application is just having the facebook connect button...When i deployed it in IIS...it works for some time and then it fails....if i removed the files and re deployed it again in IIS..its working fine for some time....and again it fails....

    the error i am getting is

     

    Server Error in '/' Application.

    Could not load file or assembly 'Facebook, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.

    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.FileLoadException: Could not load file or assembly 'Facebook, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Assembly Load Trace: The following information can be helpful to determine why the assembly 'Facebook, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' could not be loaded.

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    

    Stack Trace:

    [FileLoadException: Could not load file or assembly 'Facebook, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.]
       Myapp.Page_Load(Object sender, EventArgs e) +0
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
       System.Web.UI.Control.LoadRecursive() +71
       System.Web.UI.Control.LoadRecursive() +190
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3048
    


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

    <!-- [FileLoadException]: Could not load file or assembly 'Facebook, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied. at TripCross.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown. 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.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --><!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->
    Tuesday, January 4, 2011 11:08 AM

Answers

  • User13850534 posted

    You need to give "network service" this user full permissions on the directory.


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 4, 2011 9:38 PM

All replies

  • User1080785583 posted

    Windows 7? If so, Windows 7 likes to set everything to read only, so try changing your folder attributes to disable readonly.

    Tuesday, January 4, 2011 12:58 PM
  • User-1244068445 posted

    Thank you for your suggestions

    I tried that...but the issue is still there.....

    it is in Windows server 2008 R2. 

    When i re-deployed the publised files....the site is running for 15-30min...and then it throws the error...

    Tuesday, January 4, 2011 2:34 PM
  • User13850534 posted

    You need to give "network service" this user full permissions on the directory.


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 4, 2011 9:38 PM