Com object with CLSID {XXXX} is either not valid or not registered 如何解決?
我在程序中引用了Interop.sqldmo.dll,用vs自帶的打包程序打包好後,到客戶端去用,在登陸服務器時,報如下錯誤:
Com object with CLSID {XXXX} is either not valid or not registered
知道原因是在客戶機上沒有注冊Interop.sqldmo.dll,需要手動在客戶機上注冊。
那這樣就很麻煩了,如何在安裝時注冊這個.dll
有誰碰到過這種問題,麻煩告訴解決的方法。