locked
FileUpload PDFs to folder RRS feed

  • Question

  • User-1359517959 posted

    Hello,

    Not sure I'm in the correct forum.

    Have a page that has a gridview and the user uploads a pdf with it.  The pdfs are store in a folder and document info is updated a database table. 
    Some of the pdfs upload and some don't. 
    Here's the error msg that don't upload:     Access to the path 'X:\www\WebName\Files\abc.pdf' is denied.

    I would think it's document permissions but...  There's 3 different locations this is developed and tested on. 
    1. Local machine
    2. Testing Server
    3. Live Server
    The document uploads in the local machine and the live server but not in the testing server.  I've checked the pdf to see if it has any security on it from acrobat but it doesn't.

    If it's server permission then why do some of the pdfs upload on all 3 servers and some don't.

    Here's another wrinkle.  On the same page, there's a form above the Gridview that is for a new record to be created and pdf uploaded.  This always works.  Any document.  So it can't be server permissions right?

    Any ideas?

    I'm sorry if this isn't the correct forum.  But didn't know where to start.

    JS

    Friday, January 26, 2018 5:00 PM

All replies

  • User283571144 posted

    Hi jslist,

    Here's another wrinkle.  On the same page, there's a form above the Gridview that is for a new record to be created and pdf uploaded.  This always works.  Any document.  So it can't be server permissions right?

    Any ideas?

    According to your error message, I suggest you could check the IIS application pool's permission.

    Each application pool has its own permission. I suggest you could firstly change the Application Pool Identity build-in account to local system, then check if this error is still happen.

    Details, you could refer to below st3eps:

    1. Open IIS Manager. For information about opening IIS Manager.
    2. In the Connections pane, expand the server node and click Application Pools.
    3. On the Application Pools page, select the application pool for which you want to specify an identity, and then click Advanced Settings in the Actions pane.
    4. For the Identity property, click the ... button to open the Application Pool Identity dialog box.
    5. If you want to use a built-in account, select the Built-in account option and select an account from the list.
    6. Click OK to dismiss the Application Pool Identity dialog box.

    If setting the application pool identity to local system is work well, I suggest you could use process monitor to troubleshoot the right permission.

    More detail, you could refer to below article.

    http://improve.dk/solving-access-denied-errors-using-process-monitor/ 

    Best Regards,

    Brando

    Monday, January 29, 2018 8:22 AM