VB .Net与ADSI问题 [英] VB .Net with ADSI problem
本文介绍了VB .Net与ADSI问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用ADSI开发应用程序。我有以下代码:
DIM ADSUser作为IADsUser
ADSUser = GetObject(" LDAP:// CN = jonsmith,CN =用户,DC =域,DC = com")
MessageBox.Show(ADSUser.EmailAddress)
当我尝试运行程序时,我收到以下错误:
无法创建ActiveX组件
任何想法是什么导致这个?
I am trying to develop an app using ADSI. I have the following code:
Dim ADSUser As IADsUser
ADSUser = GetObject("LDAP://CN=jonsmith,CN=users,DC=domain,DC=com")
MessageBox.Show(ADSUser.EmailAddress)
When i try and run the program, i get the following error:
Cannot create ActiveX component
Any ideas what is causing this?
推荐答案
您的域名和开发机器是什么?win2000?
" Jonathan Smith" <乔*********** @ discussions.microsoft.com>在消息中写道
news:66 ********************************** @ microsof t.com ...
what is your domain, and development machine, win2000?
"Jonathan Smith" <Jo***********@discussions.microsoft.com> wrote in message
news:66**********************************@microsof t.com...
我正在尝试使用ADSI开发应用程序。我有以下代码:
DIM ADSUser作为IADsUser
ADSUser = GetObject(" LDAP:// CN = jonsmith,CN = users,DC = domain,DC = com"
MessageBox.Show(ADSUser.EmailAddress)
当我尝试运行程序时,我收到以下错误:
不能创建ActiveX组件
任何想法导致这个问题?
I am trying to develop an app using ADSI. I have the following code:
Dim ADSUser As IADsUser
ADSUser = GetObject("LDAP://CN=jonsmith,CN=users,DC=domain,DC=com")
MessageBox.Show(ADSUser.EmailAddress)
When i try and run the program, i get the following error:
Cannot create ActiveX component
Any ideas what is causing this?
我在连接到我们域的Windows XP桌面上进行开发。域名
控制器是Windows 2003服务器机器
" Alexey Smirnov"写道:
I am developing on a Windows XP desktop connected to our domain. The domain
controller is a Windows 2003 server machine
"Alexey Smirnov" wrote:
你的域名和开发机器是什么?win2000?
" Jonathan Smith" <乔*********** @ discussions.microsoft.com>在消息中写道
新闻:66 ********************************** @ microsof t.com。 ..
what is your domain, and development machine, win2000?
"Jonathan Smith" <Jo***********@discussions.microsoft.com> wrote in message
news:66**********************************@microsof t.com...
我正在尝试使用ADSI开发应用程序。我有以下代码:
DIM ADSUser作为IADsUser
ADSUser = GetObject(" LDAP:// CN = jonsmith,CN = users,DC = domain,DC = com"
MessageBox.Show(ADSUser.EmailAddress)
当我尝试运行程序时,我收到以下错误:
不能创建ActiveX组件
任何想法是什么造成的?
I am trying to develop an app using ADSI. I have the following code:
Dim ADSUser As IADsUser
ADSUser = GetObject("LDAP://CN=jonsmith,CN=users,DC=domain,DC=com")
MessageBox.Show(ADSUser.EmailAddress)
When i try and run the program, i get the following error:
Cannot create ActiveX component
Any ideas what is causing this?
我知道了,你不应该使用旧的VB-GetObject函数,使用
System.DirectoryServices
" Jonathan Smith" <乔*********** @ discussions.microsoft.com>在消息中写道
news:81 ********************************** @ microsof t.com ...
I got it, you shouldn''t use old VB-GetObject function, use
System.DirectoryServices
"Jonathan Smith" <Jo***********@discussions.microsoft.com> wrote in message
news:81**********************************@microsof t.com...
我正在连接到我们域的Windows XP桌面上进行开发。域名
控制器是Windows 2003服务器机器
Alexey Smirnov写道:
I am developing on a Windows XP desktop connected to our domain. The domain
controller is a Windows 2003 server machine
"Alexey Smirnov" wrote:
你的域名和开发机器是什么?win2000?
" Jonathan Smith" <乔*********** @ discussions.microsoft.com>写在
消息
新闻:66 ********************************** @ microsof t.com ...
what is your domain, and development machine, win2000?
"Jonathan Smith" <Jo***********@discussions.microsoft.com> wrote in
message
news:66**********************************@microsof t.com...
>我正在尝试使用ADSI开发应用程序。我有以下代码:
>
>昏暗的ADSUser作为IADsUser
>
> ADSUser =
> GetObject(" LDAP:// CN = jonsmith,CN = users,DC = domain,DC = com")
>
> MessageBox.Show(ADSUser.EmailAddress)
>
>当我尝试运行该程序时,我收到以下错误:
>
>无法创建ActiveX组件
>
>是什么原因引起了这个?
>I am trying to develop an app using ADSI. I have the following code:
>
> Dim ADSUser As IADsUser
>
> ADSUser =
> GetObject("LDAP://CN=jonsmith,CN=users,DC=domain,DC=com")
>
> MessageBox.Show(ADSUser.EmailAddress)
>
> When i try and run the program, i get the following error:
>
> Cannot create ActiveX component
>
> Any ideas what is causing this?
这篇关于VB .Net与ADSI问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文