这是详细的错误信息。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上成功运行。