Hi TPS,
"string SaveLocation = "path to folder on other server\" + fileName;"
"SaveLocati on" is path to a shared foder, right?
Actually, when you enable "Allow Anonymouse" access, the requests are
processed under the security context of the account IUSER_machinena me.
However, IUSER_machinena me is a local account and you cannnot grant write
permission to a folder on mahince B to a local account in machine A, unless
you grant Everyone write permission, but this is NOT recommended because,
by doing so, everyboy can change the files in the shared folder.
To workaround this problem, you can use the method #2 I mentioned in my
previous post:
------------------------------------------
If you enabled "Anonymous access" option for the web application, you can
use this method:
1. Create an identical local account on both machines, with the same
username and password.
2. Disable "Allow IIS to control password" option in the Authentication
Method dialog box of the ASP.NET web application.
3. Replace the default user name "IUSR_MachineNa me" with the local account
your created
The above step tells IIS to use this specific account to process the
request instead of the default anonymous account: IUSER_machinena me
---------------------------------------------
Regards,
Felix Wu
=============
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "TPS" <tp*@tps.com>
References: <ed************ **@tk2msftngp13 .phx.gbl>
<#r************ **@TK2MSFTNGP11 .phx.gbl>
<On************ **@TK2MSFTNGP12 .phx.gbl>
<ln************ **@cpmsftngxa07 .phx.gbl>
<ue************ **@TK2MSFTNGP11 .phx.gbl>
<u#************ **@TK2MSFTNGP09 .phx.gbl>Subject: Re: Web App need permission to post files to a virtual directory
Date: Tue, 10 Feb 2004 11:34:48 -0600
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <eg************ **@TK2MSFTNGP10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
NNTP-Posting-Host: h-66-134-6-74.dllatx37.cov ad.net 66.134.6.74
Path:
cpmsftngxa07.ph x.gbl!cpmsftngx a10.phx.gbl!TK2 MSFTNGXA05.phx. gbl!TK2MSFTNGP0 8
.phx.gbl!TK2MSF TNGP10.phx.gblXref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2089 74
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
Phillip, thanks for your comments.
By default there is no write access to the ASP.net account under theinetpub directory.
Can I change the default so the asp.net account can write to the
folder?Anything outside of it you should easily be able to save the file. Hope
that helps
So this suggests using impersonation to be "anything outside".
I am still unclear on how to get the aspnet user rights to upload files to
afolder on the other server.
Thanks again.
-- TPS