Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Access Denied Error - w3upload

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  IWAM and html rendering  
Author Message
akato

External


Since: Dec 07, 2004
Posts: 1



(Msg. 1) Posted: Tue Dec 07, 2004 2:39 am
Post subject: Access Denied Error - w3upload
Archived from groups: microsoft>public>inetserver>iis (more info?)

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...

Thanks!

 >> Stay informed about: Access Denied Error - w3upload 
Back to top
Login to vote
user641

External


Since: Aug 22, 2003
Posts: 1637



(Msg. 2) Posted: Tue Dec 07, 2004 9:47 am
Post subject: Re: Access Denied Error - w3upload [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Akato" <Akato.DeleteThis@discussions.microsoft.com> wrote in message
news:39AA92A0-4A99-4E98-A45A-DE4CCE7E29EF@microsoft.com...
 > 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...

No mistakes, just a misunderstanding how Windows Integrated authentication
works. This is known as a delegation issue, as Windows Integrated does not
actually send the password from browser to web server - so the web server
does not have the user's password so it can authenticate to the remote
server. Basic authentication actually sends the password, so IIS is able to
use it and pass it to the remote server for authentication.

You may be able to get around this with Kerberos.
<a style='text-decoration: underline;' href="http://www.google.com/search?sourceid=navclient&ie=UTF-8&q=iis+kerberos+delegation" target="_blank">http://www.google.com/search?sourceid=navclient&ie=UTF-8&q=iis+kerbero...elegati</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Access Denied Error - w3upload 
Back to top
Login to vote
user1772

External


Since: Jun 10, 2004
Posts: 1807



(Msg. 3) Posted: Tue Dec 07, 2004 11:35 am
Post subject: Re: Access Denied Error - w3upload [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
ASP error 80070005 - Access denied - I am running IIS5 on Windows 2000 Advanced server, and I have an applicaton that uses ASP. The ASP pages instantiate various in-house developed Visual Basic components using server.createobject The application is in production and is experiencing ..

Error: access denied - I turned off Anonymous Authentication on a particular folder, have Basic and Digest Authentication enabled. Also set the domain. Logging in using the domain password/login works fine.... if you get it correct. Question. If someone enters an incorrect..

access is denied / 401.2 error - internally and externally i can access this virtual directory, i have two clients that cannot access it they get access is denied. the authentication , user name and password will not come up to prompt him either. just the error will come up Help please

FTP 550 error : Access is denied ? - Hi, Got FTP service running on win2k server. When logging in as administrator I attempt the following: - type "send" - prompted for "local file" - type "c:\k.txt - prompted for "remote file" - type "k.txt" -...

General Access Denied Error - After several hours of troubleshooting here is a summary of my problem: ASP pages will not display on WinXP Pro/IIS 5.1 when typing http:/localhost in IE6 IE6 Message is: Server Application Error The server has encountered an error while loading an..
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]