Access denied ASp VBScript fileupload which permissions are needed

Posted on 2007-10-12
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

    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

    IUSR_COMPUTERNAME and IWAM_COMPUTERNAME need read/write permissions on the folder you would like to upload to!
    LVL 30

    Assisted Solution

    check if the IUSR account has write permissions to your save folder.
    LVL 12

    Assisted Solution

    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

    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

    thanks to all of you.
    was the IUSR account!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Suggested Solutions

    Title # Comments Views Activity
    Autosum input type=text when checkbox is true 28 64
    Time/Date Query 11 28
    Reason for High TTFB 1 20
    Select distinct 25 43
    Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
    Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn how to count occurrences of each item in an array.

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now