Re: Accessing remote network resources from ASP.NET applications

From: Ken Schaefer (kenREMOVE_at_THISadOpenStatic.com)
Date: 04/13/04


Date: Tue, 13 Apr 2004 17:32:13 +1000

Hi,

I don't think this is an impersonation or authentication problem. I think
the problem is your use of mapped drive letters. A drive letter is mapped
for the logged on user only. So whatever user account you used to map the
drive letter to a share on ServerA is the only account that can see that
mapping. Any other user does not see it.

Instead of using mapped drive letters, use UNC paths (\\server\share)
instead, since all users can see that. If you are correct about how you've
setup your Domain account, and the permissions, everything should work then.

Cheers
Ken

"Dilip" <rdilipk@lycos.com> wrote in message
news:8bc3089c.0404121437.1e9cb35a@posting.google.com...
: Hi All
:
: Sorry to bring up a beaten-down-to-death topic. But I seem to be
: running into a wall whatever I try here. To cut a long story short, I
: have an ASP.NET application that tries to move a file from box A to
: box B. Box A and B are in the same domain. My security settings are
: like this:
:
: * The site's virt directory is configured for anonymous access with a
: specified domain user and password (not IUSR_machinename) -- IOW, IIS
: does not control the password.
: * My web.config has authentication mode as "none" and impersonate as
: "true" (non-user-specific).
: <authentication mode="None" />
: <identity impersonate="true" />
:
: The domain\user specified in the anonymous access settings in IIS has
: the rights to access the remote machine's folder location (full
: access). FWIW, This particular folder on Box B is mapped as a shared
: drive in Box A.
:
: My call to FileInfo.MoveTo(destination_in_box_b) repeatedly fails with
: DirectoryNotFoundException.
:
: Can someone _please_ help me out here?
:
: thanks
: --Dilip



Relevant Pages

  • Re: Microsoft AntiSpyware and .bat files
    ... "security"against malware that programatically sets MSAS to pass it. ... My instinct here is to see if I can lose the mapped drive letters, ... Already have a HD volume as F:, and connect to ye olde Novell LAN? ... mapped drive letters are a backwards-compat kludge that should ...
    (microsoft.public.security.virus)
  • Re: Hyperlinks and UNC
    ... saying in one way or the other that more was expected. ... it's only for 4 particular drive letters. ... I'm very much against mapped drive letters, ... I am talking hundreds of servers in dozens of locations ...
    (microsoft.public.access.forms)
  • Re: Hyperlinks and UNC
    ... Doug Steele, Microsoft Access MVP ... it's only for 4 particular drive letters. ... I'm very much against mapped drive letters, ... I am talking hundreds of servers in dozens of locations ...
    (microsoft.public.access.forms)
  • Re: Hyperlinks and UNC
    ... it's only for 4 particular drive letters. ... I'm very much against mapped drive letters, ... it was a single-server environment. ... I am talking hundreds of servers in dozens of locations ...
    (microsoft.public.access.forms)

Loading