2013-04-09 4 views
1

Windows 서버 2008 r2, iis 7 및 .net framework 3.5.1이 설치된 가상 컴퓨터에 웹 사이트를 배포했습니다.파일 또는 어셈블리를로드 할 수 없습니다. Microsoft.Office.Interop.Excel

다음 오류가 발생했습니다.

========================================

Server Error in '/' Application. 

Configuration Error 

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified. 

Source Error: 


Line 46:    <add assembly="stdole, Version=7.0.3300.0, Culture=neutral , PublicKeyToken=B03F5F7F11D50A3A"/> 
Line 47:    <!--<add assembly="Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>--> 
Line 48:    <add assembly="Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" /></assemblies> 
Line 49:  </compilation> 
Line 50:  

Source File: C:\TFareDemo\web.config Line: 48 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' 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]. 

Version Information: Microsoft .NET Framework Version:2.0.50727.5466; ASP.NET Version:2.0.50727.5456 

======================================= ======== 응용 프로그램에는 Excel 보고서가 생성되는 기능이 있습니다. Office를 설치하지 않았으므로 웹 사이트를 시작하는 데 어려움을 겪고 있습니다.

  1. .net 프레임 워크 1.1 재배포 가능 패키지 설치와 같은 많은 작업을 시도했습니다.
  2. Office Open XML도 설치되어있어 문제가 해결 될 수도 있습니다.

도와주세요. 내 웹 사이트는 2005 년을 사용하여 개발되었으며 위에 언급 한 2005 년 가상 머신에 2005 년을 설치하지 않았습니다.

답변

4

나는 사무실

당신은 엑셀 처리 코드를 실행하는 컴퓨터에 MS 오피스 (또는 적어도 엑셀)를 설치해야

을 설치하지 않았습니다. Excel없이 마술처럼 작동하지 않습니다.

+0

서버 컴퓨터에 사무실을 설치할 수 없도록 서버 컴퓨터입니다. Office를 설치하지 않고도 작업을 수행하고 싶습니다. 다른 해결책이 있습니까? 또한 VM에 OpenOffice를 설치했습니다. – kavitha

+0

Excel을 사용하려면 Excel을 설치해야합니다. Excel에 대한 대안을 사용할 수 있습니다. 그런 다음 프로그램을 다시 작성하여 서버에 설치해야합니다. – nvoigt

관련 문제