Iis 7 C语言中的词成分#
我正在C#上使用Microsoft.Office.Interop.Word.dll的组件。但是当我在IIS上运行它时,我收到以下错误Iis 7 C语言中的词成分#,iis-7,Iis 7,我正在C#上使用Microsoft.Office.Interop.Word.dll的组件。但是当我在IIS上运行它时,我收到以下错误 Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005. 如果我允许在IIS上使用32位应用程序,我将收到以下错误 ”Validati
Retrieving the COM class factory for component with
CLSID {000209FF-0000-0000-C000-000000000046} failed
due to the following error: 80070005.
如果我允许在IIS上使用32位应用程序,我将收到以下错误
”Validation of viewstate MAC failed. If this application is
hosted by a Web Farm or cluster,
ensure that <machineKey> configuration specifies the
same validationKey and validation algorithm.
AutoGenerate cannot be used in a cluster”
顺便说一下,我在Windows Server 2008上使用的是64位IIS 7
我怎样才能解决这个问题
提前感谢。错误(或HRESULT)0x80070005
转化为E\u ACCESSDENIED
,这意味着您在某个地方遇到了权限问题
确保您网站的标识具有访问Word的权限
还要确保应用程序池的
启用32bitoponwin64
设置已配置为与Word应用程序针对的处理器体系结构相匹配。服务器上是否安装了Word/Office?
<system.windows.forms jitDebugging="true"/>
Microsoft Word encountered a problem.
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.Runtime.InteropServices.COMException:
Word encountered a problem.
Source Error:
Line 711:
Line 712: //ADDING A NEW DOCUMENT TO THE APPLICATION
Line 713: oWordDoc = oWord.Documents.Add(ref yol, ref oMissing,
ref oFalse, ref oTrue);
Line 714:
Line 715: // SELECT END