Ask a Question related to ASP.NET Security, Design and Development.
-
Garrek #1
Can't get ASP.Net to access remote folder share
I have a WebService executing on one server in a workgroup which needs
to reach out to a folder share on another server for read/write access.
I've created an identical user account on both systems (matching in
username and password). I've approached the problem by writing a
utility class that calls the Win32 API LogonUser method. The idea was
to have the code temporary impersonate the user account, access the
remote UNC folder share, and then return the context back to normal.
The problem is that well... it's just not working =) As soon as I
call File.Exists(filePath) I always get a false return signifying the
file doesn't exist or I don't have access. Now I've confirmed the user
account on the remote system has read/write permission on the share.
Any ideas?
Garrek Guest
-
Access remote folder files in the network
In my ASP.NET application, all the images files are stored on a machine other than my web-server. In a webform i am accessing the image files stored... -
Win 98 connect win 2003 share folder
Can a win 98 connects win 2003 share folders? I got a message ask for password with resource \\computername\IPC$ Both win 98 and win 2003 have... -
Setting folder permissions on remote machine / remote domain
Hello there, I have the following problem: I have Machine A which runs my website. I have Machine B which holds folders for users. Machine A... -
folder access in share
In article <un6Zq$9RDHA.3768@tk2msftngp13.phx.gbl>, "WILLIAM WELBORN" <bwelborn707@email.uophx.edu> wrote: That message is very misleading. The... -
Share Program File Folder
I would like to share the Program File folder on my home network. When I right click on the folder and go to properties and click on the share tab... -
David Coe, MCP #2
RE: Can't get ASP.Net to access remote folder share
It sounds like one of two things is happening. Either the account that is running ASPNET is not functioning correctly (if it is running as another user aside from ASPNET), or the Win32 LogonUser method is not impersonating the user correctly. Just before you make the call to the LogonUser method, check the Context.User.Identity property to see what ASPNET is running as. If that is functioning correctly, I would focus on the impersonation in the Win32 call.
David Coe, MCP Guest
-
Garrek #3
RE: Can't get ASP.Net to access remote folder share
Thanks David, I'll take a look at the Context.User.Identity and see
what's going on.
On 2004-05-17 19:16:05 -0500, "David Coe, MCP"
<anonymous@discussions.microsoft.com> said:
> It sounds like one of two things is happening. Either the account that
> is running ASPNET is not functioning correctly (if it is running as
> another user aside from ASPNET), or the Win32 LogonUser method is not
> impersonating the user correctly. Just before you make the call to the
> LogonUser method, check the Context.User.Identity property to see what
> ASPNET is running as. If that is functioning correctly, I would focus
> on the impersonation in the Win32 call.
Garrek Guest
-
Prodip Saha #4
Re: Can't get ASP.Net to access remote folder share
Garrek,
I experienced the similar problem but got it resolved using a technique
called Mirrored Account. I found this the simpliest possible solution.
Search microsoft site for 'Mirrored Account' for additional help.
Prodip
"Garrek" <garrek_no_spam_2001@hotmail.com> wrote in message
news:2004051602255416807%garreknospam2001@hotmailc om...> I have a WebService executing on one server in a workgroup which needs
> to reach out to a folder share on another server for read/write access.
>
> I've created an identical user account on both systems (matching in
> username and password). I've approached the problem by writing a
> utility class that calls the Win32 API LogonUser method. The idea was
> to have the code temporary impersonate the user account, access the
> remote UNC folder share, and then return the context back to normal.
>
> The problem is that well... it's just not working =) As soon as I
> call File.Exists(filePath) I always get a false return signifying the
> file doesn't exist or I don't have access. Now I've confirmed the user
> account on the remote system has read/write permission on the share.
>
> Any ideas?
>
Prodip Saha Guest



Reply With Quote

