DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: ASP+ remote directory access problem

  1. #1
    Victor Guest

    ASP+ remote directory access problem

    Since I posted my question last time, I made some changes in my code. I
    added in config.web: authentication mode="Windows"
    This suppose to give me access to directory, but I'm getting message:
    System.UnauthorizedAccessException: Access to path "K:\TEMP\*" was denied.

    It works fine in windows application and services, and only give error in
    ASP+.

    Does anybody has answer to this problem?

    Thank you,
    Victor

    Previous message:

    I'm trying to access files in certain directory on remote server from code
    behind. However, every time I'm hitting following code: dr = new
    Directory("k:\temp"), I'm getting message: "Logon failure: the user has not
    been granted the requested logon type at this computer."
    Does anyone has solution for that or knows how to access directory on remote
    computer?

    Thank you,
    Victor



  2. #2
    Jovica Mrkela Guest

    Re: ASP+ remote directory access problem

    Victor,

    Try following:

    Go to IIS, find your page and select properties.

    On the "File Security" tab click "Edit" button under "Anonymous Access
    Authentication Control"
    Click "Edit" button under "Anonymous Access" on next dialog.

    Select user that has enough access rights (for the resource you are trying
    to use) and assign it to the page.

    My reccomedation would be to create new user with rights as limited as
    possible for this purpose to
    avoid security risks.

    Page will be created and executed in security context that will allow it to
    use reqired resource.

    This works with ASP files and I hope it will work with ASPX as well.

    Hope this will help.

    Jovica Mrkela

    "Victor" <victorr@orbnet.com> wrote in message
    news:3a81bf4b$1@news.devx.com...
    > Since I posted my question last time, I made some changes in my code. I
    > added in config.web: authentication mode="Windows"
    > This suppose to give me access to directory, but I'm getting message:
    > System.UnauthorizedAccessException: Access to path "K:\TEMP\*" was denied.
    >
    > It works fine in windows application and services, and only give error in
    > ASP+.
    >
    > Does anybody has answer to this problem?
    >
    > Thank you,
    > Victor
    >
    > Previous message:
    >
    > I'm trying to access files in certain directory on remote server from code
    > behind. However, every time I'm hitting following code: dr = new
    > Directory("k:\temp"), I'm getting message: "Logon failure: the user has

    not
    > been granted the requested logon type at this computer."
    > Does anyone has solution for that or knows how to access directory on

    remote
    > computer?
    >
    > Thank you,
    > Victor
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center