On Tue, 7 Dec 2004 02:39:07 -0800, "Akato"
<Akato.TakeThisOut@discussions.microsoft.com> wrote:
>When I execute the following code I´m getting a "Access Denied" error. It
>occurs trying to write a file using a "remote shared directory" and w3upload
>component:
>
>==========
>Set objUploader = Server.CreateObject("w3.upload")
>strFilenamePath = Trim(objUploader.Form.count)
>Set objFile = objUploader.Form("FILE2")
>objFile.SaveToFile "\\remote-server\w3teste\teste.txt"
>Set objFile = nothing
>Set objUploader = Nothing
>response.write "fim: " & strFilenamePath
>==========
>IIS Error:
>2004-12-06 22:47:09 10.1.1.85 POST /teste2.asp
>|10|8000ffff|System_Error.__Code:_5.__Access_denied 8888 DOMAIN\user
>10.1.1.99 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0) 500 0 0
>
>**************
>I can reproduce the error using with the following configurations:
>- Win2003 + IIS6.0 Server
>- w3Upload version 1.x or 2.x
>- SaveToFile function pointing to a "REMOTE" shared diretory
>
>Conditions:
>- uploaded file <200K
>- "all" permission to the "remote directory"
>- valid domain user/logon
>- "windows INTEGRATED authentication" (IIS site)
>- remote client/browser
>
>***************
>The error does not reproduce when:
>- SaveToFile function pointing to a "LOCAL" diretory
>or
>- "windows BASIC authentication" (IIS site)
>
>==============================
>I´m trying to find some issue or mistake in my configurations/code related
>to the relation:
>
>"IIS Windows Integrated Security" X "w3upload Remote directory write
>operations"
>
>Any clue??
>
>psI.: The AccessDenied error appears to be related to some local permission,
>not the remote directory permissions...
>
>psII.: The error occurs trying to upload a file from a remote browser
>machine. When executing from the localhost (IIS/w3Upload host) the error does
>not reproduce...
Using Windows authentication, you're running as a user on the server,
and that user likely has permissons, while the user remotely does not.
Might try Filemon to see what permissions are missing on what file.
Jeff<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Access Denied Error - w3upload