检索 COM 类工厂中 CLSID 为。。的组件失败!
小弟拿的别人写的项目,以前好好的,换了台机器有个地方就报错了。刚学不久,跪求帮助!
Cell cell= new Cell();这句报错了。
其中Cell是引用的命名空间interop.CELL50Lib里的
using System.Runtime.InteropServices;
namespace CELL50Lib
{
[CoClass(typeof(CellClass))]
[Guid("A8B053A1-ACBB-47B1-9ECC-5A286BBB7B20")]
public interface Cell : _DCell2000, _DCell2000Events_Event
{
}
}
报错详细信息:
用户代码未处理 System.Runtime.InteropServices.COMException
Message="检索 COM 类工厂中 CLSID 为 {01E85C96-0576-423C-AA35-4DE078412088} 的组件时失败,原因是出现以下错误: 80040154。"
Source="PKPMJD"
ErrorCode=-2147221164
StackTrace:
在 PKPMJD.jdmanage.StandingBookServer.ProcessRequest(HttpContext context)
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)