We have a web application which allow users to download documents from SharePoint. Recently we have received a requirement to enable downloading .exe file. But on clientContext.ExecuteQuery();
I am getting following error. Moreover, while retrieving file extension is coming as aspx
instead of .exe
.
FileUrl: http://domainname/Shared Documents/Forms/DispForm.aspx?ID=14394
Error
Access denied. You do not have permission to perform this action or access this resource.
Can anyone please suggest me how we can enable users to download .exe files directly using web application.
http://domainname/Shared Documents\file.exe
Access denied.
error. I think something is wrong with the url it is returing.