Ask a Question related to ASP.NET Security, Design and Development.
-
Dilip #1
Accessing remote network resources from ASP.NET applications
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
Dilip Guest
-
accessing remote resources from ASP.NET app
Hi all, I know this issue has already been discussed in several threads of the newsgroup and I read several of them However, I would... -
Accessing ISAM resources from within a WebService
Hi there, I have a stub which extracts contacts from Outlook, using the Jet OLEDB provider. It looks like this: public DataSet... -
accessing network resources from Flash
I built a static site with a flash front end and no back end. It allows e-learning students to click a link to their course on-line. The LCMS... -
Help with accessing network resources
Simply, I wish to return System.IO.File.Exists ("\\myserver_1\myshare\myfolder\myfile.doc") within an ASP.NET web application that sits on... -
Access network resources from ASP.NET
Hi! after extensive research of this topic, I'm still not sure what is "official" way to do it. Task: 1. User submits some request to... -
Ken Schaefer #2
Re: Accessing remote network resources from ASP.NET applications
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.c om...
: 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
Ken Schaefer Guest
-
Dilip #3
Re: Accessing remote network resources from ASP.NET applications
Hi Ken
"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in messageI knew this -- now my question is does this hold true even if I> 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.
impersonate the same user using which I created my drive mappings?
Thats what is happening in my case. I created the drive mappings
using "domain\user1" and that is the same user I am asking IIS to
authenticate in the anonymous user settings.
Or maybe I should implement LogonUser and start a new login session
with a interactive logon type and *then* execute the file move?
Its pretty easy to switch to UNC names but the thing is this code used
to work just 2 days ago and all of a sudden stopped working (don't ask
me why.. I have no idea!)
thanks
--Dilip
Dilip Guest



Reply With Quote

