Hello
I have a ASP.NET project deployed at server. In one module i have to upload excel file to the server.
This project is running fine when I am using it locally but when I upload to the web server (host server) and I try to upload the excel file it give me following error .
Access to the path 'D:\INETPUB\VHOSTS\Mysite.com\Book1.xlsx' is denied.
4 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Santhakumar MunuswamyPosted Apr 19, 2015, 11:48 PM
Could please check you have access right (file access) to target location. If you dont have file access rights means you have to give that location.
Santhakumar MunuswamyPosted Apr 21, 2015, 7:03 AM
Santhakumar MunuswamyPosted Apr 21, 2015, 4:25 AM
Thanks in advance. If you have helpful Plz "Mark Answer"
Prakash JoshiPosted Apr 21, 2015, 3:43 AM
And yes you are right its the problem of access rights. I changed the the permission of the folder(and sub directory) where I am uploading the excel file. Earlier I tried to change the permission using FileZilla but seems its not working for the Windows server so I have to change it via Cpanel.