Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.††If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 22nd, 2004, 06:04 AM
Registered User
 
Join Date: Jul 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default Active Directory - help!

Hello all,

I have a basic problem with accessing Active Directory. I think I am missing something very basic.

I have copied the following code into a project:

************************************************** **

    Function VirDirExists(ByVal IISPath As String) As Boolean
        Try
            Dim oDE As System.DirectoryServices.DirectoryEntry
            oDE = New System.DirectoryServices.DirectoryEntry
            Return oDE.Exists(IISPath)
        Catch
            Label1.Text = Label1.Text & "VirDirExists Failure: " & Err.Description
        End Try
    End Function

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        Dim sIISPath As String
        sIISPath = "IIS:\\localhost\W3SVC\1\Root"

        VirDirExists(sIISPath)

    End Sub

*****************************************

The message shows "access denied". I don't understand what permissions the system is using. I have played with many settings but I don't know technically what's goin on.

Cheers!
Reply With Quote
  #2 (permalink)  
Old August 3rd, 2004, 03:39 PM
Authorized User
 
Join Date: Jun 2003
Location: St. Louis, Mo., USA.
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey bubmachine, I had an issue like this attempting to delete files using a web interface. What I ended up doing was setting my login name and my machine name to 'Modify' permission this fixed the issue.

Reply With Quote
  #3 (permalink)  
Old August 3rd, 2004, 04:45 PM
Friend of Wrox
 
Join Date: Jul 2004
Location: Tehran, , Iran.
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

also check ASP.NET Machine Account user and change the roles to 'Modify'.
HTH.

--------------------------------------------
Mehdi.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Active Directory TCSE305 Windows Server 1 November 22nd, 2006 12:26 AM
About Active Directory apalmero VB How-To 1 April 8th, 2005 04:06 PM
About Active Directory apalmero VS.NET 2002/2003 1 November 9th, 2003 12:06 PM



All times are GMT -4. The time now is 11:19 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.