Click here to Skip to main content
16,010,392 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: How to display messagebox on client machine in asp.net ? Pin
Ray Cassick10-Oct-02 8:56
Ray Cassick10-Oct-02 8:56 
GeneralRe: How to display messagebox on client machine in asp.net ? Pin
Paul Watson10-Oct-02 20:50
sitebuilderPaul Watson10-Oct-02 20:50 
AnswerRe: How to display messagebox on client machine in asp.net ? Pin
Pradhip10-Oct-02 11:56
Pradhip10-Oct-02 11:56 
GeneralHttp controls and .Net Pin
Anonymous9-Oct-02 17:55
Anonymous9-Oct-02 17:55 
GeneralRe: Http controls and .Net Pin
Anders Munk10-Oct-02 3:42
Anders Munk10-Oct-02 3:42 
GeneralRe: Http controls and .Net Pin
Anonymous10-Oct-02 12:03
Anonymous10-Oct-02 12:03 
Generalsetting value field of input - file object Pin
bjnst69-Oct-02 11:09
bjnst69-Oct-02 11:09 
GeneralFileSystemObject, ASP and Windows NT authentication.... Pin
goddess_spanky9-Oct-02 8:02
goddess_spanky9-Oct-02 8:02 
I hope someone has the answer to this Smile | :)

I have a site in regular old asp 3.0 on IIS 5 -windows 2000.
The site is basically a fancy FTP GUI so users can view files/folders and then download them. What I am trying to do is use the filesystemobject (vbscript) to get a list of the folders/files on a remote data share. I setup the IIS anonymous account to use a domain account instead of IUSER_ComputerName because this domain account has read/write/change permissions on both the IIS box and the data share. Now my problem is that when I run the code below, I am getting an error (not sure what the exact error is)
<br />
'//the UNC path is being pased with URL encoding<br />
ReportPath = Request.QueryString("UNC")<br />
<br />
Set fso = CreateObject("Scripting.FileSystemObject")<br />
'//I get the error with the FolderExists method<br />
If fso.FolderExists(ReportPath) Then<br />
  Set aFolder = fso.GetFolder(ReportPath)<br />
<br />
	For Each aFolder In aFolder.subfolders<br />
            .....<br />
	Next<br />
Else<br />
	errMsg = "Folder/File does not exist or access is denied"<br />
End If<br />

why am I getting this? is it because I am not using a literal for the folder path or because I am not getting authenticated to the remote server?

When I tried this on my local box using VB, it worked fine as long as I didn't use a variable to refer to the UNC path. It may also have worked becuase I have a drive mapped to the UNC path.

I did find one or two articles on MSDN, but it is still unclear to me. This article seemed to have the most information...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnauth/html/dnauth_security.asp

any ideas? I'm so freakin' confused.
GeneralRe: FileSystemObject, ASP and Windows NT authentication.... Pin
Daniel Turini9-Oct-02 8:35
Daniel Turini9-Oct-02 8:35 
GeneralRe: FileSystemObject, ASP and Windows NT authentication.... Pin
goddess_spanky9-Oct-02 8:55
goddess_spanky9-Oct-02 8:55 
GeneralRe: FileSystemObject, ASP and Windows NT authentication.... Pin
Daniel Turini9-Oct-02 9:00
Daniel Turini9-Oct-02 9:00 
GeneralRe: FileSystemObject, ASP and Windows NT authentication.... Pin
goddess_spanky9-Oct-02 11:00
goddess_spanky9-Oct-02 11:00 
GeneralRe: FileSystemObject, ASP and Windows NT authentication.... Pin
Philip Patrick10-Oct-02 3:48
professionalPhilip Patrick10-Oct-02 3:48 
GeneralData binding to a DropDownList control WITHOUT code!?! Pin
Ray Cassick9-Oct-02 4:43
Ray Cassick9-Oct-02 4:43 
GeneralRe: Data binding to a DropDownList control WITHOUT code!?! Pin
Andy Smith9-Oct-02 5:13
Andy Smith9-Oct-02 5:13 
GeneralRe: Data binding to a DropDownList control WITHOUT code!?! Pin
Paul Watson9-Oct-02 6:32
sitebuilderPaul Watson9-Oct-02 6:32 
GeneralRe: Data binding to a DropDownList control WITHOUT code!?! Pin
Ray Cassick9-Oct-02 7:05
Ray Cassick9-Oct-02 7:05 
GeneralRe: Data binding to a DropDownList control WITHOUT code!?! Pin
leppie9-Oct-02 7:44
leppie9-Oct-02 7:44 
GeneralThe View State is invalid for this page and might be corrupted. Pin
leppie9-Oct-02 2:12
leppie9-Oct-02 2:12 
GeneralRe: The View State is invalid for this page and might be corrupted. Pin
Megan Forbes9-Oct-02 2:38
Megan Forbes9-Oct-02 2:38 
GeneralRe: The View State is invalid for this page and might be corrupted. Pin
leppie9-Oct-02 7:31
leppie9-Oct-02 7:31 
GeneralRe: The View State is invalid for this page and might be corrupted. Pin
Megan Forbes9-Oct-02 22:16
Megan Forbes9-Oct-02 22:16 
Questionputting an icon in the page? Pin
Zibar9-Oct-02 1:28
sussZibar9-Oct-02 1:28 
AnswerRe: putting an icon in the page? Pin
Nick Parker9-Oct-02 2:26
protectorNick Parker9-Oct-02 2:26 
GeneralRe: putting an icon in the page? Pin
Megan Forbes9-Oct-02 2:36
Megan Forbes9-Oct-02 2:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.