Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Forms
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 June 28th, 2004, 11:52 AM
Registered User
 
Join Date: Jun 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help: "invalid active directory path name was pass

I am using VB.Net/ASP.net to create a web application which retrive user entries from Windows 2003 Active Directory via ADODB.

I encounter some problems and will greatly appreciate any help.
THANK YOU VERY MCUH in advance.

Q1. I have problem to create a ASP.net web app remotely. I use the VB.net in my dev box (W2000 system) and try to create the ASP.net web app project in a remote W2003 server. I keep receiving "Unable to create Web Prject "ResetPro". The UNC share \\servername\wwwroot$\ResetPro'does not exist or you do not have access.

I am a domain admin of the domain the W2003 resides. I have created a virtual directory at \\servername\wwwroot$\ResetPro and grand myself a full control.

Q2. I am able to create the ASP.net web app locally. Can I create such ASP.net web app locally and then copy all files over to the remote W2003 server. I tried, but it didn't work.



Q3. I use VB.net to create ASP.net web app locally. The code mainly works, but the code with ADODB as below first hits "invalid active directory path name was passed" when the search filter as "<LDAP://servername/ou=people,dc=corp,dc=xxx,dc=com>;(samaccountname=x xx);cn;subtree)".

I did some research and notice that "/" in the search filter may cause the error of "invalid active directory path name was found".

I then modify the search filter to be "<LDAP://servername;(samaccountname=xxx);cn;subtree)". With this filter, I receive no error, but no entries returned. The same code code with VB.net for a window application and returns the entry.

I then use VB.net debug version to dump the variable "results". It shows
" Bookmark <error: an exception of type: {System.Runtime.InteropServices.COMException} occurred> Object"
    Status <error: an exception of type: {System.Runtime.InteropServices.COMException} occurred> Integer"

At the
ADODBRecordSet attributes.


THe code is as below:
  Dim sPrefix As String = "LDAP://servername"

  results = CreateObject("ADODB.Recordset")
  conn = CreateObject("ADODB.Connection")
  comm = CreateObject("ADODB.Command")
  conn.Provider = "ADsDSOObject"

  conn.Open("Active Directory Provider")
  comm.ActiveConnection = conn

  sSearchFilter = "<" & sPrefix & ">;" & "(sAMAccountName=" & LogonName & ")" & ";distinguishedname,cn;subtree"

  comm.CommandText = sSearchFilter
  results = comm.Execute


Thanks again!!!

Leey


 
Old June 28th, 2004, 08:54 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

May be you can post this in a suitable DotNet forum to get early replies.

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old June 29th, 2004, 02:13 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Regarding your first question: did you also add yourself to the list of users allowed to access the share? It's not enough to give access to the underlying files and folders; you'll need to allow access to the share as well.
Look at the Share tab in a Windows Explorer.

Regarding your second question: yes. The Solution Explorer has a copy project dialog. Once you click that, you can copy the required (or all) files to another http location. You need to provide details about the location and method (Frontage vs direct files) and then VS.NET will copy the files for you. Works like a charm if you are allowed to access the http server and the shared folder.....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid report file path rwalker Crystal Reports 1 January 28th, 2009 10:49 AM
Active Directory - Pass Credentials kjak Classic ASP Basics 1 November 18th, 2008 02:03 AM
Invalid report file path cathiec Crystal Reports 0 June 30th, 2005 10:10 AM
Invalid path for MapPath kondin BOOK: ASP.NET Website Programming Problem-Design-Solution 1 February 4th, 2004 11:49 PM
Invalid database Path MrDannyP VB Databases Basics 1 January 7th, 2004 10:15 AM





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