Where is System.DirectoryServices?

L

Lorenz Hölscher

Hello everyone,

I need to connect to a Web Service with VS2008Pro using VB. Because
the access has changed from a general password for all users into a
Kerberos/Spengo authentification I looked around for some code.

Many of the examples use an object type called "DirectoryEntry" which
is obviously part of the System.DirectoryServices. If I'm not totally
wrong I need to write

Imports System.DirectoryServices

before my "Public Class XXX" line. But there is no such System class.
What ist my error?

Did anyone find some VB examples for connecting to a Web Service with
Kerberos?

thanks, Lorenz
 
K

kimiraikkonen

Hello everyone,

I need to connect to a Web Service with VS2008Pro using VB. Because
the access has changed from a general password for all users into a
Kerberos/Spengo authentification I looked around for some code.

Many of the examples use an object type called "DirectoryEntry" which
is obviously part of the System.DirectoryServices. If I'm not totally
wrong I need to write

Imports System.DirectoryServices

before my "Public Class XXX" line. But there is no such System class.
What ist my error?

Did anyone find some VB examples for connecting to a Web Service with
Kerberos?

thanks, Lorenz

Hi Lorenz,
I think System.DirectoryServices requires an manual reference to
System.DirectoryServices.dll which can be done just by right clicking
your project in solution explorer -> Add Reference -> in .NET Tab,
select "System.DirectoryServices".

Now, you should be able to import System.DirectoryServices namespace.

Hope this helps,

Onur Güzel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top