Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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
        clientFile.PostedFile.SaveAs(filepath)

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

  #2 (permalink)  
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
Default

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.

Eric
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 12:52 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.