這是詳細的錯誤信息。System.Runtime.InteropServices.COMException:未知錯誤(0x80005000)
失敗: System.Reflection.TargetInvocationException:異常已被調用的目標拋出。 ---> System.Runtime.InteropServices.COMException:未知錯誤(0x80005000) at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_NativeObject ()導致上述異常
代碼:
DirectoryEntry de1 = new DirectoryEntry("RNA:");
IRnaNamespace rnaNamespace = (IRnaNamespace)de1.NativeObject;
的德爾對象被創建之後,我嘗試觀看變種德爾的值,這爲t他的結果如下: link text alt text http://lh4.ggpht.com/_ZgKaPEWP-AM/SwEIByd3XiI/AAAAAAAAAtE/ljuXhGUWd4g/s912/Untitled.png
操作系統是Windows2008 R2 64位。它可以在Windows2008Sp2 32bit上成功運行。