Re: ASP.NET: cannot access



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 :)


.



Relevant Pages

  • Re: how to read file from sub-directories and do an average?
    ... > account when opening all the subdirectories? ...
    (comp.lang.perl.misc)
  • File permissions problem
    ... denied access to some of the subdirectories on my computer. ... My account has administrator permissions. ...
    (microsoft.public.windowsxp.general)
  • New accounts that I did not create appears when I pull up Control Panel --> User Accounts
    ... I'm running XP Pro on a Dell Notebook. ... new account that I did not create when I pulled up Control Panel --> User ... The only subdirectories are \LOCALS~1\Temp. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: DOS program works in Admin account but not in a User account
    ... I have a legacy DOS program that runs fine in my XP Home Admin account which is the one I installed it in but when I run the shortcut or the exe file in my user account it just opens the initial menu screen - if I click on one of the choices the screen flashes off and that's it - finished = the problem is associated with the underlying *.exe file - if I click that it just flashes on and off. ... I assume it has something to do with access rights. ... Open a command line window (Run... ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: DOS program works in Admin account but not in a User account
    ... Home Admin account which is the one I installed it in (simply by copying ... the underlying *.exe file - if I click that it just flashes on and off. ... I assume it has something to do with access rights. ... Open a command line window (Run... ...
    (microsoft.public.win2000.cmdprompt.admin)