difficulty to access a mapped network drive

Discussion in 'ASP .Net' started by =?Utf-8?B?UGl5dXNoIFRyaXZlZGk=?=, Nov 3, 2006.

  1. I am experiencing difficulty to access a mapped network drive in an ASP.NET
    application.

    While using the .Net framework v 1.1 implementation of
    System.IO.Directory.Exists() to check if the directory is exists and then
    create the directory if not exists, but it fails to recognize a mapped
    network drive.

    I have set also set the <identity impersonate="true" />.
    Because I need to check the Map folder of the Logged in user.

    When I run the web Application from My Local machine then it is working with
    only my user name. But if if any one else try to access the same web
    application from there machine then it is giving Error :- Access to the path
    "-----" is denied.

    Do I need to change any setting in IIS. I have remove the Check from
    Anonymous Access for the Web Application.

    Please Help me to solve this... Thanks
     
    =?Utf-8?B?UGl5dXNoIFRyaXZlZGk=?=, Nov 3, 2006
    #1
    1. Advertising

  2. you are hitting the one hop rule. in order to access a network resource
    (like a share), asp.net can not impersonate the client using windows
    autheication, you must unless use use kerberos or basic.

    -- bruce (sqlwork.com)

    "Piyush Trivedi" <> wrote in message
    news:...
    >I am experiencing difficulty to access a mapped network drive in an ASP.NET
    > application.
    >
    > While using the .Net framework v 1.1 implementation of
    > System.IO.Directory.Exists() to check if the directory is exists and then
    > create the directory if not exists, but it fails to recognize a mapped
    > network drive.
    >
    > I have set also set the <identity impersonate="true" />.
    > Because I need to check the Map folder of the Logged in user.
    >
    > When I run the web Application from My Local machine then it is working
    > with
    > only my user name. But if if any one else try to access the same web
    > application from there machine then it is giving Error :- Access to the
    > path
    > "-----" is denied.
    >
    > Do I need to change any setting in IIS. I have remove the Check from
    > Anonymous Access for the Web Application.
    >
    > Please Help me to solve this... Thanks
     
    bruce barker \(sqlwork.com\), Nov 3, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michal Valent
    Replies:
    2
    Views:
    1,071
    =?Utf-8?B?cmVpbmhhcmQ=?=
    Nov 27, 2003
  2. shailesh
    Replies:
    1
    Views:
    794
    Tim Golden
    Mar 28, 2007
  3. Jerry C
    Replies:
    5
    Views:
    747
    Alexey Smirnov
    Apr 24, 2008
  4. Marc

    Access Mapped Drive using Authenticated Access

    Marc, Aug 8, 2006, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    136
  5. king
    Replies:
    1
    Views:
    285
Loading...

Share This Page