locked
Could not load file or assembly? RRS feed

  • Question

  • Hi..

    Can anyone guide about this warning?

    Warning 1 E:\facebook chat\SilverlightApplication1\SilverlightApplication1.Web\LiveChatService.svc: ASP.NET runtime error: Could not load file or assembly 'LiveChatService' or one of its dependencies. The system cannot find the file specified. E:\facebook chat\SilverlightApplication1\SilverlightApplication1.Web\LiveChatService.svc 1 1 LiveChatClient.Web

    Tuesday, December 27, 2011 10:09 AM

Answers

  • Make sure that the WCF LiveChatService.svc is up and running, by right click and browse.

    Tuesday, December 27, 2011 10:29 AM

All replies

  • Make sure that the WCF LiveChatService.svc is up and running, by right click and browse.

    Tuesday, December 27, 2011 10:29 AM
  • Hi Amjad,

    my WCF Service source is mentnioed below:

    <%@ ServiceHost Language="C#" Debug="true" Factory="LiveChatService.LiveChatServiceHostFactory" Service="LiveChatClient.Web.LiveChatService" CodeBehind="LiveChatService.svc.cs" %>
    
    <%@ Assembly Name="LiveChatService" %>
    
    and when i try to Browse it then it is displaying below exception:
    Server Error in '/' Application.
    Could not load file or assembly 'LiveChatService' or one of its dependencies. The system cannot find the file specified.
    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 'LiveChatService' or one of its dependencies. The system cannot find the file specified.
    
    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 'LiveChatService' 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 'LiveChatService' or one of its dependencies. The system cannot find the file specified.]
       System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
       System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
       System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
       System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
       System.Reflection.Assembly.Load(String assemblyString) +28
       System.ServiceModel.Activation.ServiceParser.AddAssemblyDependency(String assemblyName) +12
       System.ServiceModel.Activation.ServiceParser.ProcessDirective(String directiveName, IDictionary directive) +296406
       System.ServiceModel.Activation.ServiceParser.ParseString() +183
       System.ServiceModel.Activation.ServiceParser.Parse(ICollection referencedAssemblies) +99
       System.ServiceModel.Activation.ServiceBuildProvider.EnsureParsed() +63
       System.ServiceModel.Activation.ServiceBuildProvider.get_CodeCompilerType() +9
       System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) +65
       System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() +218
       System.Web.Compilation.BuildProvidersCompiler.PerformBuild() +40
       System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +8941618
       System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +320
       System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +111
       System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate) +90
       System.Web.Compilation.BuildManager.GetCompiledCustomString(String virtualPath) +29
       System.ServiceModel.HostingManager.GetCompiledCustomString(String normalizedVirtualPath) +161
       System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +208
       System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +44
       System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +615
    
    [ServiceActivationException: The service '/LiveChatService.svc' cannot be activated due to an exception during compilation.  The exception message is: Could not load file or assembly 'LiveChatService' or one of its dependencies. The system cannot find the file specified..]
       System.Runtime.AsyncResult.End(IAsyncResult result) +679246
       System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +190
       System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, String routeServiceVirtualPath, Boolean flowContext, Boolean ensureWFService) +234
       System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +355
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
    
    
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 
    Tuesday, December 27, 2011 10:36 AM
  • Thanks Syed Amjad. Problem is resolved.

    Wednesday, December 28, 2011 8:52 AM