Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 16th, 2005, 08:08 AM
Registered User
Join Date: Jan 2005
Location: jerusalem, , Israel.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default access denied when uploading file

i have a asp.net application which upload a file. i want to save the uploaded file on a remote server on the domain. this is my script:

        Dim plc As Integer
        plc = textbox1.PostedFile.FileName.LastIndexOf("\")
        plc = Len(clientFile.PostedFile.FileName) - plc - 1
        Dim ofile As String = Right(clientFile.PostedFile.FileName, plc)
        Dim filepath As String = "\\serverName\TempLib" & ofile

i got the error:
System.UnauthorizedAccessException: Access to the path "..." is denied.
in the web.config i have <identity impersonate ="true">
the library on the remote server has permission to the user.

thanks for anyone who can help me on this problem.

dalia caspi

Old January 16th, 2005, 11:08 AM
Friend of Wrox
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts

It sounds like you're impersonating the identitity coming to you from IIS. What are the setttings on IIS - is it passing you the true credentials of a user on your Windows network, or is it passing you it's own identity (normally IUSR_machinename)?

IUSR_machinename is a low priviledge account, similar to ASPNET.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access is denied" load a simple xml file nana XML 12 May 12th, 2010 07:01 AM
401.3 Access denied due to Access Control List cforsyth .NET Framework 2.0 8 May 28th, 2009 01:56 PM
Chapter 7: permission Denied while uploading files matrixbegins BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 2 July 28th, 2008 06:55 PM
Access denied, can't create xml file from ASP.NET goldablasha C# 3 February 27th, 2007 05:50 AM
Access is denied. Ramakrishna General .NET 4 November 30th, 2004 09:05 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.