DirectoryEntry userEntry = new DirectoryEntry("vmwin0019adz.itcenter.xxx.com.cn", "sp", "xx", AuthenticationTypes.Secure | AuthenticationTypes.Sealing | AuthenticationTypes.ServerBind);
这句出现
System.Runtime.InteropServices.COMException
这句出现
System.Runtime.InteropServices.COMException
解决方案 »
- 求一LINQ
- 急急急!!!winform 二进制转换成PDF文件并显示
- 已知点的经纬度,怎样用八位十六进制表示?
- .net 2005 打包的时候怎么自动调用一个批处理来注册控件呢
- C#如何实现正真意义的ActiveX控件!该控件可能由vb6,c++等调用!
- 在C#中生成一个Excel文件后,如何设置某一列的单元格为文本格式?
- 怎样查询数据库中表的字段的默认值啊?
- 问2天问题,帖子没人回答,在发一下,
- 限制textbox的输入内容
- 如何include文件啊?
- System.Reflection.Assembly.Load(String assemblyString) 值不能为空 参数名: assemblyString
- 高手请进
DirectorySearcher deSearch = new DirectorySearcher();
deSearch.SearchRoot = de;
deSearch.Filter = "(&(objectClass=user)(sAMAccountName=" + "yangd" + ")))";
deSearch.SearchScope = SearchScope.Subtree;
SearchResult results = deSearch.FindOne(); SearchResult results = deSearch.FindOne();
这句抛异常:
notsupported exception,
提供程序不支持搜索操作因此无法搜索
怎么设置可以搜索啊?
http://blog.csdn.net/lude8880/archive/2010/03/17/5389734.aspx