Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 11th, 2004, 02:31 AM
Authorized User
 
Join Date: Apr 2004
Location: , , .
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASPSmartUpload

Hi! I'm using ASPSmartUpload. I know that web sharing must be allowed for the directory/folder where I want the files to be uploaded. Should READ and/or WRITE access be given to that folder before I can get ASPSmartUpload to work?

In the development region, I can get it to work even if no read/write access is given. But when I had it moved to the server, it won't work.

I hope someone can help me in this area. Thanks!
 
Old May 11th, 2004, 02:44 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Yes, the account your Web server runs under needs access to the folder to be able to write the uploaded files there.
Maybe your development disk wasn't formatted with NTFS, or you had given the Everyone or Users group permission to the folder?

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Confusion Instrumental by New Order (Track 6 from the album: Substance - Disc 2) What's This?
 
Old May 11th, 2004, 03:38 AM
Authorized User
 
Join Date: Apr 2004
Location: , , .
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default

We've installed the system on a Windows NT4 Server. We've already given the folder access rights to read, execute, and scripts (these are the only options available). But still, I got the error:

aspSmartUpload.File error '80040460'
Unable to save file (Error 1120)
/finance5day/UploadTest.asp, line 23

Any ideas why this happens? Thanks!

 
Old May 11th, 2004, 03:52 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I think the options you set apply to IIS, right? I mean, you set those options on the properties dialog for your Web site in IIS?

You also need to change the security settings for the folder at the NTFS / disk level.

Check out these FAQs for more info:

http://Imar.Spaanjaars.Com/QuickDocID.aspx?QUICKDOC=290
http://Imar.Spaanjaars.Com/QuickDocID.aspx?QUICKDOC=287

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: miDijunkies by Atari Teenage Riot (Track 6 from the album: Delete Yourself) What's This?
 
Old May 11th, 2004, 04:03 AM
Authorized User
 
Join Date: Apr 2004
Location: , , .
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actually we just right clicked the folder and check web sharing there, and ticked all the checkboxes there. Hehehe! Do I really need to configure IIS or change the security settings at the NTFS/disk level?

 
Old May 11th, 2004, 04:15 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

IIS: No. NTFS: Yes

AFAIK, the Web Sharing option is a short-cut to configure IIS only. However, you should still grant the account that IIS uses the required permissions to write to the Uploads folder. The first FAQ I posted describes this in full detail.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Tijd Genoeg by Doe Maar (Track 10 from the album: Doris Day en andere Stukken) What's This?
 
Old May 11th, 2004, 04:42 AM
Authorized User
 
Join Date: Apr 2004
Location: , , .
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've checked the Security settings..all the IUSRs have been given full access already...but I still get the error. Any more ideas?

 
Old May 11th, 2004, 04:47 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

What account does IIS run under? Did you give permissions to that account?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old May 12th, 2004, 07:59 PM
Authorized User
 
Join Date: Apr 2004
Location: , , .
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes...even that account was given full access..what other things can we do?

 
Old May 13th, 2004, 01:56 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

And what was the account that IIS was running under? IUSR or are you using another security scheme like Integrated or Basic authentication?

There are a few other things I can think of:

1. The component needs permissions to the temp folder or registry somewhere
2. You haven't completely installed the product; e.g. the *util file is not installed or cannot be found
3. You're using SmartUpload on Server 2003, which does not always work correctly, without some modifications.
4. You are configuring the permissions for an incorrect user.

To see if it's a permission issue, grant full control to the \Users group. If it works, you know it's a permission issue, and you can continue your search for the correct user.
Did you read the Documentation and FAQs for the product? They contain a lot of information about dealing with errors.

Speaking of errors: what error do you get? In your initial post you said "it won't work", but what exactly doesn't work?

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.




Similar Threads
Thread Thread Starter Forum Replies Last Post
invalid class (aspsmartupload) arabuafef Classic ASP Basics 4 January 9th, 2007 03:28 PM
File Download Problem with AspSmartUpload componen mlbrv Classic ASP Components 0 December 4th, 2006 06:48 AM
ASPSmartUpload doesn't save files jcalmeida Classic ASP Basics 4 August 23rd, 2004 04:20 AM





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