Accessing Local Storage in azure

岁酱吖の 提交于 2019-12-12 00:28:47

问题


I have a website in azure which I want to create pdfs from templates. I need some where to store the pdf while I'm creating it. After some searching round I thought the best way to handle this would be through Local Storage. I added a Windows azure cloud service project to my web app. I then added local storage to the role for my web app. Locally I can now create pdfs from templates and store them in blob storage. However when I publish the app to azure it no longer works. I thought I might need to create a cloud service in azure from my local cloud service project so created a package to do this. The cloud service is now running but I still can't access local storage.

The line:

Dim myReportsStorage As LocalResource = RoleEnvironment.GetLocalResource("myReports")

works locally but fails when I publish the website to azure. I'm not sure if I somehow need to link my website and my cloud service in azure but I can't see how to do this.

If anyone can help with this I would be very grateful.

来源:https://stackoverflow.com/questions/11675343/accessing-local-storage-in-azure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!