2010-11-12 3 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

Установите для сборки Office в своих ссылках свойство CopyLocal в true или поместите его на хостинг вручную.

+0

Как я могу это сделать? вы можете направить меня? – Ishan

+0

Откройте свой проект в VS, откройте папку «Ссылки», найдите там Office. Открыть окно свойств (F4). Найти свойство CopyLocal для сборки, установить его в true, а затем опубликовать свой проект. –

+0

Я использую Vwebdeveloper 2008, и проект отлично работает на моей локальной машине. Ошибка возникает, когда я перемещаю ее на удаленный сервер. – Ishan

Смежные вопросы