Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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!
 
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.

 
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.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Active Directory TCSE305 Windows Server 1 November 22nd, 2006 01: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 01:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.