Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 May 26th, 2004, 07:30 AM
Authorized User
 
Join Date: Jun 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default uploading and security

I made a page that uploads a file to the webserver (IIS 6). I configured the security for the folder that receives the uploaded file as follows: Gave write access to IUSR_<MachineName> and to Network Service.
I still get a message that access to the path is denied.

I tried the same on IIS 5, with the same results,
I'm stuck. What do I overlook?


Gerhard Wentink
__________________
Gerhard Wentink
 
Old May 26th, 2004, 07:42 AM
Authorized User
 
Join Date: May 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Within IIS you will need to let the application have write access. Have you checked this

 
Old May 26th, 2004, 08:03 AM
Authorized User
 
Join Date: Jun 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I checked "write" in IIS management console, same results.

Gerhard Wentink
 
Old May 26th, 2004, 08:08 AM
Authorized User
 
Join Date: May 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try giving the users full control and if that works knock security levels off one at a time and see which one it really needs.

 
Old May 26th, 2004, 09:00 AM
Authorized User
 
Join Date: Jun 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I already did that, gave everyone full access to the application and all the directories of IIS. No results.

Gerhard Wentink
 
Old May 26th, 2004, 09:24 AM
Authorized User
 
Join Date: May 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm stumped then

 
Old May 26th, 2004, 09:25 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I think we need more information. what does "gave everyone full access" mean? Forget the whole application... focus on the one directory that's getting files.. the IUSER_ should have write access as should the ASPNET user.


Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old May 26th, 2004, 09:41 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Gerhard,

How large are the files you're uploading? By default, IIS will block files larger than around 200K....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old May 26th, 2004, 02:18 PM
Authorized User
 
Join Date: Jun 2003
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have a little image of 12Kb that I always use for testing. I'm really stumped.
IUSR_<machinename> and the ASPNET both have full control. I also tried to give the "Everyone" account full control. Really nothing works.
And here it comes: I just tried to upload a file to this same directory with a Classic ASP upload script I always used. And that worked...

Gerhard Wentink
 
Old May 26th, 2004, 02:45 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Could it be a bug in the script? We haven't examined that yet...

Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee





Similar Threads
Thread Thread Starter Forum Replies Last Post
Code Access Security & Role Based Security robzyc C# 6 April 11th, 2008 02:31 AM
System.Security.SecurityException: Security error coolcatjk Pro VB.NET 2002/2003 4 March 2nd, 2006 06:00 PM
Uploading derek Dreamweaver (all versions) 4 March 8th, 2004 04:28 PM
about uploading shine SQL Server ASP 1 June 5th, 2003 06:35 PM





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