[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Possible Frontpage Permission Problem

Asked by frasierphilips in FrontPage-Expressions, Active Server Pages (ASP)

Tags: ASP VBSCRIPT FRONTPAGE

I've taken over a website from a guy who hosted it on his own personal server - I lease a Server from '1 & 1' - the site uses ASP/VBSCRIPT and because i'm now hosting it on a leased server, some of the the techniques the guy was able to use on his own server don't seem to be permissible.

The problem I have occurs when I try to generate a directory listing from of a particular folder.  The code fragment is attached, when it executes I get the following error message:-

Scripting.FileSystemObject error '80040401'

Permission Denied

/member/agenda.asp, line 484

I've tried alll the obvious things such as setting the permissions on the folders, making sure that the path is correct etc.  I'm stumped, as is the ISP (who blame it on the script).

It's the line

set folder = fs.GetFolder(path)

which seems to be the problem.

I've explored the VBSCRIPT side of things and can't find any obvious problems - what I'm wondering is this - I used Frontpage to upload the site to the webspace from a copy of the site on CD therefore all the folders were created by Frontpage - could this be causing the permissions problem?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
sub ListFolderContents(path)
		
     dim fs, folder, file, item, url
 
     set fs = CreateObject("Scripting.FileSystemObject")
     set folder = fs.GetFolder(path)
 
'Display the target folder and info.
 
     Response.Write(typex & vbCrLf)
 
     Response.Write("</td></tr><tr><td><table>" & vbCrLf)
 
'Display a list of sub folders.
 
     for each item in folder.SubFolders
 
		ListFolderContents(item.Path)
 
     next
 
'Display a list of files.
 
     for each item in folder.Files
     
     	url = MapURL(item.path)
       	Response.Write("<tr><td><a href=""" & url & """ target=""_new"">" _
         & item.Name & "</a> - " _
         & item.DateLastModified & ".</td>" _
         & "</tr>" & vbCrLf)
         
     next
     
     Response.Write("</table></td></tr>" & vbCrLf)
 
end sub
[+][-]08/28/09 03:32 PM, ID: 25212059Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: FrontPage-Expressions, Active Server Pages (ASP)
Tags: ASP VBSCRIPT FRONTPAGE
Sign Up Now!
Solution Provided By: coreybryant
Participating Experts: 1
Solution Grade: A
 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625