[英]How to solve crystal report issue when deploying a asp.net web application in IIS server
I have a asp.net web application and I am using crystal report in it.It works fine when running on localhost but gives the following error when it is deployed in the IIS server 我有一个asp.net Web应用程序,我在其中使用Crystal Report。在localhost上运行时它可以正常工作,但在IIS服务器中部署时会出现以下错误
Unable to cast COM object of type 'CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass' to interface type 'CrystalDecisions.ReportAppServer.Controllers.ISCRReportSource'.
无法将类型为“ CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass”的COM对象转换为接口类型为“ CrystalDecisions.ReportAppServer.Controllers.ISCRReportSource”的接口。 This operation failed because the QueryInterface call on the COM component for the interface with IID '{31E7715A-8AD0-4D1C-958E-C1BE0A6F2D0C}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).mscorlib at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
该操作失败,因为具有以下错误的IID为'{31E7715A-8AD0-4D1C-958E-C1BE0A6F2D0C}'的接口的COM组件上的QueryInterface调用由于以下错误而失败:不支持此类接口(HRESULT的异常:0x80004002(E_NOINTERFACE)) System.StubHelpers.StubHelpers.GetCOMIPFromRCW上的.mscorlib(Object objSrc,IntPtr pCPCMD,IntPtr&ppTarget,Boolean&pfNeedsRelease)
通过在用于部署Web应用程序的IIS服务器中的应用程序池中启用32位应用程序,我能够解决此问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.