我有一個小軟件,估計是用 dot net 寫的。 (一個遊戲)
在XP上可以運行,win7家庭版也可以用。
xp的機器 用了很多年了, 今天新買個硬盤,裝了win7 enterprise
結果這小遊戲就不能用了。 一啟動就得到這樣一個窗口。
System.Runtime.InteropServices.COMException
Message: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
Source: System.Windows.Forms
Target: System.Object CoCreateInstance(System.Guid ByRef, System.Object, Int32, System.Guid ByRef)
StackTrace: at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
at System.Windows.Forms.AxHost.CreateInstance()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.AxHost.EndInit()
at Web.Game.Ultima.MainForm.A0LL6q()
at Web.Game.Ultima.MainForm..ctor()
at ShIuWaDHBK(uad.AAuvbJD.AAuvbJD()
InnerException:
win7 自帶 。net framework . 莫非WIN7 企業版有啥特殊的地方嗎?
謝謝啦