Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8497427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:07:23+00:00 2026-06-11T00:07:23+00:00

A bad Azure connection string will hang my application indefinitely the first time I

  • 0

A bad Azure connection string will hang my application indefinitely the first time I contact azure; in my case during blobContainer.CreateIfNotExist();.

Other SO posts about connectivity checking mentioned setting timeouts, but it still hangs indefinitely with a 2s timeout: blobContainer.CreateIfNotExist(new BlobRequestOptions() { Timeout = new TimeSpan(0, 0, 2) });

What’s the correct way to check if an Azure connection string is valid?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:07:24+00:00Added an answer on June 11, 2026 at 12:07 am

    I thought the default retry policy only made three attempts?

    In any case, assuming the retry policy is to blame for the lengthy hang, you could probably just disable retries altogether. You’d still want to make sure you actually got a response from the server before concluding that the connection string was invalid. (A network error could cause the failure, and with retries turned off, this kind of thing is more likely.)

    Code would be something like the following (completely untested, not even sure it will compile):

    container.CreateIfNotExists(new BlobRequestOptions {
        RetryPolicy = RetryPolicies.NoRetry });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF application hosted as a webrole in Azure with the following
First : Appologize for my bad english. Sorry for this newbie software question, but
I'm having a bad couple of days for odd behaviour. I have a std::string
Bad wording on the question, sorry about that. Will try to explain what I'm
We have an ASP.Net MVC3 application that is running on Azure, connecting to a
Trying to migrate a web application to be used on Azure. The application works
How bad is something like: public class Test { private string pKey = null;
I'm trying to create a web service using Azure. For the time being, everything
I have a Windows Azure hosted MVC3 application. In the Application_Start, I call all
I am trying to access my blog storage on Windows Azure but every time

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.