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
FileUrl: http://domainname/Shared Documents/Forms/DispForm.aspx?ID=14394
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.