We've been using your file manager for approximately a year now after getting it deployed correctly. We currently had an issue where the user was unable to download a file when specified but the files can be downloaded by selecting the directory the file is stored in and then selecting download. We are currently still using the file provider examples listed on Github but found different errors when using either the ASP.NET Core and MVC versions which we're not sure how to debug. I separated out the inline call to download the file in order to find out what was causing the issue and found the following
MVC - 403 Forbidden - AzureFileProvider.cs line 460
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The remote server returned an error: (403) Forbidden.
Source Error:
|
|
Core - 404 Not Found - AzureFileProvider.cs line 568 An unhandled exception occurred while processing the request.
System.Net.HttpWebRequest.GetResponse()
AzureFileProvider.csAzureFileProvider.csAzureProviderController.csWhether you have performed any customizations in your service providers?
Aside from replacing the information to connect to the Azure storage we do have a different web.config file
Steps you followed to host the service provider.
We deployed the project as an Azure Web Application
3.
Whether you are facing this issue in local service
also.
No, this only seems to be a hosted issue. We have been able to download any file on the Azure blob storage from my local machine which should be using the same configuration as the hosted one.
4.
Whether you are facing this issue only on download
operation or other operations as well.
This issue only seems to persist on the download functionality and doesn’t affect downloading a directory. We are able to rename, upload and create files on the server but then cannot download them.
We do not feel confident in sending some of the information such as the web.config or the method we deploy the Azure web app since this is on a publicly available forum and we could potentially share sensitive information which we do not want to be accessed such as the license key in the web.config
|
string originalPath = ("https://azure_service_account.blob.core.windows.net/files/Files").Replace(startPath, ""); |
|
string originalPath = ("https://azure_service_account.blob.core.windows.net/files/Files/").Replace(startPath, ""); |