ASP.net creating a virtual directory to save files in Microsoft azure

Hi,
I have a web application developed with ASP.NET and hosted in Microsoft Azure.
I need to upload files in my web application.
How do I create a virtual directory.
Up until now, I have always worked with IIS and was using IIS virtual directories.
Thank you for your help.
AnneSKSAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lokesh B RDeveloperCommented:
Hi,

Steps to publish the web application to windows azure.

http://azure.microsoft.com/en-in/documentation/articles/web-sites-dotnet-get-started/
0
AnneSKSAuthor Commented:
Hi,
I have already successfully deployed my application in Azure.
Now the next step is to manage files uploaded by users.

Users are using my application to upload files, photos... For instance, I have a Telerik editor, and they can upload a photo to display in the editor.
To do so I need a virtual directory where the file will be stored. (Or that's how I did it when I was using IIS)

I have created a storage account in Azure. I suppose this is the first step. now how do I reference this storage in my web application.

Thanks
0
Lokesh B RDeveloperCommented:
Hi,

Why do you need a virtual directory?

instead you can create a folder int he application and give the necessary permissions to that.
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

AnneSKSAuthor Commented:
OK, so maybe it's a problem of permission then. What permission do I need to have, and how do I give permission once it's in Azure?
0
AnneSKSAuthor Commented:
I saved my files and photos in a folder in my application called: APP_Data/Documents & APP_Data/Images.
I've downloaded the files from the server, and they have been saved on the folders.
However when I click on the file, this is the error message I get:

Azure-Error.PNG
0
Lokesh B RDeveloperCommented:
Hi,

You need to keep this fodler outside the App_Data.

Root of the application - > Documents
Root of the application - > Images
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AnneSKSAuthor Commented:
Great. This is working.
However, I have 2 questions:
- The first one is, what is App_Data for, if it is not to store data?

- The second is, how can I store them outside the application folders. As it does not seem to be the best solution to store within the application folder.

Thank you
0
Lokesh B RDeveloperCommented:
Hi,

App_Data - Contains application data files including .mdf database files, XML files, and other data store files. The App_Data folder is used by ASP.NET to store an application's local database, such as the database for maintaining membership and role information.

https://msdn.microsoft.com/en-us/library/ex526337%28v=vs.140%29.aspx?f=255&MSPPError=-2147217396


You need to store documents, images, css files and js files outside the App_Data in other folders.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.