2014-11-24 2 views
0

고객이 로컬로 배포하는 MVC 응용 프로그램이 있습니다. 그것은 수년간 일해 왔습니다.파일 또는 어셈블리 'System.Web.Http.WebHost ...'또는 해당 종속성 중 하나를로드 할 수 없습니다. 모듈에 어셈블리 매니페스트가 포함될 것으로 예상 됨

  • 서버 : 윈도우 스몰 비즈니스 서버 2011 표준은
  • IIS 7.5
  • .NET : 3.5

    나는이 환경에서 그것을로드하는 고객이있다. 1 & 4.5

그들은 하위 도메인으로 배포하지만,이 오류가 있습니다 :

Server Error in '/' Application. 

Could not load file or assembly 'System.Web.Http.WebHost, Version=4.0.0.0, 
Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The 
module was expected to contain an assembly manifest. 

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.BadImageFormatException: Could not load file or assembly 
'System.Web.Http.WebHost, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 
or one of its dependencies. The module was expected to contain an assembly manifest. 

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 
'System.Web.Http.WebHost, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 
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: 


[BadImageFormatException: Could not load file or assembly 'System.Web.Http.WebHost, 
Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its 
dependencies. The module was expected to contain an assembly manifest.] 
site.MvcApplication.Application_Start() in f:\Users\{path}\site\Global.asax.cs:912 

[HttpException (0x80004005): Could not load file or assembly 'System.Web.Http.WebHost, 
Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its 
dependencies. The module was expected to contain an assembly manifest.] 
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext 
context, HttpApplication app) +12864673 
    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, 
    HttpContext context, MethodInfo[] handlers) +175 
    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, 
    IntPtr appContext, HttpContext context) +304 
    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, 
    HttpContext context) +404 
    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475 

[HttpException (0x80004005): Could not load file or assembly 'System.Web.Http.WebHost, 
Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its 
dependencies. The module was expected to contain an assembly manifest.] 
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12881540 
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159 
    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, 
    HttpContext context) +12722601 

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

나는 아무 소용 작업 디렉토리에서 지정된 DLL을 복사

  • 을 시도했습니다.
  • 작업 사이트간에 설정을 비교하고이 하나
  • 많은 구글이
  • 신선한 응용 프로그램의 설치를 검색하고 우리가 작동하는 것 같다하려고

아무것도 IIS없는 응용 프로그램 풀 정보

  • 을 검사합니다. 아이디어?

  • 답변

    0

    bin 폴더를 삭제하고 응용 프로그램을 다시 작성했습니다. 그럼 내가 가서 그 필요한 dll이 게시에 로컬로 복사되었는지 확인하고 지금 작동합니다.