Access denied ASp VBScript fileupload which permissions are needed

Posted on 2007-10-12
Medium Priority
Last Modified: 2008-07-18
HI experts,

I want to upload files to my webserver.
ASp and VBScript (File.SaveToDisk)
But I always get this error.

I gave (just for test) even everyone full control but it's not working.
please help. which user needs access?

Microsoft VBScript runtime error '800a0046'

Permission denied

Thanks a lot
please tell me if you need the code.
Question by:arthrex
LVL 12

Expert Comment

ID: 20065528
There are 2 settings, those in IIS which will need to read & write, also the file system itself will need to allow access as this overrules the settings in IIS.
LVL 11

Accepted Solution

Sven earned 800 total points
ID: 20066057
IUSR_COMPUTERNAME and IWAM_COMPUTERNAME need read/write permissions on the folder you would like to upload to!
LVL 30

Assisted Solution

third earned 400 total points
ID: 20066102
check if the IUSR account has write permissions to your save folder.
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

LVL 12

Assisted Solution

R_Harrison earned 800 total points
ID: 20066558
In the file system, depending on how your server is setup you may not have an IUSR account, if not use the "Everyone" account and apply read & write permissions
LVL 12

Expert Comment

ID: 20066629
A quick note on security, if you allow wite permissions on a folder do not allow execute permissons or you could be in serious trouble.  As well as using IIS to deny execute permission also deny it in the file system by setting the "Traverse Folder/Execute File" to deny.

 - you may never know how glad you are you did this, but you might find out how sorry you can be if you don't -

Author Comment

ID: 20069317
thanks to all of you.
was the IUSR account!!

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses
Course of the Month15 days, 21 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question