Re: ASP.NET: cannot access
- From: Duane Arnold <notme@xxxxxxxxx>
- Date: Thu, 17 Nov 2005 20:14:13 GMT
Ma³y Piotru? <maly_piotrus@xxxxxxxxxxxxxx> wrote in
news:o60pn117cvrjt19ts9g0qe5ea7und4cino@xxxxxxx:
> Hello,
> (Sorry for my English, it's not my country language)
> I am learnig .NET and I have little experience. Please help me with
> the following problem:
> I am reimplementing ASP/HTML application into ASP.NET (Windows XP).
> Application contains search engine (ASP script), which I should not
> modify if not neccessary. Applications contains mainly files .html,
> .aspx, .gif and a few subdirectories with files .html, .gif, .xml.
> Search engines reads .html files (I need to add reading .aspx files)
> and displays the list of links. Main part of search engine's code
> contains such loop:
>
> ...
> Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
> Set objFolder = objFSO.GetFolder(strPath)
> For Each objSubfolder in objFolder.Subfolders
> strPath = Server.URLEncode(objSubfolder.Path)
> For Each objFile in objSubfolder.Files ' HERE ERROR (line 160)
> ...
>
> When subdirectories are read it works fine, but after reading all
> subdirectories I receive runtime error:
>
> Microsoft VBScript -runtime error '800a0046'
> Cannot access
> /wwwomnikom/wyszukiwarka.asp, line 160
>
> All the files have rigths: Administrators, ASP.NET Machine Account,
> System, All. Attributes 'Read only', 'Hidden' are off.
> I run the application on Admin account.
>
> Could you please help me how to solve this? Thank you very much.
>
Well, your going to have to put some display information in the program or
start single stepping through the loop to find out who and what it is
directory or file that's giving the problem. It seems to me that you're
having some kind of account permission error possibly like the Everyone
Group account may be present for the file or directory and it's superseding
all other accounts with the Everyone Group account having no access rights
as an example.
Duane :)
.
- References:
- ASP.NET: cannot access
- From: Mały Piotru
- ASP.NET: cannot access
- Prev by Date: Re: programming concepts > specific languages
- Next by Date: Re: What languages have simple syntax?
- Previous by thread: ASP.NET: cannot access
- Next by thread: What cars do programming languages resemble?
- Index(es):
Relevant Pages
|