2016-05-18 6 views
0

中に例外のために活性化することはできませんが、生産現場で私はこのエラーを取得する:サービス「/app/notificationsregistrationhandler.svc」は、このREST Webサービスが正常に動作開発効率向上のサイトでコンパイル

Server Error in '/app' Application. 

The specified module could not be found. (Exception from HRESULT: 0x8007007E) 

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: The specified module could not be found. (Exception from HRESULT: 0x8007007E) 

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. 

Stack Trace: 


[FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)] 
    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.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46 

[ConfigurationErrorsException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)] 
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613 
    System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203 
    System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105 
    >System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178 
    System.Web.Compilation.WebDirectoryBatchCompiler..ctor(VirtualDirectory vdir) +163 
    System.Web.Compilation.BuildManager.BatchCompileWebDirectoryInternal(VirtualDirectory vdir, Boolean ignoreErrors) +53 
    System.Web.Compilation.BuildManager.BatchCompileWebDirectory(VirtualDirectory vdir, VirtualPath virtualDir, Boolean ignoreErrors) +175 
    System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +86 
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +261 
    System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +101 
System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) +83 
System.Web.Compilation.BuildManager.GetCompiledCustomString(String virtualPath) +27 
System.ServiceModel.HostingManager.GetCompiledCustomString(String normalizedVirtualPath) +134 
System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +25 
System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +42 
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +479 

[ServiceActivationException: The service '/app/notificationsregistrationhandler.svc' cannot be activated due to an exception during compilation. The exception message is: The specified module could not be found. (Exception from HRESULT: 0x8007007E).] 
    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.HttpHandler.ProcessRequest(HttpContext context) +23 
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181 
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 
  • 開発サイトのweb.configは、本番サイトでは同じです(データソース接続情報を除く)。

  • キロバイトがGeneXusのEV3のU3を使用して開発されており、

  • 開発サイトでは、Windows 7 SP3、生産現場でEV2のU7から移行されたのWindows Server 2008 R2

  • 生産拠点は、RESTのWeb以外の正常に動作していますサービスは

  • URL書き換えモジュールは

  • anotificationsregistrationhandler.dllはビンDIRECTO上で設定されていますry

他に何を確認できますか?

答えて

0

次のディレクトリを空にしてくださいでした:

C:\ WINDOWS \ Microsoft.NET \ Frameworkの\ v4.0.30319 \ ASP.NETの一時ファイル C:\ WINDOWS \ Microsoft.NET \ Frameworkのの\ v2の。 0.50727 \ ASP.NETの一時ファイル

IISの再起動]:cmd.exeの "IISRESET"

0

デURL書き換えモジュールに加えて、あなたはまた、次のWindowsを有効にする必要があります:

1)の.NET Framework 4.5高度なサービス - > WCFサービス - > HTTPアクティベーション

2)Microsoft .NET Framework 3.5 - > Windows Communication Foundation HTTP - アクティブ化

関連する問題