none
sub Application error Could not load file or assembly App_Web_x9sniw1b RRS feed

  • Question

  • Has anyone seen this before?

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

    I have an application in a IIS web site.  2.0 framework, 32 bit enable application.

    If I create the application in a new and separate website with the same application pool it works fine. 

    I enabled logging...

    === Pre-bind state information ===
    LOG: User = NT AUTHORITY\NETWORK SERVICE
    LOG: DisplayName = App_Web_x9sniw1b, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
     (Fully-specified)
    LOG: Appbase = file:///R:/SVC/
    LOG: Initial PrivatePath = R:\SVC\bin
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: R:\SVC\web.config
    LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework\v2.0.50727\Aspnet.config
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\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.
    

    Stack Trace:
    [FileNotFoundException: Could not load file or assembly 'App_Web_x9sniw1b, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.]
       System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
       System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43
       System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127
       System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142
       System.Reflection.Assembly.Load(String assemblyString) +28
       System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +162
       System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +693
       System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +42
       System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +479
    
    [ServiceActivationException: The service '/SVC/CFR.svc' cannot be activated due to an exception during compilation.  The exception message is: Could not load file or assembly 'App_Web_x9sniw1b, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified..]
       System.ServiceModel.AsyncResult.End(IAsyncResult result) +11653822
       System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +194
       System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) +176
       System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +275
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
    

    thanks for your help...


    San Diego Website Design

    Friday, September 26, 2014 6:42 PM

Answers

  • It means that .NET can't find the DLL that contains the assembly name it's looking for, or NET can't find a dependency DLL the other DLL depends upon needs. What the DLL or DLL(s) is/are is a wild guess, since you have limited information. But it's going to be whatever is in regards to what is happening in the Bin folder source the solution is using for the Web site.

    http://www.dependencywalker.com/

    Friday, September 26, 2014 8:51 PM