2010-11-12 175 views
1
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 'Office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified. 

Source Error: 


Line 43:    <add assembly="System.Web.Extensions.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> 
Line 44:    <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> 
Line 45:    <add assembly="Office, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"/> 
Line 46:    <add assembly="Microsoft.Office.Interop.Word, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"/></assemblies> 
Line 47:  </compilation> 


Source File: C:\inetpub\wwwroot\toolbar\web.config Line: 45 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Office, 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]. 

任何人都可以幫助我解決這個問題??我使用的是Windows Server 2008來部署我的網站。部署ASP.net網站時出錯

回答

1

將您的引用CopyLocal屬性設置爲Office程序集爲True或將其手動託管。

+0

我該怎麼辦呢?你能指導我嗎? – Ishan 2010-11-12 06:53:34

+0

在VS打開你的項目,打開References文件夾,在那找到Office程序集。打開屬性窗口(F4)。查找CopyLocal屬性進行彙編,將其設置爲true,然後發佈您的項目 – 2010-11-12 06:57:58

+0

我正在使用Vwebdeveloper 2008,該項目在我的本地機器上正常工作,當我將它移動到遠程服務器時出現錯誤 – Ishan 2010-11-12 07:23:09