2011-12-27 62 views
3

一個Windows 7(64位)系統運行在Windows Azure計算仿真器下面的代碼(SDK版本1.5)安裝更新後在Windows 7上使用Microsoft.Web.Administration當 「未註冊的類」

Site site = new ServerManager(); 

這產生以下異常:

Retrieving the COM class factory for component with CLSID {B15183DD-75F9-42DF-8E57-C8B57692F134} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

在消息中提到的類ID是指在程序文件(x86)的32位的.dll。由於Azure角色代碼是64位,因此不會飛行。

這種行爲沒有觀察到一些Windows更新推出了安裝的Windows Phone SDK 7.1

這個問題怎麼能當最佳解決嗎?

回答

4

問題源於IIS Express安裝在同一臺計算機上 - 卸載它恢復正常操作。