+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Cannot load file or assembly error

Cannot load file or assembly error

22 posts, 0 answered
  1. adam
    adam avatar
    41 posts
    Registered:
    12 Jan 2009
    13 Mar 2009
    Link to this post
    Randomly I am seeing this error on my server complaining about a missing file or assembly. After server restarts it seems this error happens more often:

    I have a Web farm with 2 Web servers, SQL-based persistent user sessions, and content served being from a UNC path if that is helpful information. 

    Server Error in '/' Application.

    Could not load file or assembly '3889AC4AF542BAC3C62ABB154E78FEA8, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The network name cannot be found.

    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 '3889AC4AF542BAC3C62ABB154E78FEA8, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The network name cannot be found.

    Source Error:

    Line 25:         this.langList.Visible = LocalizationManager.PersistenceMode != LocConfig.PersistenceMode.None;
    Line 26:         // END EXCLUDE FOR COMMUNITY
    Line 27: this.MainMenu.DataBind();Line 28:     }
    Line 29: 

    Source File: \\pubausclu1\msdforg\Public\Sitefinity\Admin\Admin.master.cs    Line: 27

    Assembly Load Trace: The following information can be helpful to determine why the assembly '3889AC4AF542BAC3C62ABB154E78FEA8, Version=0.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:

    [FileNotFoundException: Could not load file or assembly '3889AC4AF542BAC3C62ABB154E78FEA8, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The network name cannot be found.]
    
    [FileNotFoundException: Could not load file or assembly '3889AC4AF542BAC3C62ABB154E78FEA8, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The network name cannot be found.]
       System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
       System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +437
       System.Reflection.Assembly.Load(AssemblyName assemblyRef) +35
       Telerik.WebServices.DynamicProxy.CompiledAssemblyCache.CheckCacheForAssembly(String wsdl) +199
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy.BuildProxy() +66
       Telerik.WebServices.DynamicProxy.WebServiceDynamicProxy..ctor(String wsdlLocation, Cookie authCookie) +330
       Telerik.Notifications.Services.MailingServiceProxy..ctor(String wsdlUri) +987
       Telerik.Notifications.Services.MailingServiceProxy..ctor() +54
       Telerik.Notifications.Newsletters.DataManager.OnInitialized() +121
       Telerik.ManagerBase`1.Initialize() +1297
       Telerik.ManagerBase`1..ctor(String providerName) +71
       Telerik.ManagerBase`1..ctor() +54
       Telerik.Notifications.Newsletters.DataManager..ctor(String providerName) +50
       Telerik.Notifications.Newsletters.DataManager..ctor() +54
       Telerik.Notifications.Newsletters.DataManager.get_Providers() +114
       Telerik.Notifications.Newsletters.DataManager.get_SecurityRoots() +117
       Telerik.Notifications.Newsletters.NewsletterModule.get_SecurityRoots() +45
       Telerik.Cms.Web.UI.Util.CheckPermissions(IModule module, Int32 perm) +215
       Telerik.Cms.Web.UI.Util.CheckMinimalPermissions(IModule module) +51
       Telerik.Cms.Web.UI.MainMenuSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +7342
       System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +23
       System.Web.UI.WebControls.DataBoundControl.PerformSelect() +273
       Admin_Admin.Page_Load(Object sender, EventArgs e) in \\pubausclu1\msdforg\Public\Sitefinity\Admin\Admin.master.cs:27
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
       System.Web.UI.Control.OnLoad(EventArgs e) +137
       System.Web.UI.Control.LoadRecursive() +98
       System.Web.UI.Control.LoadRecursive() +207
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2524
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.3074
  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    13 Mar 2009
    Link to this post
    did you recently upgrade your sitefinity version?

    I experienced an issue very similar to this when I upgraded... as pointed out in this thread

    http://www.sitefinity.com/support/forums/support-forum-thread/b1043S-bhcged.aspx

    the solution was to go into the /sitefinity/serviceassemblies folder and delete the dll that is there, then restart the application. I have not received this error once since doing so!

    hope this helps!
  3. adam
    adam avatar
    41 posts
    Registered:
    12 Jan 2009
    13 Mar 2009
    Link to this post
    Thanks for the tip, it does work temporarily. We have done that a few times, but the errors seem to come back after a while, especially after server reboots.

    Any ideas what causes this to happen in the first place? Deleteing assemblies manually isn't something that we feel we should have to do often as it sounds like a bug that this occurs in the first place.

    Thanks!
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    13 Mar 2009
    Link to this post
    Hi adam,

    Could you verify that the both servers(probably sharing one db- not sure how configured) use the same version of Sitefinity? If youhave different versions of sitefinity - this should be the problem.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. adam
    adam avatar
    41 posts
    Registered:
    12 Jan 2009
    17 Mar 2009
    Link to this post
    That is correct, both servers actually point to the same UNC path for the Sitefinity folder.

    Thanks!
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    18 Mar 2009
    Link to this post
    Hello adam,

    Let us know if there is anything else that we can do for you.

    Kind regards,
    Ivan Dimitrov
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. adam
    adam avatar
    41 posts
    Registered:
    12 Jan 2009
    19 Mar 2009
    Link to this post
    We are still having big problems with this issue.

    You are correct that both servers share a UNC path and database.

    Repro:
    Whenever we go in Sitefinity admin to Modules/Newsletter it crashes with the same assembly error all the time. Even deleting assemblies doesn't help.

    I am looking for troubleshooting tips or anything to unblock our deployment.

    Thanks!
    Adam
  8. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    20 Mar 2009
    Link to this post
    Hello Adam,

    Please elaborate on if you have upgraded to the latest version. This was fixed there, and it is true that we had this problem in our previous versions.

    Regards,
    Georgi
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  9. adam
    adam avatar
    41 posts
    Registered:
    12 Jan 2009
    23 Mar 2009
    Link to this post
    We are using 3.6 plus hotfix. Is there a newer version than that?

    Thanks!
    Adam
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    24 Mar 2009
    Link to this post
    Hi adam,

    The last official release is 3.6 hotfix.

    The error is indicating that you are missing a dependency, not the physical assembly. Make sure that the application can find all of the assemblies that your Web Application project references.  Referencing the source assembly over the network could be your problem.
    Make sure that the "NETWORK SERVICE" or "ASPNET" user has permissions over the assemble and the folder where it resides.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  11. adam
    adam avatar
    41 posts
    Registered:
    12 Jan 2009
    24 Mar 2009
    Link to this post
    Correct, I double checked that our ASP.NET worker process has Full Control over the assembly location folder an the Temporary ASP.NET Files folder as well.

    Please specify what you mean when you say that "Referencing the source assembly over the network could be your problem." That is our configuration but should be supported and should work fine. That's the way a Web farm is normally configured, meaning that we get all content and assemblies from a UNC path across the network.

    By the way, here is the more detailed .NET Assembly Loader (Fusion) log of the assembly load failure. I have confirmed that the path where it expects the file exists, is accessible, and the assembly does exist there:

    *** Assembly Binder Log Entry  (3/24/2009 @ 1:45:59 PM) ***
    
    The operation failed.
    Bind result: hr = 0x80070002. The system cannot find the file specified.
    
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorwks.dll
    Running under executable  c:\windows\system32\inetsrv\w3wp.exe
    --- A detailed error log follows. 
    
    === Pre-bind state information ===
    LOG: User = PUBLIC\srvc-msdforganon
    LOG: DisplayName = 3889AC4AF542BAC3C62ABB154E78FEA8, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null, processorArchitecture=MSIL
     (Fully-specified)
    LOG: Appbase = file://pubausclu1/msdforg/public/
    LOG: Initial PrivatePath = \\pubausclu1\msdforg\public\bin
    LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\d67ebb2b
    LOG: Cache Base = C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\d67ebb2b
    LOG: AppName = 159854a6
    Calling assembly : Telerik.DynamicWebServices, Version=3.6.1870.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: \\pubausclu1\msdforg\public\web.config
    LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.
    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
    
    

  12. adam
    adam avatar
    41 posts
    Registered:
    12 Jan 2009
    24 Mar 2009
    Link to this post
    Also please note that I am using Windows Server 2008 64bit. This error only happens in Sitefinity Admin, under Modules/Newsletters, everywhere else and all other admin functionality works just fine.

    Please notice that when I run dependency walker on the assembly named 3889AC4AF542BAC3C62ABB154E78FEA8.DLL, I get an error about LINKINFO.DLL complaining that there might be a mismatch of x64 and x86 assemblies there:

    Error: Modules with different CPU types were found.

    Warning: At least one delay-load dependency module was not found.

    Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

  13. adam
    adam avatar
    41 posts
    Registered:
    12 Jan 2009
    25 Mar 2009
    Link to this post
    I installed Windows Server 2008 Desktop Experience to resolve the missing LINKINFO.DLL error, but the problem still remains where the assembly fails to load as described earlier.

    What additional troubleshooting steps that I can perform to narrow the issue?

    Thanks!
    Adam
  14. adam
    adam avatar
    41 posts
    Registered:
    12 Jan 2009
    27 Mar 2009
    Link to this post
    Hi all,

    Any additional ideas about how we can troubleshoot and resolve this assembly load failure? This is currently blocking our Sitefinity 3.6 deployment. Any help is greatly appreciated.

    Thanks!
    Adam
  15. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    27 Mar 2009
    Link to this post
    Hello adam,

    As far as I know Linkinfo.dll errors are caused by missing system files or  registry structures. I saw that the errors are returned by the Dependency Walker. The error about different CPU is strange - it means that the application fails to load by your OS. I suggest that you should check all references to the bin. Additionally you could try removing the asseble ( just cut and paste it somewhere else) to see whether it will be regenerated. By default this assemble should be regenerated if you have remove it once you try to initialize the module.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  16. adam
    adam avatar
    41 posts
    Registered:
    12 Jan 2009
    27 Mar 2009
    Link to this post
    Remember that if we go stright to the Web server to run Sitefinity it always works, for example server1/sitefinity, but only fails on the Web farm, for example domain.com/sitefinity. But of course this must work on the Web farm in production.

    We can delete that assembly manually and then Sitefinity will recreate it, then clicking Newsletters makes it crash with an error that it cannot find the assembly (same error we always have shown in this thread). We have also noticed that sometimes this crash occurs just after logging in and not having gotten to the main admin screen.

    The path of the assembly is here:
    \Sitefinity\ServiceAssemblies and the assembly name is always 3889AC4AF542BAC3C62ABB154E78FEA8.dll

    Next steps from here?

    Thanks!
    Adam
  17. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    31 Mar 2009
    Link to this post
    Hi Adam,

    Is the Sitefinity directory stored on a network location? If yes, you could try moving it locally.
    Let us know if this fixes the issue, and if this is acceptable.

    All the best,
    Georgi
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  18. adam
    adam avatar
    41 posts
    Registered:
    12 Jan 2009
    31 Mar 2009
    Link to this post
    That's correct, when we copy the Sitefinity folder locally and the problem goes away. However, we cannot do that solution, since this is a Web farm.

    All the permissions are set correctly, so is this a bug in Telerik.DynamicWebServices?

    Thanks!
    Adam
  19. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    02 Apr 2009
    Link to this post
    Hello Adam,

    This seems like a bug in the web services indeed. We are currently setting the environment for testing and debugging, and will follow up shortly.

    All the best,
    Georgi
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  20. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    02 Apr 2009
    Link to this post
    Hello Adam,

    We reproduced the problem.

    It is in our code and the way we bind the dynamic assembly. We are not sure if we will be able to fix this for the upcoming service pack, but it will be fixed for sure for the major release - 4.0.

    Meanwhile, please try the following:
    - Take the dynamic assembly from the \[YourProject]\Sitefinity\Service Assemblies and place it in [YourProject]\bin directory. Since the bin directory is a standard place for the assemblies (as well as the GAC), the binding should work just fine. The cons of this approach will be with the upgrade -  you should take the fresh generated service assembly after an upgrade, and replace the one in the bin directory.

    Please let us know about the results you get.

    Greetings,
    Georgi
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  21. adam
    adam avatar
    41 posts
    Registered:
    12 Jan 2009
    02 Apr 2009
    Link to this post
    That's great news that you know the source of the problem! I tested the workaround and it seems to work fine so far, but we will do more testing under heavier load to be sure.

    If you provide us with a buddy-drop of the hotfix once you write it, we would be happy to test it in our environment.

    Thanks!
    Adam
  22. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    02 Apr 2009
    Link to this post
    Hi Adam,

    Thats great to know, I am glad it worked!
    There should not be any problems with the load and the binding, since it is performed on application start (on the first request). The procedure will not be performed for the subsequent requests, so I suppose everything will be fine.

    As for the fix, thanks for your suggestion. We will see if we there is a quick solution to the problem.

    Sincerely yours,
    Georgi
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Register for webinar
22 posts, 0 answered