Intermittent connection issues: The underlying provider failed on Open

We are experiencing this error from Azure Compute to SQL Azure intermittently over the last couple of days (SE Asia).
We have several applications in the same configurations and many of them exhibit this error for a period of time (some around 15 minutes).
I checked the Azure status board and there is one warning about Networking but it is informational only. The Azure portal shows 0 failed connections on the database monitor and the connection numbers aren't massive (highest is 240).
Is there another issue going on that's not on the status board (or is that networking issue worse than specified)?
The application hasn't experienced this issue until the last couple of days so we don't believe it's a bug.
Details:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider:
TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)

Hello,
SQL Database connection can fail for various reasons – a malformed query, network issues, and so on. Some errors are transient or intermittent. The general best practices to prevent connection-losses is to re-establish the connection and then re-execute
the failed commands or the query. For example,  You can try to apply retry logic for SQL Server  in your application.
Reference:
Retry Logic for Transient Failures in Windows Azure SQL Database
Windows Azure SQL Database Connection Management
Regards,
Fanny Liu
If you have any feedback on our support, please click here.
Fanny Liu
TechNet Community Support

Similar Messages

  • Getting Error: The underlying provider failed on Open

    Hi there,
    I am getting above error while executing below code, though it is working fine on another machine. please help me out
    log.ActionId = (from x in context.ActionLookUps
    where x.ActionDescription == actionMessage
    select x).First().ActionId;
    context.UserLogs.Add(log);

    Hi,
    This exception gets thrown when something goes wrong connecting to the database. The inner exception should have details about why the connection failed if you check that then it should tell you what is happening.
    Since this is working on other machines it is likely something to do with the permissions of the user executing the code or something to do with that specific machine communicating with the database.
    If you let us know what the inner exception is then we can probably provide more info.
    We are seeing a lot of great Entity Framework questions (and answers) from the community on Stack Overflow. As a result, our team is going to spend more time reading and answering questions posted on Stack Overflow. We would encourage you to post questions
    on Stack Overflow using the entity-framework tag. We will also continue to monitor the Entity Framework forum.

  • The underlying provider failed on open

    Hi all,
    I use the following Save method for the context so that I first insert the entities so that I have their identity column, then save the audit log for them.
    public int Save()
    int recordsUpdated = 0;
    List<History> historyList = new List<History>();
    this.DetectChanges();
    IEnumerable<ObjectStateEntry> list = this.ObjectStateManager.GetObjectStateEntries(EntityState.Added | EntityState.Deleted | EntityState.Modified);
    foreach (var ent in list)
    if (!ent.IsRelationship && ent.Entity != null && !(ent.Entity is History))
    historyList.Add(new History(ent));
    DbConnection conn = ((EntityConnection)this.Connection).StoreConnection;
    ConnectionState initialState = conn.State;
    try
    //Open connection if not already open
    if (initialState != ConnectionState.Open)
    conn.Open();
    using (var scope = new TransactionScope())
    recordsUpdated = this.SaveChanges();
    if (historyList.Count > 0)
    foreach (var history in historyList)
    history.SetDetails();
    this.Histories.AddObject(history);
    this.SaveChanges();
    catch (Exception ex)
    System.Diagnostics.Debug.WriteLine(ex);
    finally
    //Only close connection if not initially open
    if (initialState != ConnectionState.Open)
    conn.Close();
    return recordsUpdated;
    The first thing to notice is that the connection is closed that's why I'm opening it.
    First problem:
    When updating an existing record and I reach the second call to SaveChanges, I get the above exception.
    Second problem:
    When inserting an new record I get the following exception:
    "An error occurred while updating the entries. See the inner exception for details."}
        [System.Data.UpdateException]: {"An error occurred while updating the entries. See the inner exception for details."}
        Data: {System.Collections.ListDictionaryInternal}
        HelpLink: null
        HResult: -2146233087
        InnerException: {"The member with identity '' does not exist in the metadata collection.\r\nParameter name: identity"}
        Message: "An error occurred while updating the entries. See the inner exception for details."
        Source: "System.Data.Entity"
        StackTrace: "   at System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter)\r\n   at System.Data.EntityClient.EntityAdapter.Update(IEntityStateManager entityCache)\r\n  
    at System.Data.Objects.ObjectContext.SaveChanges(SaveOptions options)\r\n   at System.Data.Objects.ObjectContext.SaveChanges()\r\n   at AboServer.AboSystem5DB.Save() in C:\\Development\\dotNET\\ABOSystem5\\Server\\Common\\AboSystem5DB.cs:line
    136"
        TargetSite: {Int32 Update(System.Data.IEntityStateManager, System.Data.IEntityAdapter)}
    Need help!!

    Couple of things:
    1) When using Entity Framework, you do not need to explicitly open the connection.  This statement should do it for you.  Not only does it open the connection it also closes it when going out of scope of the USING verb.
    using (var scope = new TransactionScope())
    2) This part of the stack trace---> System.Data.Mapping.Update.Internal.UpdateTranslator.Update
        Tells me that something is wrong with Mapping.  I personally do not manually attempt to map anything when using EF because it appeared to be complex and required a lot of study of which I didn't have the time.  So...I always
    allow EF to create the tables and mappings and it works everytime.
    I'd suggest removing the explicit open code and fall back to the Using statement only.  I'd also suggest recreating your table model using EF's wizard which forces you to do the connection string and then to pick the proper tables.  It knows how
    to map everything and does a great job of it.
    JP Cowboy Coders Unite!

  • The underlying provider failed on Commit.

    Hello,
    I am having a problem with commit.
    Here is the code where program stuck.
    using (var transaction = DataEngine.Context.Database.BeginTransaction(IsolationLevel.ReadCommitted))
    try
    var createResult = DataEngine.Context.Customer_Modify(BusinessID, cutomerName,usermodified);
    Logger.LogTrace(createResult.ToString());
    await DataEngine.Context.SaveChangesAsync();
    transaction.Commit();
    catch (Exception ex)
    Logger.LogTrace(ex.Message);
    // Attempt a rollback
    try
    transaction.Rollback();
    catch (Exception nex)
    Logger.LogTrace(nex.Message);
    throw;
    throw;
    After running the above code, I check the variable query and found an exception
    The underlying provider failed on Open.
    I've checked:
    Connection between server and computer is normal
    I can login to the database with username and password 
    I have checked the security settings in database (SQL Server) that permission has been granted .
    I can able to 'Insert' records but not 'Update'
    Why does this exception happen? I'm using .net 4.5
    Thanks

    Hi SamKri,
    You could try to enabling "Allow Remote Clients" in DTC config.
    You could open the DTC config by running dcomcnfg, Component Services -> Computers -> My Computer -> Distributed Transaction Coordinator -> Right click to  Local DTC -> Security.
    If this is still not working, the issue may be caused by the connectionString, you could share the connectionString with us, we could help you better.
    Regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Underlying provider failed to open

    Hi all,
    I published my web site to windows azure cloud service and successfully opened.
    But my problem after about 8 hours without any request to my site I got an exception (The Underlying provider failed to open)
    Thanks,
    Khalil 

    Hi,
    From my experience, this error may be caused by incorrect connection string, I suggest you check it, then try to redeploy to cloud service again.
    In addition, Azure service dashboard report a service interrupt on SQL Azure, please try later when this service run as normal. see at:
    http://azure.microsoft.com/en-us/support/service-dashboard/
    Best Regards
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • RV320 Intermittent connectivity issues

    We have been having intermittent problems with internet (WAN) connectivity on my wife's small business computer network.  Connectivity will be fine for a day or so, and then we will have a period of poor and frequently interrupted connectivity.  I have our router (a Cisco RV320K9NA) set to send me notifications about problems, and when our internet connection is disrupted, I receive the following notifications from the router:
    Mar 28 07:31:11 2015 routeree1df4 Network Log:  NSD FAIL WAN[1]
    Mar 28 07:32:11 2015 routeree1df4 Network Log:  NSD SUCCESS WAN[1]
    Mar 28 07:36:05 2015 routeree1df4 Network Log:  NSD FAIL WAN[1]
    Mar 28 07:39:08 2015 routeree1df4 Network Log:  NSD SUCCESS WAN[1]
    Mar 28 07:39:48 2015 routeree1df4 Network Log:  NSD FAIL WAN[1]
    Mar 28 07:40:58 2015 routeree1df4 Network Log:  NSD SUCCESS WAN[1]
    The above is a sample, there are many more notifications of this type in the log.
    Our network configuration is as follows:
    Our internet provider's cable modem is connected to our router, which is connected to a Netgear ProSafe 24 port switch.  All of our network devices and computers are connected to the switch.
    We have tried many things to fix this problem.  Our internet provider (Time Warner) has replaced their cable modem. We have replaced our router.  My wife increased the speed of our network connection based on usage data from the internet provider. I have replaced the ethernet cable between the router and the cable modem.
    We have not been able to reproduce the connectivity problem when we directly connect a laptop to the cable modem, so the internet provider has decided that the issue must be internal to our network and/or router, washing their hands of the whole problem.
    I'm technically proficient, but I'm no networking technician, so I'm looking for help and suggestions to fix this problem.  Thanks in advance for any suggestions that you can offer.

    No, it was wireless. Here is the same test run whilst wired in. I don't understand this though. I wasn't complaining about the speed? I was complaining about the general intermittent connectivity issues we experience, and the regular lack of availability the service provides. Perhaps these are standard tests you have to run beforehand?
    The last time I complained about my connectivity issues was in February. If you have access to the ticketing tool, you'll be able to see the nature of my complaint. It was ticket number: VOL051-4263008159178. Something was "done at the exchange" and someone logged onto my HH3 and changed the wireless channel and that "fixed" it. Trouble is, it's been the same ever since. We have a few hours where the connection is stable, then we'll start to get packet losses when trying to connect to sites like Google.co.uk, Bt.com etc etc.
    I'm no expert, but this is clearly more than an issue with the wireless channel and some spurious problem at the exchange. This is a continuing nightmare for us which is preventing us from accessing the internet for hours at a time and therefore taking full advantage of the services we pay a lot of money for!

  • Error Message: The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version. The request failed with HTTP status 404: Not Found.

    I have a web page that contains a ReportViewer control.  I am trying to display a report, which is an .rdl file located on the SSRS server, in this ReportViewer control.  I have set the ReportPath and ReportServerUrl correctly.  I am
    getting an error message.
    Am I suppose to use an .rdlc file rather than a .rdl file?  Does the web server configuration need to use a certain account?
     I am getting the following error message:
    The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version.
    The request failed with HTTP status 404: Not Found.

    Hi bucaroov,
    The error "The request failed with HTTP status 404: Not Found." means the ReportServerURL configured in the ReportViewer control is invalid.
    Please follow these steps to solve the issue:
    Logon the Report Server machine.
    Open the Reporting Services Configuration Manager.
    Copy the Report Server URL from 'Web Services URL'.
    Logon the application server(in this case, it is the server that host the web page), check if we can use the URL we got from step 3 to access the Report Server. If so, please replace the ReportServerURL in the ReportViewer control with this URL. If it is
    not available, could you please post the error message.
    Additionaly, we don't need to provide the extension for a server report. The ReportPath should be like: /<reports folder>/<report name>
    For more information, please see:
    Walkthrough: Using the ReportViewer Control in Remote Mode:
    http://msdn.microsoft.com/en-us/library/ms251669(VS.80).aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Jin Chen
    Jin Chen - MSFT

  • Connection to shared services provider failed

    I am using:
    Hyperion Planning 11.1.2.2
    smart view 11.1.2.2.310
    Microsoft Office 2010
    Windows 8
    When trying to connect from Excel with SmartView, i have the error, "Connection to shared services provider failed. The provider running at... is not a valid Shared Server provider."
    I had test to connect in other PC and it works fine. Besides, i tried to connect to 2 servers (Development ande Production) and the same error is shown.
    I had uninstall and install SmartView and nothing changed. I tried Smart View11125000 and the same error is shown.
    Somebody know about this issue? or can help me??
    Regards!!
    Natalia

    What happens if you use a browser and type the shared connection url in it?
    Did you try connecting using a private connection?
    Regards
    Celvin
    http://www.orahyplabs.com

  • For those of you having intermittent connection to the internet

    If you have a linksys router and having intermittent connection to the internet, here's how.
    Be sure to have a LAN cable plug into your router and macbook.
    (This is very important if you do not want to get disconnected from the router)
    1) Navigate to http://192.168.1.1
    2) Go to the Wireless tab, under the Advance Wireless Settings tab, change the beacon interval to 50, RTS to 2304 and Fragmention to 2305, save the settings.
    3) When you login into your router page, it first direct you to the setup page, look under MTU, set it to 1300. save it.
    Note that if you are still having intermittent connection to the internet, another alternative is setting your MTU to 1365.
    That's it, 3 easy steps to get you freed from the frustration.
    Cheers for all those having the same problem like me solved.

    Hi,
    I dunno if this will help any of you, but here it comes:
    I purchased the Airport 'N' enabler just a week before I upgraded to OSX 10.4.10. And - of course - after the OS update I had the similar issue with dropping Wifi connections and very slow speed, although (*Touch Wood*) I didn't have any Kernel Panics.
    After updating to OS 10.4.10, System Profiler and Network Utility showed that I had the 'n' enabled, but the speed and (lack of) stability of the Wifi connection can only be described as 'Hair-ripping'.
    Anyway, after reading through all the threads/topics of all you poor sods with similar problems and utilising somewhat 'hairy' workarounds with varying results, I realized that nobody acually tried to re-install the 'N'-enabler again; at least as far as I recall..
    So, I simply installed the 'N'-enabler again AFTER updating to 10.4.10 !!! I was kind of expecting the installer to prompt me, saying that "this computer already has Airport Extreme 'N'-enabler installed" blah-blah.., but it didn't.
    And now I have a very stable connection and MUCH faster download speeds as well !
    So those of you who hasn't tried this yet, please do. It might work for you as well ... !!
    Just me 2 cents

  • A connection to the server has failed

    Hi all,
    I am getting this javascript pop up error ("A connection to the server has failed") in SOA 11g enterprise manager console. When i provide input to the BPEL process and click Test Web Service i get this message.
    Can anyone throw some pointers on this?
    Thanks in advance

    But in my input payload i have five inputs. When i provide all the five i dont see any error. But when i provide only one input this error pops up. But any one of the input is enough to trigger the process.
    Do you see an issue in this? No, I don't think this will cause a server connection issue. Can you check server logs and paste any error information you find there, here in this thread.
    Regards,
    Anuj

  • I was having issues with firefox so I upgraded to firefox 4. I am connected to the internet but when I open firefox or even internet explorer it says Unable to connect problem loading page. Nothing will pull up!!! No help link or anything!!?

    I was having issues with firefox so I upgraded to firefox 4. I am connected to the internet but when I open firefox or even internet explorer it says Unable to connect problem loading page. Nothing will pull up!!!

    I don't know if you are still having the issue but if you are have you contacted your ISP? It sounds to me like it's more of a connectivity issue than a browser problem. I've dealt with similar things several times and in both cases it was something with the modem or an ISP setting.
    I'm also wondering if it could be a Wi-Fi issue. Can you log in to your router? (It varies by brand but you would go to a site such as http://192.168.10.1. That is for Trendnet. The information for yours should be in the documentation that came with it.)
    You should be able to get the router log in page to come up even if you can't connect to any websites. (Provided the network is set up correctly.)
    I also would double check your connection settings (if you're connecting over Wi-Fi) or your ethernet connection. (If you're connected directly to the modem and router.)
    Hopefully one of these suggestions will be helpful.

  • Internet Explorer:A Connection to the server has failed (status=12152)

    I am getting "A Connection to the server has failed (status=12152)" error in my adf application when using Internet Explorer. The application is deployed on a hosted server with SSL.
    This seems to happen randomly. After clicking on "OK" and the action is correctly performed again. I don't have this issue in Firefox.
    There are no error messages in the server logs.
    Can you please let me know how to fix this issue.
    ADF:11.1.1.6
    WLS: 10.3
    Thanks
    Shobana

    Hi,
    I am experiencing the same problem.
    Can anyone help?
    Thanks.

  • Intermittent connectivity issues

    So I had a Motorola SB 6120 modem working for over 4 years with Comcast and all of the sudden I start getting intermittent connectivity issues at night (it could be during the day as well, but I am actively working and doing school work at night). The issue comes and goes. I call Comcast and they swear up and down its my modem - which I dont believe since Im the connectivity issues are not fixed by resseting it, just waiting it out. I go ahead and get a new modem (SB6141) and router - spending over $200 and guess what - still having the identical issue. I call in and the support person states that as far as the modem goes everything is fine but the signal is dropping (same issue, two different conclusions after a good amount of arguing on my end and $200 I wont see back). So I tech comes back but I have to be at work and leave my wife and brother in law at home to make sure he comes by. When I get home apparently the tech had stated that "the modem was not correctly registered". That means that my other modem wasnt? And that an uncorrectly registered modem works from time to time? ... Really? So I try to do a live chat since again, I have to work and cant waste my entire day waititing for comcast to fess up and admit their service is the issue. And here is the part of the conversation in which I basically gave up hope on getting anywhere:Akemi: Sometimes if your modem is plugged to Comcast outlet you should be also receiving inetrnet signals, but then becasue if it is not properly registered you will be expriencing intermittent connection.----------------------------------------------------------MARCOS: ok, let me see if i can get itMARCOS: meanwhile, can u tell me how my modem may have been "incorrectly registered" and still working for over 30 daysAkemi: Much appreciated, thank you so much.MARCOS: and how that can be the cause of intermittent issues - since it seems like a lieAkemi: Sometimes if your modem is plugged to Comcast outlet you should be also receiving inetrnet signals, but then becasue if it is not properly registered you will be expriencing intermittent connection.MARCOS: that makes no sense. that modem was not working WHATSOEVER until I called. the modem shouold have been blocked by the MAC addressMARCOS: should*MARCOS: otherwise any1 can get comcast tv, plug in a router from best buy and have internetAkemi: Thanks for the info.---------------------------------------------------------Can someone help? Am I missing something? 

    Start here: http://forums.xfinity.com/t5/Basic-Internet-Connectivity-And/Connection-Troubleshooting-Tips/m-p/1253575#U1253575

  • While Opening HFM application getting Error : "A connection to the server has failed. (status=503)"

    Hi All,
    While Opening HFM application I'm getting Error : "A connection to the server has failed. (status=503)".
    I Checked the Doc ID 1516598.1 and tried to increase the timeout setting, which really didn't help.
    Where can check a log for this connection issue, not able to see any error in Starter or HFM server logs.
    Please help me to fix this issue.
    Server: Windows 2008 R2
    EPM Application: 11.1.2.2
    Database: Oracle 11g
    Regards,
    Rajeevan D

    Hi!!
         I am facing the same issue and have increased the timeout setting according to the Doc ID 1516598.1.
         When I open up the app, it takes more than 5 minutes but it just get little longer and I've got the error....
         My HFM is at 11.1.2.2.300 version.
    Server: Windows 2008 R2
    EPM Application: 11.1.2.2
    Database: Oracle 11g
    Thanks

  • Why "A connection to the server has failed."?

    I am facing an issue getting "A connection to the server has failed." when deployed in web logic but not in IDE.
    In my case I am using JDev 11.1.1.3.0, I insert many records (say 50,000 or heigher) at once and also update another table same time before calling "Commit" operation in the bean.
    I have AM locking mode "optimistic".
    The error does not come with small amount (say 1000) of inserts.
    I use AMImpl methods to insert using createRow() and insertRow() methods.
    Can anyone please tell me why this error comes and how to resolve?
    Thanks

    John is talking here also about this problem. I believe there are Oracle PMs in the forum who knows this issue? Can anyone please help?
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=2168715&tstart=0&messageID=9347290
    John Stegeman wrote:
    If you need assistance from Oracle on this - the most reliable and appropriate place to go is https://support.oracle.com The Forums here are good - but if none of the community has seen the error before and the few Oracle PMs don't know the answer, you'll not get much of a response, unfortunately - but that's how community forums work.
    I've never seen the error before personally.
    Best,
    JohnEdited by: PR on Jul 29, 2011 1:32 AM

Maybe you are looking for

  • Songs in iPod App Open and Then Very Quickly Close - What's wrong?

    This just started like a phantom disease.  The only thing I've done recently was download some movie rentals.  After that (coincidence or not), I've not been able to play any music in my library.  Any play list, any song.  Touch it, it opens and then

  • Calling stored procedure in beforeCommit() cause pending transaction

    Hi all, In our application (BC+ Faces, 10.1.3.3), in beforeCommit() method of the entities, we call pl/sql stored proc to do complex update. It does the following : 1) Update currently "just inserted"-committed row 2) Update other table to increment

  • Disabling tethering on the iMac

    I use the Remote Desktop App from Microsoft on the iMac but whenever I connect a iPad or iPhone it kicks me off the RDP connection saying a different device has connected you will be disconnected. I know its to do with tethering when a device is plug

  • Rounding float value to nearest 0.05

    Hi, can you tell me if there is a convenient way to round off a float ot double to nearest 0.05. Example: 18.93 -->18.95 and 18.92 --> 18.90

  • How to execute the MI34 t.code - Batch input: Enter count

    Hi 1. How to use the transaction MI34 ? 2. What are the pre-requisties i should do that ? 3. How should i upload the inventory count file and where should i do that. Pls give me a step-by-step procedure Thanks Kumar