locked
Any tips on how to get exception details when debugging Azure Table Storage? RRS feed

  • Question

  • Whenever I get an exception when trying to communicate with Table Storage using TableServiceContext, I almost never get any usefull information. 

    When I inspect the exception I often get errors like "An error occurred while processing this request." and "One of the request inputs is not valid.". 

    This makes it quite hard to resolve errors.

    Any tips to how I get more meaning full exception details, when working with Table storage? 

    Sunday, November 28, 2010 5:28 PM

Answers

  • Hello,

    Start using Fiddler - web developer's best friend :) You can read a short intro here: http://blogs.staykov.net/2010/08/how-to-debug-your-application-http.html

    Fiddler can capture all and any HTTP traffic. You can use it even with local development storage. You just need to add aditional keyword in the connection string for your storage service, so it will look something like:

    UseDevelopmentStorage=true;DevelopmentStorageProxyUri=http://ipv4.fiddler

    Please note that "ipv4.fiddler" is DNS name that is automatically pushed to your system's local DNS (hosts file) when Fiddler is started, and is removed once fiddler exits. Also please note that if you add "DevelopmentStorageProxiUri" to the connection string and Fiddler is not running, your application will most likely fail to start.

    Hope this helps!

    • Marked as answer by Mog Liang Monday, December 6, 2010 8:43 AM
    Sunday, November 28, 2010 8:58 PM

All replies

  • Hello,

    Start using Fiddler - web developer's best friend :) You can read a short intro here: http://blogs.staykov.net/2010/08/how-to-debug-your-application-http.html

    Fiddler can capture all and any HTTP traffic. You can use it even with local development storage. You just need to add aditional keyword in the connection string for your storage service, so it will look something like:

    UseDevelopmentStorage=true;DevelopmentStorageProxyUri=http://ipv4.fiddler

    Please note that "ipv4.fiddler" is DNS name that is automatically pushed to your system's local DNS (hosts file) when Fiddler is started, and is removed once fiddler exits. Also please note that if you add "DevelopmentStorageProxiUri" to the connection string and Fiddler is not running, your application will most likely fail to start.

    Hope this helps!

    • Marked as answer by Mog Liang Monday, December 6, 2010 8:43 AM
    Sunday, November 28, 2010 8:58 PM
  • There are a couple of useful posts on Adam Sampson's blog. One repeats the Anton's information on using Fiddler. The other shows how to get additional SQL logging.
    Monday, November 29, 2010 2:34 AM
    Answerer