---
title: "asp.net com 80040154 Class not registered"
author: "maxer025"
date: "2017-09-30T16:12:27Z"
tags: []
categories: ["Web前端"]
slug: "asp-net-com-80040154-class-not-registered"
draft: false
lastmod: "2017-09-30T16:12:27Z"
id: 2395143
url: "https://maxer025.iteye.com/blog/2395143"
---

http://www.cnblogs.com/hgblog/archive/2013/02/02/2890298.html


在部署一个含有com组件引用的asp.net站点的时候，总是提示下面的错误

Retrieving the COM class factory for component with CLSID {OMMITTED3F344F00E93D} failed due to the following error: 80040154 Class not registered，

但是我写一个控制台程序，引用同一个com，却可以成功，这应该是IIS上的啥设置没有正确。

于是在网上搜索“ASP.NET error 80040154 Class not registered”，有人说是设置应用程序池，

即在应用程序池的高级设置里面allow 32-bit applicationse为true。