locked
Local Storage: What is the difference between storing in a local resource and on application path AppDomain.CurrentDomain.BaseDirectory RRS feed

  • Question

  • Hi there

    for me both storage methods seem to be the same, just different pathes are applied on a running instance. Do I miss a point here?

    Thanks!

    Saturday, April 16, 2011 3:47 PM

Answers

  • I think the point is that Windows Azure provides a formal mechanism, through local storage, for you to have read-write access to the local file system. I'm not sure you even have write permission to the other disks without running the role as an elevated user - which you don't need to do to use local storage. Furthermore, local storage will survive a re-image as long as the instance doesn't move while other locations will not.

    I think it simply a best practice to use the platform-provided method for local storage.

    • Marked as answer by Marc Loeb Monday, April 18, 2011 7:09 AM
    Saturday, April 16, 2011 7:03 PM
    Answerer

All replies

  • I think the point is that Windows Azure provides a formal mechanism, through local storage, for you to have read-write access to the local file system. I'm not sure you even have write permission to the other disks without running the role as an elevated user - which you don't need to do to use local storage. Furthermore, local storage will survive a re-image as long as the instance doesn't move while other locations will not.

    I think it simply a best practice to use the platform-provided method for local storage.

    • Marked as answer by Marc Loeb Monday, April 18, 2011 7:09 AM
    Saturday, April 16, 2011 7:03 PM
    Answerer
  • Thank you Neil.
    Monday, April 18, 2011 7:10 AM