Installing Mavericks produced "a connection error occurred" in Mail and "connection failed" in App Store

Dear Apple Support Community!
I installed Mavericks OS X on my iMac immediately after it was released. I was soon starting to experience trouble with logging in to Mail and App Store. After contacting Apple Support and trying various tips and tricks to no avail, like re-installing Mavericks for instance, I just decided to wait for an update of the OS X to see if that would solve my problems. Unfortunately, that didn't help either.
I therefore turn to the Apple Support Communities in hope of expert help that will solve my problems.
Here are the actions that result in error messages:
Mail > Choose a mail account to add > Google > Continue > Name/Email Address/Password > Set Up > A connection error occurred.
App Store > Sign In > Apple ID/Password > Sign In > Connection failed.
I have three accounts on my computer:
System Administrator, Guest Account and Other.
I use the “Other” account as my regular account. When I log in to the System Administrator or Guest Account I don’t experience any problems; Mail and App Store work as they should.
Booting in safe mode does not solve the problem:
I disconnected all wired peripherals except those needed for the test, and removed all aftermarket expansion cards. I booted in safe mode and logged in to the account with the problem.
I tested the said actions while in safe mode. The problems were the same.
After testing, I rebooted as usual (i.e., not in safe mode) and verified that I still had the problems.
Info about my Mac:
iMac
24-inch Mid 2007
Processor  2,8 GHz Intel Core 2 Duo
Memory  4 GB 667 MHz DDR2 SDRAM
Graphics  ATI Radeon HD 2600 Pro 256 MB
Serial Number  xxxxxxxxxxx
Software  OS X 10.9.1 (13B42)
Console System Logs
Console log – All Messages
Action:
Mail > Choose a mail account to add > Google > Continue > Name/Email Address/Password > Set Up > A connection error occurred.
02.02.14 12:41:38,030 SafariNotificationAgent[43964]: Error calling realpath on the home directory.
02.02.14 12:41:38,032 com.apple.launchd.peruser.0[166]: (com.apple.SafariNotificationAgent[43964]) Exited with code: 1
02.02.14 12:41:38,032 com.apple.launchd.peruser.0[166]: (com.apple.SafariNotificationAgent) Throttling respawn: Will start in 10 seconds
02.02.14 12:41:38,231 com.apple.internetaccounts[66431]: +[IAGoogleAuthTokenManager keychainEntryForUserName:] [359] -- Failed to fetch keychain item for "xxxxxx@xxxxxx" (code -67674)
02.02.14 12:41:38,234 com.apple.internetaccounts[66431]: +[IAGoogleAuthTokenManager setKeychainEntry:ForUserName:] [380] -- *** Failed to store token in keychain for "xxxxxx@xxxxxx" (code -67674)
02.02.14 12:41:38,263 sandboxd[91]: ([66431]) com.apple.intern(66431) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,270 sandboxd[91]: ([66431]) com.apple.intern(66431) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,282 sandboxd[91]: ([43640]) Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,291 sandboxd[91]: ([43640]) Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,300 sandboxd[91]: ([43640]) Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,309 sandboxd[91]: ([43640]) Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,318 sandboxd[91]: ([43640]) Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,000 kernel[0]: Sandbox: Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,352 Mail[43640]: CFNetwork SSLHandshake failed (-67674)
02.02.14 12:41:38,000 kernel[0]: Sandbox: Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,000 kernel[0]: Sandbox: Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,000 kernel[0]: Sandbox: Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,000 kernel[0]: Sandbox: Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,000 kernel[0]: Sandbox: Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,000 kernel[0]: Sandbox: Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,000 kernel[0]: Sandbox: Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,426 Mail[43640]: CFNetwork SSLHandshake failed (-67674)
02.02.14 12:41:38,000 kernel[0]: Sandbox: Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,000 kernel[0]: Sandbox: Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,000 kernel[0]: Sandbox: Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,000 kernel[0]: Sandbox: Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,000 kernel[0]: Sandbox: Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,430 sandboxd[91]: ([43640]) Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,000 kernel[0]: Sandbox: Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,000 kernel[0]: Sandbox: Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:41:38,497 Mail[43640]: CFNetwork SSLHandshake failed (-67674)
02.02.14 12:41:38,498 Mail[43640]: NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -67674)
02.02.14 12:41:38,498 Mail[43640]: -[IAAccountAuthenticator connection:didFailWithError:] [172] -- *** error: Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo=0x6000001b36a0 {NSURLErrorFailingURLPeerTrustErrorKey=<SecTrust 0x7fdf23579d20 [0x7fff75b66eb0]>, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, NSUnderlyingError=0x60000084b220 "An SSL error has occurred and a secure connection to the server cannot be made.", NSErrorPeerCertificateChainKey=(
    "<SecCertificate 0x7fdf2357bf90 [0x7fff75b66eb0]>",
    "<SecCertificate 0x7fdf23579ae0 [0x7fff75b66eb0]>",
    "<SecCertificate 0x7fdf23578e00 [0x7fff75b66eb0]>"
), NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey=https://www.google.com/accounts/ClientLogin, NSErrorFailingURLStringKey=https://www.google.com/accounts/ClientLogin, NSErrorClientCertificateStateKey=0}
Full report of the following incident:
02.02.14 12:41:38,270 sandboxd[91]: ([66431]) com.apple.intern(66431) deny file-write-data /private/var/db/mds/system/mds.lock
com.apple.intern(66431) deny file-write-data /private/var/db/mds/system/mds.lock
Process:         com.apple.intern [66431]
Path:            /System/Library/PrivateFrameworks/InternetAccounts.framework/Versions/A/XPCServ ices/com.apple.internetaccounts.xpc/Contents/MacOS/com.apple.internetaccounts
Load Address:    0x101a8b000
Identifier:      com.apple.internetaccounts
Version:         1 (1.0)
Build Info:      1-InternetAccountsFramework_executables~192000000000000
Code Type:       x86_64 (Native)
Parent Process:  launchd [1]
Date/Time:       2014-02-02 12:41:38.232 +0100
OS Version:      Mac OS X 10.9.1 (13B42)
Report Version:  8
Thread 0:
0   libsystem_kernel.dylib                  0x00007fff888ce5da __open + 10
1   Security                                0x00007fff8573d2af Security::MDSSession::updateDataBases() + 693
2   Security                                0x00007fff8578feef Security::MDSSession::DbOpen(char const*, cssm_net_address const*, unsigned int, Security::AccessCredentials const*, void const*, long&) + 145
3   Security                                0x00007fff8578fde3 mds_DbOpen(long, char const*, cssm_net_address const*, unsigned int, cssm_access_credentials const*, void const*, long*) + 211
4   Security                                0x00007fff8573ccd7 Security::MDSClient::Directory::cdsa() const + 93
5   Security                                0x00007fff857f995b Security::MDSClient::Directory::dlGetFirst(cssm_query const&, cssm_db_record_attribute_data&, cssm_data*, cssm_db_unique_record*&) + 39
6   Security                                0x00007fff8573c7b2 Security::CssmClient::Table<Security::MDSClient::Common>::startQuery(Security:: CssmQuery const&, bool) + 234
7   Security                                0x00007fff85761ca5 Security::KeychainCore::DynamicDLDBList::_load() + 329
8   Security                                0x00007fff85761b29 Security::KeychainCore::DynamicDLDBList::searchList() + 29
9   Security                                0x00007fff8587b2b5 Security::KeychainCore::StorageManager::getSearchList(std::__1::vector<Security ::KeychainCore::Keychain, std::__1::allocator<Security::KeychainCore::Keychain> >&) + 163
10  Security                                0x00007fff8587da18 Security::KeychainCore::StorageManager::optionalSearchList(void const*, std::__1::vector<Security::KeychainCore::Keychain, std::__1::allocator<Security::KeychainCore::Keychain> >&) + 88
11  Security                                0x00007fff85754f5c SecKeychainSearchCreateFromAttributes + 142
12  Security                                0x00007fff858930a8 _CreateSecItemParamsFromDictionary(__CFDictionary const*, int*) + 3493
13  Security                                0x00007fff8588fca7 SecItemCopyMatching_osx(__CFDictionary const*, void const**) + 133
14  Security                                0x00007fff8588f95d SecItemCopyMatching + 390
15  InternetAccounts                        0x00007fff900ad7c5 +[IAGoogleAuthTokenManager keychainEntryForUserName:] + 215
16  InternetAccounts                        0x00007fff900ad604 +[IAGoogleAuthTokenManager googleTokenForEmailAddress:shouldCreateToken:] + 48
17  com.apple.internetaccounts              0x0000000101a95c83
18  CoreFoundation                          0x00007fff8c991dec __invoking___ + 140
19  CoreFoundation                          0x00007fff8c991c54 -[NSInvocation invoke] + 308
20  Foundation                              0x00007fff844b5af6 -[NSXPCConnection _decodeAndInvokeMessageWithData:] + 1469
21  Foundation                              0x00007fff844b26be message_handler + 381
22  libxpc.dylib                            0x00007fff90ef6510 _xpc_connection_call_event_handler + 58
23  libxpc.dylib                            0x00007fff90ef5123 _xpc_connection_mach_event + 2124
24  libdispatch.dylib                       0x00007fff86e1aafe _dispatch_client_callout4 + 9
25  libdispatch.dylib                       0x00007fff86e1b3b8 _dispatch_mach_msg_invoke + 143
26  libdispatch.dylib                       0x00007fff86e19633 _dispatch_queue_drain + 359
27  libdispatch.dylib                       0x00007fff86e1a69e _dispatch_mach_invoke + 154
28  libdispatch.dylib                       0x00007fff86e19633 _dispatch_queue_drain + 359
29  libdispatch.dylib                       0x00007fff86e1a9dd _dispatch_queue_invoke + 110
30  libdispatch.dylib                       0x00007fff86e18fa3 _dispatch_root_queue_drain + 75
31  libdispatch.dylib                       0x00007fff86e1a193 _dispatch_worker_thread2 + 40
32  libsystem_pthread.dylib                 0x00007fff8c5ceef8 _pthread_wqthread + 314
33  libsystem_pthread.dylib                 0x00007fff8c5d1fb9 start_wqthread + 13
Binary Images:
       0x101a8b000 -        0x101a9efff  com.apple.internetaccounts (1.0 - 1) <fedaf54b-d9b6-3da1-b4bc-e2cef64a8491> /System/Library/PrivateFrameworks/InternetAccounts.framework/Versions/A/XPCServ ices/com.apple.internetaccounts.xpc/Contents/MacOS/com.apple.internetaccounts
    0x7fff8441b000 -     0x7fff8471afff  com.apple.Foundation (6.9 - 1056) <d608edfd-9634-3573-9b7e-081c7d085f7a> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff85738000 -     0x7fff85990ff1  com.apple.security (7.0 - 55471) <233831c5-c457-3ad5-afe7-e3e2de6929c9> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff86e16000 -     0x7fff86e30fff  libdispatch.dylib (339.1.9) <46878a5b-4248-3057-962c-6d4a235eef31> /usr/lib/system/libdispatch.dylib
    0x7fff888b9000 -     0x7fff888d5ff7  libsystem_kernel.dylib (2422.1.72) <d14913db-47f1-3591-8daf-d4b4ef5f8818> /usr/lib/system/libsystem_kernel.dylib
    0x7fff8c5cc000 -     0x7fff8c5d3ff7  libsystem_pthread.dylib (53.1.4) <ab498556-b555-310e-9041-f67ec9e00e2c> /usr/lib/system/libsystem_pthread.dylib
    0x7fff8c958000 -     0x7fff8cb3dff7  com.apple.CoreFoundation (6.9 - 855.11) <e22c6a1f-8996-349c-905e-96c3bbe07c2f> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff90096000 -     0x7fff900e5ff7  com.apple.framework.internetaccounts (2.1 - 210) <c77069c7-928c-315c-aa61-d90543901f20> /System/Library/PrivateFrameworks/InternetAccounts.framework/Versions/A/Interne tAccounts
    0x7fff90eeb000 -     0x7fff90f0ffff  libxpc.dylib (300.1.17) <4554927a-9467-365c-91f1-5a116989dd7f> /usr/lib/system/libxpc.dylib
Full report of the following incident:
02.02.14 12:41:38,282 sandboxd[91]: ([43640]) Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
Mail(43640) deny file-write-data /private/var/db/mds/system/mds.lock
Process:         Mail [43640]
Path:            /Applications/Mail.app/Contents/MacOS/Mail
Load Address:    0x10c586000
Identifier:      com.apple.mail
Version:         1827 (7.1)
Build Info:      5-Mail~1827000000000000
Code Type:       x86_64 (Native)
Parent Process:  launchd [166]
Date/Time:       2014-02-02 12:41:38.276 +0100
OS Version:      Mac OS X 10.9.1 (13B42)
Report Version:  8
Thread 0:
0   libsystem_kernel.dylib                  0x00007fff888ce5da __open + 10
1   Security                                0x00007fff8573d2af Security::MDSSession::updateDataBases() + 693
2   Security                                0x00007fff8578feef Security::MDSSession::DbOpen(char const*, cssm_net_address const*, unsigned int, Security::AccessCredentials const*, void const*, long&) + 145
3   Security                                0x00007fff8578fde3 mds_DbOpen(long, char const*, cssm_net_address const*, unsigned int, cssm_access_credentials const*, void const*, long*) + 211
4   Security                                0x00007fff8573ccd7 Security::MDSClient::Directory::cdsa() const + 93
5   Security                                0x00007fff857f995b Security::MDSClient::Directory::dlGetFirst(cssm_query const&, cssm_db_record_attribute_data&, cssm_data*, cssm_db_unique_record*&) + 39
6   Security                                0x00007fff8573c7b2 Security::CssmClient::Table<Security::MDSClient::Common>::startQuery(Security:: CssmQuery const&, bool) + 234
7   Security                                0x00007fff85761ca5 Security::KeychainCore::DynamicDLDBList::_load() + 329
8   Security                                0x00007fff85761b29 Security::KeychainCore::DynamicDLDBList::searchList() + 29
9   Security                                0x00007fff8587b2b5 Security::KeychainCore::StorageManager::getSearchList(std::__1::vector<Security ::KeychainCore::Keychain, std::__1::allocator<Security::KeychainCore::Keychain> >&) + 163
10  Security                                0x00007fff85787bc2 SecIdentityCopyPreference + 319
11  CFNetwork                               0x00007fff87b4f3e5 HTTPProtocolSSLSupport::getSSLCertsCached(__CFString const*) + 235
12  CFNetwork                               0x00007fff87b4f073 HTTPProtocol::setupSSLPropertiesOnStream(_CFURLRequest const*) + 363
13  CFNetwork                               0x00007fff87b3c234 HTTPProtocol::openStream() + 80
14  CFNetwork                               0x00007fff87b3b67a HTTPProtocol::useNetConnectionForRequest(NetConnection*, __CFHTTPMessage*, unsigned char) + 1750
15  CFNetwork                               0x00007fff87b3aeae HTTPConnectionCacheEntry::dispatchConnectionToProtocol(NetConnection*, HTTPProtocol*, HTTPRequestMessage*, unsigned char) + 276
16  CFNetwork                               0x00007fff87b3ac6d HTTPConnectionCacheEntry::notifyNextProtocolOfOpenConnection(NetConnection*, unsigned char) + 301
17  CFNetwork                               0x00007fff87b37fcf HTTPConnectionCacheEntry::enqueueRequestForProtocol(HTTPProtocol*, __CFHTTPMessage*) + 685
18  CFNetwork                               0x00007fff87b379cc HTTPConnectionCache::_onqueue_enqueueRequestForProtocol(HTTPProtocol*, __CFHTTPMessage*) + 178
19  CFNetwork                               0x00007fff87b378f1 ___ZN19HTTPConnectionCache25enqueueRequestForProtocolEP12HTTPProtocolP15__CFHTT PMessage_block_invoke + 26
20  CFNetwork                               0x00007fff87b2e3fc ___ZNK17CoreSchedulingSet13_performAsyncEPKcU13block_pointerFvvE_block_invoke + 25
21  CoreFoundation                          0x00007fff8c9a2e94 CFArrayApplyFunction + 68
22  CFNetwork                               0x00007fff87b2e2db RunloopBlockContext::perform() + 115
23  CFNetwork                               0x00007fff87b2e183 MultiplexerSource::perform() + 269
24  CFNetwork                               0x00007fff87b2dfb2 MultiplexerSource::_perform(void*) + 72
25  CoreFoundation                          0x00007fff8c9d78f1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
26  CoreFoundation                          0x00007fff8c9c9062 __CFRunLoopDoSources0 + 242
27  CoreFoundation                          0x00007fff8c9c87ef __CFRunLoopRun + 831
28  CoreFoundation                          0x00007fff8c9c8275 CFRunLoopRunSpecific + 309
29  Foundation                              0x00007fff84482907 +[NSURLConnection(Loader) _resourceLoadLoop:] + 348
30  Foundation                              0x00007fff8448270b __NSThread__main__ + 1318
31  libsystem_pthread.dylib                 0x00007fff8c5cd899 _pthread_body + 138
32  libsystem_pthread.dylib                 0x00007fff8c5cd72a _pthread_struct_init + 0
33  libsystem_pthread.dylib                 0x00007fff8c5d1fc9 thread_start + 13
Binary Images:
    0x7fff8441b000 -     0x7fff8471afff  com.apple.Foundation (6.9 - 1056) <d608edfd-9634-3573-9b7e-081c7d085f7a> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff85738000 -     0x7fff85990ff1  com.apple.security (7.0 - 55471) <233831c5-c457-3ad5-afe7-e3e2de6929c9> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff87b07000 -     0x7fff87c77ff6  com.apple.CFNetwork (673.0.3 - 673.0.3) <42cfc3db-35c8-3652-af37-4bcc73d8bdef> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x7fff888b9000 -     0x7fff888d5ff7  libsystem_kernel.dylib (2422.1.72) <d14913db-47f1-3591-8daf-d4b4ef5f8818> /usr/lib/system/libsystem_kernel.dylib
    0x7fff8c5cc000 -     0x7fff8c5d3ff7  libsystem_pthread.dylib (53.1.4) <ab498556-b555-310e-9041-f67ec9e00e2c> /usr/lib/system/libsystem_pthread.dylib
    0x7fff8c958000 -     0x7fff8cb3dff7  com.apple.CoreFoundation (6.9 - 855.11) <e22c6a1f-8996-349c-905e-96c3bbe07c2f> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
Console log – All Messages
Action:
App Store > Sign In > Apple ID / Password > Sign In > Connection failed.
02.02.14 12:51:07,365 sandboxd[91]: ([44259]) App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:07,372 sandboxd[91]: ([44259]) App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:07,377 sandboxd[91]: ([44259]) App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:07,384 sandboxd[91]: ([44259]) App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:07,390 sandboxd[91]: ([44259]) App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:07,396 sandboxd[91]: ([44259]) App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:07,402 sandboxd[91]: ([44259]) App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:07,409 sandboxd[91]: ([44259]) App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:07,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:07,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:07,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:07,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:07,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:07,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:07,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:07,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:07,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:07,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:08,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:08,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:08,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:08,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:08,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:08,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:08,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:08,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:08,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:08,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:08,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:08,000 kernel[0]: Sandbox: App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
02.02.14 12:51:09,730 SafariNotificationAgent[44337]: Error calling realpath on the home directory.
02.02.14 12:51:09,732 com.apple.launchd.peruser.0[166]: (com.apple.SafariNotificationAgent[44337]) Exited with code: 1
02.02.14 12:51:09,732 com.apple.launchd.peruser.0[166]: (com.apple.SafariNotificationAgent) Throttling respawn: Will start in 10 seconds
Full report of the following incident:
02.02.14 12:51:07,365 sandboxd[91]: ([44259]) App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
App Store(44259) deny file-write-data /private/var/db/mds/system/mds.lock
Process:         App Store [44259]
Path:            /Applications/App Store.app/Contents/MacOS/App Store
Load Address:    0x107a6d000
Identifier:      com.apple.appstore
Version:         201 (1.3)
Build Info:      61-Firenze~201000000000000
Code Type:       x86_64 (Native)
Parent Process:  launchd [166]
Date/Time:       2014-02-02 12:51:07.307 +0100
OS Version:      Mac OS X 10.9.1 (13B42)
Report Version:  8
Thread 0:
0   libsystem_kernel.dylib                  0x00007fff888ce5da __open + 10
1   Security                                0x00007fff8573d2af Security::MDSSession::updateDataBases() + 693
2   Security                                0x00007fff8578feef Security::MDSSession::DbOpen(char const*, cssm_net_address const*, unsigned int, Security::AccessCredentials const*, void const*, long&) + 145
3   Security                                0x00007fff8578fde3 mds_DbOpen(long, char const*, cssm_net_address const*, unsigned int, cssm_access_credentials const*, void const*, long*) + 211
4   Security                                0x00007fff8573ccd7 Security::MDSClient::Directory::cdsa() const + 93
5   Security                                0x00007fff857f995b Security::MDSClient::Directory::dlGetFirst(cssm_query const&, cssm_db_record_attribute_data&, cssm_data*, cssm_db_unique_record*&) + 39
6   Security                                0x00007fff8573c7b2 Security::CssmClient::Table<Security::MDSClient::Common>::startQuery(Security:: CssmQuery const&, bool) + 234
7   Security                                0x00007fff85761ca5 Security::KeychainCore::DynamicDLDBList::_load() + 329
8   Security                                0x00007fff85761b29 Security::KeychainCore::DynamicDLDBList::searchList() + 29
9   Security                                0x00007fff8587b2b5 Security::KeychainCore::StorageManager::getSearchList(std::__1::vector<Security ::KeychainCore::Keychain, std::__1::allocator<Security::KeychainCore::Keychain> >&) + 163
10  Security                                0x00007fff85787bc2 SecIdentityCopyPreference + 319
11  CFNetwork                               0x00007fff87b4f3e5 HTTPProtocolSSLSupport::getSSLCertsCached(__CFString const*) + 235
12  CFNetwork                               0x00007fff87b4f073 HTTPProtocol::setupSSLPropertiesOnStream(_CFURLRequest const*) + 363
13  CFNetwork                               0x00007fff87b3c234 HTTPProtocol::openStream() + 80
14  CFNetwork                               0x00007fff87b3b67a HTTPProtocol::useNetConnectionForRequest(NetConnection*, __CFHTTPMessage*, unsigned char) + 1750
15  CFNetwork                               0x00007fff87b3aeae HTTPConnectionCacheEntry::dispatchConnectionToProtocol(NetConnection*, HTTPProtocol*, HTTPRequestMessage*, unsigned char) + 276
16  CFNetwork                               0x00007fff87b3ac6d HTTPConnectionCacheEntry::notifyNextProtocolOfOpenConnection(NetConnection*, unsigned char) + 301
17  CFNetwork                               0x00007fff87b37fcf HTTPConnectionCacheEntry::enqueueRequestForProtocol(HTTPProtocol*, __CFHTTPMessage*) + 685
18  CFNetwork                               0x00007fff87b379cc HTTPConnectionCache::_onqueue_enqueueRequestForProtocol(HTTPProtocol*, __CFHTTPMessage*) + 178
19  CFNetwork                               0x00007fff87b378f1 ___ZN19HTTPConnectionCache25enqueueRequestForProtocolEP12HTTPProtocolP15__CFHTT PMessage_block_invoke + 26
20  CFNetwork                               0x00007fff87b2e3fc ___ZNK17CoreSchedulingSet13_performAsyncEPKcU13block_pointerFvvE_block_invoke + 25
21  CoreFoundation                          0x00007fff8c9a2e94 CFArrayApplyFunction + 68
22  CFNetwork                               0x00007fff87b2e2db RunloopBlockContext::perform() + 115
23  CFNetwork                               0x00007fff87b2e183 MultiplexerSource::perform() + 269
24  CFNetwork                               0x00007fff87b2dfb2 MultiplexerSource::_perform(void*) + 72
25  CoreFoundation                          0x00007fff8c9d78f1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
26  CoreFoundation                          0x00007fff8c9c9062 __CFRunLoopDoSources0 + 242
27  CoreFoundation                          0x00007fff8c9c87ef __CFRunLoopRun + 831
28  CoreFoundation                          0x00007fff8c9c8275 CFRunLoopRunSpecific + 309
29  Foundation                              0x00007fff84482907 +[NSURLConnection(Loader) _resourceLoadLoop:] + 348
30  Foundation                              0x00007fff8448270b __NSThread__main__ + 1318
31  libsystem_pthread.dylib                 0x00007fff8c5cd899 _pthread_body + 138
32  libsystem_pthread.dylib                 0x00007fff8c5cd72a _pthread_struct_init + 0
33  libsystem_pthread.dylib                 0x00007fff8c5d1fc9 thread_start + 13
Binary Images:
    0x7fff8441b000 -     0x7fff8471afff  com.apple.Foundation (6.9 - 1056) <d608edfd-9634-3573-9b7e-081c7d085f7a> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff85738000 -     0x7fff85990ff1  com.apple.security (7.0 - 55471) <233831c5-c457-3ad5-afe7-e3e2de6929c9> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff87b07000 -     0x7fff87c77ff6  com.apple.CFNetwork (673.0.3 - 673.0.3) <42cfc3db-35c8-3652-af37-4bcc73d8bdef> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x7fff888b9000 -     0x7fff888d5ff7  libsystem_kernel.dylib (2422.1.72) <d14913db-47f1-3591-8daf-d4b4ef5f8818> /usr/lib/system/libsystem_kernel.dylib
    0x7fff8c5cc000 -     0x7fff8c5d3ff7  libsystem_pthread.dylib (53.1.4) <ab498556-b555-310e-9041-f67ec9e00e2c> /usr/lib/system/libsystem_pthread.dylib
    0x7fff8c958000 -     0x7fff8cb3dff7  com.apple.CoreFoundation (6.9 - 855.11) <e22c6a1f-8996-349c-905e-96c3bbe07c2f> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

I have had somewhat similar problems as Øystein Ange since upgrading from Snow Leopard to Mavericks in January. But fortunately, I have been able to solve many of them after a lot of trial & error, frustration and sweat! I now long for the more than 2 years of previous Snow Leopard usage when problems were small, few and far between, and quickly solvable. I feel as if Apple has cut me adrift and left me to struggle on my own with the seemingly numerous problems of getting the performance of Mavericks to finally stabilize on my iMac.
Øystein's Feb. 8th post asks some of the same Mavericks questions that I still have. It would be very helpful to me, and to others I'm sure, if someone/anyone has specific suggestions or solutions on what one could/should do to fix specific problems with newly installed Mavericks OSs, short of a clean, full re-install of the OS.
I have one admin account plus the guest account on my iMac Mavericks. Does this mean my admin account is a/the root account?! How can one tell whether or not they are logging in with a root account?! What's the distinction between the root account, a user's admin account, and other standard users' accounts?! Could someone please recommend a definitive Apple document describing all the various types of Mavericks accounts, in detail, and how/when/where/why each type should be used before or along with any of the others?
Why is it suddenly a no-no to log on to Mavericks via the root user account, when previous OS versions had no problem with this?! What's the purpose of the root user account if not to use it to log on to the computer?! If it's so dangerous, why isn't it internally safeguarded from inadvertent logins by casual users?! What damage or harm are we talking about, and why weren't personal-use customers given a big warning about this apparent "booby trap" in Mavericks?! Saying NEVER DO THAT is like closing the barn door after the horse has already bolted, and it explains nothing to the casual user.
We can't just do a clean re-install every time something in Mavericks hiccups?! Based on my recent experience, and on what I'm seeing in this thread, I would have had to re-installed it a half dozen times in the past 2 months alone!! That's nonsensical. There's got to be a better way of fixing a newly installed Mavericks OS than doing a re-install over and over again. Why don't the Mac diagnostic and troubleshooting tools work in Mavericks' case, as they have done for me on many occasions on earlier OS versions?! What is it about Mavericks that makes it different this time?! Could it possibly have something to do with integration of Mavericks and iCloud; and, if so, what specific cautions should the casual user observe to make sure they don't jeopardize the integrity of Mavericks by doing something similar to logging in from the root account?!
Many customers need to be brought in out of the dark! Is there an Apple Mavericks expert out there who can advise the customer community on specifically how to apply the existing repair tools to solve specific Mavericks teething problems, without having to revert to multiple OS re-installs?

Similar Messages

  • Installed lion on iMac. Now our three iPhones and iPod can browse app store. But when we try to install we get an error that says cannot connect to iTunes. Same on wifi and AT

    I updated my iMac to lion and set up iCloud and icloud email so I could use pages app on my 4s as well as my Mac to work on documents.I was only able to log into my new iCloud mail account once. And never again. Even with security questions.  Purchased pages for Mac and 4s. After I set  up I cloud/ work everything went crazy. My apple Id quit working. My security questions would not accept my answers. So I set up a new apple account. The system allowed me to set it up using the same i.d.since then I have updated everything. The systems on a 4s, two 3gs's and an iPod touch I can browse the app store and iTunes but when I try to download or update anything it accepts my password and then says " Cannot connect to store" this happens all the time on the 3gs's and iPod and about 90 percent of the time on the 4s. It happens using wifi and or 3G data network. Also my Mac and the 3gs's are now super sluggish.

    Simple...
    http://www.apple.com/uk/support/mac/app-store/contact/

  • 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. (p

    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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)(Microsoft SQL Server, Error: 2)
    The system cannot find the file specified
    Cannot connect to COWBOYS.
    Here are the technical 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:
    Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476
    Error Number: 2
    Severity: 20
    State: 0
    Program Location:
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
       at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer
    timeout)
       at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance,
    SqlConnectionString userConnectionOptions, SessionData reconnectSessionData)
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
       at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
       at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
       at System.Data.SqlClient.SqlConnection.Open()
       at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
       at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()
    ===================================
    The system cannot find the file specified
    I have tried from so many forms. This is so frustrating. Thank for everyone/anyone who wants to help. So this is what happened: I had to uninstall my previous sqlserver 2012(which worked great) for some reason, and I uninstalled everything from that download.
    Then I installed the trial edition of sql server 2012 (64 Bit) and It wouldn't connect to the database. (Error mentioned above.) My local DB is COWBOYS. (COWBOYS is also my computer name.) After this, I have tried downloading sqlexpress and sqlserver 64bit
    many times and cannot connect to my local DB. 
    How do I connect to my Local DB? 
    Also, I think this might help: (When I run sqlserve.exe, which I was able to find in C:\Program Files\Microsoft SQL Server\110\LocalDB\Binn, I get an error: Your SQL server installation is either corrupt or has been tampered with(Error getting
    instance ID from name). Please uninstall then re-run setup to correct this problem.
    I would happily re install it, if it wasn't my 20th time.
    I don't have any remote connections, I don't use username/password, only window authentication. I work mostly on visual studio, but without able to store /retrieve data, I don't know how to survive.
    May be the solution is very simple, but I am too frustrated. 
    Some of the things I have tried:
    From a command prompt, enter one of the following commands:
    net start "SQL Server Agent (MSSQLSERVER)" OR 
    net start "SQL Server Agent(instancename)"(for instance)
    on my sql configuration, I cannot start anything because there is nothing there to start. I can post more details, if that would help. Also, some more details about the error:
    Details
    Product:
    SQL Server
    ID:
    2
    Source:
    MSSQLServer
    Version:
    10.0
    Component:
    SQLEngine
    Message:
    An error has occurred while establishing a connection to the server. When connecting to SQL Server, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error:
    40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
    Explanation
    SQL Server did not respond to the client request because the server is probably not started.
    User Action
    Make sure that the server is started.
    Version:
    9.0
    Component:
    SQLEngine
    Message:
    An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error:
    40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)
    Explanation
    SQL Server did not respond to the client request because the server is probably not started.
    User Action
    Make sure that the server is started.
    Any one that can help me, I will be greatful. Thank you so much. p.s. please ask me anything if you have any questions.

    It sounds like there are a couple things going on here.  First check if you have a successful install of SQL Server, then we'll figure out the connection issues.
    Can you launch SQL Server Configuration Manager and check for SQL Server (MSSQLSERVER) if default instance or SQL Server (other name) if you've configured your instance as a named instance.  Once you find this, make sure the service is started. 
    If not started, try to start it and see if it throws an error.  If you get an error, post the error message your hitting.  If the service starts, you can then launch SSMS and try to connect.  If you have a default instance, you can use the machine
    name in the connection dialog.  Ex:  "COWBOYS" where Cowboys is the machine name.  However, if you named the SQL Server instance during install, you'll need to connect using the machine\instance format.  Ex:  COWBOYS\Romo (where Romo
    is the instance name you set during install).
    You can also look at the summary.txt file in the SQL Server setup error logs to see what happened on the most recent install.  Past install history is archived in the log folder if you need to dig those up to help troubleshoot, but the most
    recent one may help get to the bottom of it if there is an issue with setup detecting a prior instance that needs to be repaired.
    Thanks,
    Sam Lester (MSFT)
    http://blogs.msdn.com/b/samlester
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and
    "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • A network-related or instance-specific error occurred while establishing a connection to SQL Server2012

    TITLE: Connect to Server
    Cannot connect to RAVI\SQLEXPRESS.
    ADDITIONAL INFORMATION:
    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:
    SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=-1&LinkId=20476
    BUTTONS:
    I installed it many times correctly,every thing installed succeeded  but when trying to connect getting the above error...
    please help me to solve this..:(((

    Hi,
    Following should be taken care of
    1. Make sure TCP/IP and named pipes protocol is enabled
    2. Make sure browser service is up and running
    3. Make sure SQL express service is up and running
    4. If you are connecting from remote make sure exception in firewall should be made.
    5. If your SQL Server is listeing on port apart from 1433 make sure you connect like
    RAVI\SQLEXPRESS,portno
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • An error occured while opening the connection: Object reference not set to

    After I uninstalled Oracle Developer Tools for Visual Studio .NET 10.1.0.4 and installed Oracle Developer Tools for Visual Studio .NET with Oracle10g Release 2 ODAC 10.2.0.2.21 I got the error message below when I want to connect to my 10g database using Oracle Explorer.
    Error:
    An error occured while opening the connection: Object reference not set to an instance of an object
    I use OracleConnection to open also cannot be done. But I use Oracle SQL Developer I can connect to orcl that I cannot connect using ODAC 10.2.0.2.21 in my laptop.
    Please help me.
    Ming Man

    Sorry my mistake, I double checked, the one I uninstalled is ODAC 10.2.0.2.20 and not ODAC 10.1.0.4.
    But I have that error.
    Ming Man

  • An error occurred while trying to connect to a Web service, when InfoPath web enabled form loads.

    Hi Everyone,
    I am getting an error message: An error occurred while trying to connect to a web service, when my InfoPath form tries to load.  The last few days, it only spits this error message in the morning and around 12pm-1pm it resolves itself and the form loads
    fine the rest of the day, oddly enough. 
    A few things about my form:
    1). It is web enabled
    2). The form submits to a form library on the SP server
    3). I use the UserProfileService data connection in the form to auto-populate a few fields
    4). I use a udcx file with correct language stored in the root of the site collection in the data connection library
    5). The form has been working fine until a few days ago
    I noticed while in Central Administration, that the User Profile Service Synchronization is Stopped.  Not sure if this is causing some or all of the problem. If I need to start it I will need to contact my farm administrator to do this, since I do not
    have the service account information.
    Also, I looked thru the log files on the SharePoint server and found the following by searching for the Correlation ID shown when the error comes up, I won't put in everything just the important messages.
    Schema file was already loaded: BuiltInActiveXControls.xsd
    FormServer Partial Trust - Proxy operation invoked in the SHIM process.
    FormServer Partial Trust - Invoking proxy operation for Web service adapter failed with exception Operation is not valid due to the current state of the object. for Url=https://<SP URL>/_vti_bin/UserProfileService.asmx
    Data adapter failed during OnLoad: The custom code in the form cannot be run. This functionality may be deactivated on the server. For more information, contact the server farm administrator.
    The following query failed: GetUserProfileByName (User: , Form Name: Expense Report, IP: , Connection Target: <SP URL>/Data Connections/GetUserProfileByName.udcx, Request: , Form ID: urn:schemas-microsoft-com:office:infopath:Expense-Report:-myXSD-2014-04-11T21-06-32
    Type: DataAdapterException, Exception Message: The custom code in the form cannot be run. This functionality may be deactivated on the server.

    Hi B.,
    You are on the right track. I recommend that you first get the User Profile Synchronization Service started because that itself could be the root cause of the issue.
    If that doesn't fix it then focus your attention on the GetUserprofileByName data connection. I always use my secure store ID for this connection. I add the ID by editing the udcx file and then publishing it again.
    Hope this helps.
    Daniel Christian (MCTS)

  • Azure Webjobs with EF DB - A network-related or instance-specific error occurred while establishing a connection to SQL Server

    Hi,
    I have been trying to get a very simple WebJob developed and deployed onto Azure with little to no luck.  I have a MVC Website which has a common project which handles my Data Access Layer with Entity Framework.  I have created a WebJob project
    using Visual Studio and added the following lines of code to the Manual Trigger Function
    [NoAutomaticTrigger]
    public static void ManualTrigger(TextWriter log, int value, [Queue("queue")] out string message)
    RitualDBEntities db = new RitualDBEntities();
    log.WriteLine("Function is invoked with value={0}", value);
    List<Location> locations = db.Locations.ToList();
    string msg = string.Empty;
    foreach (Location location in locations)
    msg += location.Name;
    message = msg;
    log.WriteLine("Following message will be written on the Queue={0}", message);
    In my app.config of my WebJob i have the following connection strings:
    <add name="RitualDBEntities" connectionString="metadata=res://*/RitualDBEntities.csdl|res://*/RitualDBEntities.ssdl|res://*/RitualDBEntities.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=ritual-pc\sqlexpress;initial catalog=RitualDB;integrated security=True;persist security info=False;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
    <add name="RitualContext" connectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=RitualDB;Data Source=ritual-pc\sqlexpress" providerName="System.Data.SqlClient" />
    <add name="AzureWebJobsDashboard" connectionString="DefaultEndpointsProtocol=https;AccountName=ritual***;AccountKey=tQAP0gyMYKtWPJeIbsqk2iT2k69gyd1FwcyRf3+5Mc9b9EdYzpj0Dq8X2VHUmF*****"/>
    <add name="AzureWebJobsStorage" connectionString="DefaultEndpointsProtocol=https;AccountName=ritual***;AccountKey=tQAP0gyMYKtWPJeIbsqk2iT2k69gyd1FwcyRf3+5Mc9b9EdYzpj0Dq8X2VHUmF*****" />
    When i test locally (F5 Debugging) the webjob runs successfully and does the loop of the objects returned from the database.  When i deploy this Azure the WebJob fails with the following error:
    [03/29/2015 22:07:39 > 6ca05b: SYS INFO] Status changed to Initializing
    [03/29/2015 22:07:41 > 6ca05b: SYS INFO] Run script 'Ritual.WebJobs.Members.exe' with script host - 'WindowsScriptHost'
    [03/29/2015 22:07:41 > 6ca05b: SYS INFO] Status changed to Running
    [03/29/2015 22:07:44 > 6ca05b: INFO] Found the following functions:
    [03/29/2015 22:07:44 > 6ca05b: INFO] Ritual.WebJobs.Members.Functions.ManualTrigger
    [03/29/2015 22:07:44 > 6ca05b: INFO] Executing: 'Functions.ManualTrigger' because This was function was programmatically called via the host APIs.
    [03/29/2015 22:08:01 > 6ca05b: INFO] Function had errors. See Azure WebJobs SDK dashboard for details. Instance id is e99d7205-3ca0-4674-9414-f0381d5c2316
    [03/29/2015 22:08:01 > 6ca05b: ERR ]
    [03/29/2015 22:08:01 > 6ca05b: ERR ] Unhandled Exception: System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> System.Data.SqlClient.SqlException: 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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.SqlClient.SqlConnection.Open()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.<Open>b__36(DbConnection t, DbConnectionInterceptionContext c)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Core.EntityClient.EntityConnection.<Open>b__2()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass1.<Execute>b__0()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Action operation)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Core.EntityClient.EntityConnection.Open()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] --- End of inner exception stack trace ---
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Core.EntityClient.EntityConnection.Open()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.<GetResults>b__5()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Core.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Core.Objects.ObjectQuery`1.<System.Collections.Generic.IEnumerable<T>.GetEnumerator>b__0()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Data.Entity.Internal.LazyEnumerator`1.MoveNext()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Ritual.WebJobs.Members.Functions.ManualTrigger(TextWriter log, Int32 value, String& message)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at lambda_method(Closure , Object[] )
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Microsoft.Azure.WebJobs.Host.Executors.VoidInvoker.InvokeAsync(Object[] arguments)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.<ExecuteWithWatchersAsync>d__23.MoveNext()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] --- End of stack trace from previous location where exception was thrown ---
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.<ExecuteWithOutputLogsAsync>d__1c.MoveNext()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] --- End of stack trace from previous location where exception was thrown ---
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.<ExecuteWithLogMessageAsync>d__c.MoveNext()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] --- End of stack trace from previous location where exception was thrown ---
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.<ExecuteWithLogMessageAsync>d__c.MoveNext()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] --- End of stack trace from previous location where exception was thrown ---
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.<TryExecuteAsync>d__1.MoveNext()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] --- End of stack trace from previous location where exception was thrown ---
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Microsoft.Azure.WebJobs.Host.Executors.ExceptionDispatchInfoDelayedException.Throw()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Microsoft.Azure.WebJobs.JobHost.<CallAsyncCore>d__7.MoveNext()
    [03/29/2015 22:08:01 > 6ca05b: ERR ] --- End of stack trace from previous location where exception was thrown ---
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Microsoft.Azure.WebJobs.JobHost.Call(MethodInfo method, Object arguments)
    [03/29/2015 22:08:01 > 6ca05b: ERR ] at Ritual.WebJobs.Members.Program.Main()
    [03/29/2015 22:08:01 > 6ca05b: SYS INFO] Status changed to Failed
    [03/29/2015 22:08:01 > 6ca05b: SYS ERR ] Job failed due to exit code -532462766
    If i remove any of my database code and use just the basic Stub code my webjob will run successfully so i know that my connection strings (outside of the DB ones) are correct.  My MVC web application also runs perfectly using the same connection strings
    in Azure so i also know that they have also been configured.  
    I am now lost and need some guidance, so if someone is able to assist me that would be much appreciated.
    Thanks
    Ritual.

    Can you try to log the connection string you are using in both cases to make sure they are the same?
    Also can you share your site name, either directly or indirectly?
    This will help us investigate.
    Thanks,
    Amit

  • A network-related or instance-specific error occurred while establishing a connection to SQL Server.

    Dear all,
    I know that this topic may be a bit old school; but it really make me mad as I tried all solutions i found and it still cant be resolved....please give a hand...
    The situation is like this,my company divided different platform as a status of project, like DEV, SIT and UAT. I got a project that require me to upgrade an vs2003 project to vs2005. I upgraded it completely and
     successfully, it works fine in development and UAT platform; EXCEPT, the SIT platform.
    The situation is very strange that, once I move the source to SIT, it return the following error:
    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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
    but it never happen in either DEV or UAT platform and even do I copy the workable web.config from DEV or UAT platform to SIT, the error still here and unable to resolve it.
    I search a lot in the internet by Google, but solution suggested are not suitable or fail in my case. Most answer suggest that "enable remote control", "check fire wall", "check server" etc......But as I can connect well the
    DBServer in DEV and UAT properly, I dont think those are the cause(but still, I check them all, and all are enabled properly, except my firewall setting is OFF, so adding port is ignored).
    After all the searching and testing, I believed and have reason to believe that, the cause is inside my web.config:
      <appSettings>
        <!--   User application and configured property settings go here.-->
        <!--   Example: <add key="settingName" value="settingValue"/> -->
    <clear/>
        <add key="Environment" value="UAT v1.31"/>
        <add key="DBServer" value="DB_UAT"/>
        <add key="cnBPSS.ConnectionString" value="data source=DB_UAT\BPSS;persist security info=True;user id=theloginid;workstation id=RP_UAT;packet size=4096;pwd=theloginpwd"/>
        <add key="UTBPSSConn.ConnectionString" value="data source=DB_UAT\BPSS;persist security info=False;user id=theloginid;workstation id=RP_UAT;packet size=4096;pwd=theloginpwd"/>
        <add key="UTDSBDBConn.ConnectionString" value="workstation id=RP_UAT;packet size=4096;user id=theloginid;data source=DB_UAT\DSBDB;persist security info=False;password=theloginpwd"/>
        <add key="cnDSBDB.ConnectionString" value="workstation id=RP_UAT;packet size=4096;user id=theloginid;data source=DB_UAT\DSBDB;persist security info=False;password=theloginpwd"/>
        <add key="Timer1.Enabled" value="True"/>
        <add key="Timer1.AutoReset" value="True"/>
        <add key="cnbpss.ConnectionString" value="data source=DB_UAT\BPSS;password=theloginpwd;persist security info=True;user id=theloginid;workstation id=RP_UAT;packet size=4096"/>
        <add key="cnbpss1.ConnectionString" value="data source=DB_UAT\BPSS;password=theloginpwd;persist security info=True;user id=theloginid;workstation id=RP_UAT;packet size=4096"/> 
    </appSettings>
    </configuration>
    I know such kind of setting is old school; But due to this program runs for few years from tons of ppl...I dont dare to modify it unless I am very sure they are the cause.....
    May I ask if anyone cna give me some advice and help in this issue please? I already tried for weeks and turning mad....Please I really need some help...
    Many thanks.
    Ksun Chan

    Checklist of possible reason of this error
    1. Check SQL services are running
    2. Check SQL Browser service is running
    3. Check remote connections are enabled
    4. Network connectivity between database & application servers by TRACERT command
    5. Check TCP/IP protocol enabled at SQL server
    6. Check talent connectivity – telnet <IP address> <port no on SQL server running>
    7. Check UDP port 1434 is open or not on SQL Server
    8. Check firewall is running or not Check
    9. If firewall running, SQL Server & UDP port must be added in exception in firewall
    Regards,
    Rohit Garg
    (My Blog)
    This posting is provided with no warranties and confers no rights.
    Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread.

  • A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.

    Server Error in '/' Application.
    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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Data.SqlClient.SqlException: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [SqlException (0x80131904): 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)]
    System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4846887
    System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
    System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +4860189
    System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +90
    System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +342
    System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +221
    System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189
    System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +185
    System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +31
    System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +433
    System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
    System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499
    System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
    System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
    System.Data.SqlClient.SqlConnection.Open() +122
    System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +31
    System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +112
    System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +287
    System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +92
    System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1297
    System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19
    System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
    System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
    System.Web.UI.WebControls.GridView.DataBind() +4
    System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
    System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +72
    System.Web.UI.Control.EnsureChildControls() +87
    System.Web.UI.Control.PreRenderRecursiveInternal() +44
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

    On what website/link did you received this error message ??

  • Connecting to the LOB system has failed. A network-related or instance-specific error occurred while establishing a connection to SQL Serve

    Hi!
    I'm using consume adapter service> sqlbinding >  to connect to sql database in order to generate sql schemas.
    I'm getting below error:
    Connecting to the LOB system has failed. 
    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:
    SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified).
    Christiane

    Hi, 
    As suggested earlier this seems to be a DTC related issue. It can only occur if the DTC settings are not proper or if firewalls don't allow the default ports to communicate.
    Check DTC settings on both SQL and BizTalk Box and also check if MSDTC service is up and running.
    Go to Start
    à Run
    à (type in) Dcomcnfg. You should be inside Component Services MMC.
    Expand Component Services
    à Computers
    à My Computer (right click)
    à Properties
    à MSDTC tab
    à Security Configuration button.
    Select the checkboxes as following : 
    Check the below article from Microsoft Support Team, they have listed all the errors which may come during setting up a new system. They also have your MSDTC error listed.
    Resolving the issues you may face during BizTalk Runtime Configuration
    Thanks,
    Prashant
    Please mark this post accordingly if it answers your query or is helpful.

  • Response Group: A network-related or instance-specific error occurred while establishing a connection to SQL Server.

    Hi all,
    I have three central sites with each having a Front End server pool (standard).
    Site A and Site B are paired for resiliency. Site C is on its own.
    On two of my Front Ends (Site A and Site B), when I click on response group tab i get the following warning on the top of the page:
    "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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"
    I have check out the following articles about dont think they apply to me:
    http://unifiedme.co.uk/2014/01/network-related-instance-specific-error-occurred-accessing-lync-control-panel-response-group-tab/
    I dont see any Event logs that would direct me to a cause. 
    Which database it is complaining about? RGSDYN and RGSCONFIG are local databases as it is an standard installation. What could be the possible cause for this issue?
    Thanks in advance.

    My latest change was the addition of Site C. 
    Going through logs (i must have missed it the first time, with all the noisy EWS errors), i found event ID 31147. I am investigating network issues although I have MPLS running to that location.
    Does Lync set up open correct ports on the machine itself?

  • Connecting to the LOB system has failed. 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

    hi ,
    when generate the schema , i  got the below error, please any one put your inputs:
    Connecting to the LOB system has failed.  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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server).

    thaks shanky,
    but facing another , after generate schema from  WCF_SQL, im unable get elements in my schema.
    this is schema generate from storeprocduer , but thru WCF-sql im unable get the elements like
    id, name
    <xsd:schema targetNamespace="urn:schemas-microsoft-com:sql:SqlRowSet2" xmlns:schema="urn:schemas-microsoft-com:sql:SqlRowSet2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sqltypes="http://schemas.microsoft.com/sqlserver/2004/sqltypes" elementFormDefault="qualified">
      <xsd:import namespace="http://schemas.microsoft.com/sqlserver/2004/sqltypes" schemaLocation="http://schemas.microsoft.com/sqlserver/2004/sqltypes/sqltypes.xsd" />
      <xsd:element name="Test.dbo.sample">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name="id" type="sqltypes:int" minOccurs="0" />
            <xsd:element name="name" minOccurs="0">
              <xsd:simpleType>
                <xsd:restriction base="sqltypes:nvarchar" sqltypes:localeId="1033" sqltypes:sqlCompareOptions="IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId="52">
                  <xsd:maxLength value="1000" />
                </xsd:restriction>
              </xsd:simpleType>
            </xsd:element>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    </xsd:schema>
    <Test.dbo.sample xmlns="urn:schemas-microsoft-com:sql:SqlRowSet2">
      <id>18</id>
      <name>BIRADAR</name>
    </Test.dbo.sample>
    <Test.dbo.sample xmlns="urn:schemas-microsoft-com:sql:SqlRowSet2">
      <id>18</id>
      <name>BIRADAR</name>
    </Test.dbo.sample>
    <Test.dbo.sample xmlns="urn:schemas-microsoft-com:sql:SqlRowSet2">
      <id>19</id>
      <name>sw</name>
    </Test.dbo.sample>
    <Test.dbo.sample xmlns="urn:schemas-microsoft-com:sql:SqlRowSet2">
      <id>18</id>
      <name>BIRADAR</name>
    </Test.dbo.sample>
    <Test.dbo.sample xmlns="urn:schemas-microsoft-com:sql:SqlRowSet2">
      <id>14</id>
      <name>swe</name>
    </Test.dbo.sample>
    <Test.dbo.sample xmlns="urn:schemas-microsoft-com:sql:SqlRowSet2">
      <id>13</id>
      <name>se</name>
    </Test.dbo.sample>

  • Network related or instance specific error occurred while establishing a connection to sql server

    Hi all,
    I am getting  a SQL error - 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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified).
    Problem is when a user tries to connect with remote SQL Server
    through VPN from Domain, it throws this error, and when the same machine tries to connect with Remote SQL Server through VPN as a standlone machine, it is getting connected.
    I checked all the settings but ....... There is no any policies deployed in Active Directory.
    Any suggetion?
    Rajneesh
    Rajneesh Kumar MCITP - SA, MCSE, CNA

    check these
    1) Make sure your server name is correct, e.g., no typo on the name.
    2) Make sure your instance name is correct and there is actually such an instance on your target machine.
    [Update: Some application converts \\ to \. If you are not sure about your application, please try both Server\Instance and Server\\Instance in your connection string]
    3) Make sure the server machine is reachable, e.g, DNS can be resolve correctly, you are able to ping the server (not always true).
    4) Make sure SQL Browser service is running on the server.
    5) If firewall is enabled on the server, you need to put sqlbrowser.exe and/or UDP port 1434 into exception.
    http://uk.linkedin.com/in/ramjaddu

  • 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.

    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: SQL Network Interfaces, error: 26- Error:Locating Server\instance Specified)
    How Can i solve this?

    1. Make sure SQL Server Service is running
    2. If a named instance, make sure SQL Server browser service is running
    3. Make sure SQL Server is configured to allow remote connections
    4. Examine the SQL Server error log for messages confirming that SQL is listening on the expected network interfaces and ports
    5. Test server connectivity with PING from the client machine
    6. Test port connectivity using TELNET or PowerShell to the server and port (from step 4) from the client machine.  For example
    a. TELNET <server-name> 1433
    b. PowerShell: 1433 | % { echo ((new-object Net.Sockets.TcpClient).Connect("YourServerName",$_)) "server listening on TCP port $_" }
    7. Check firewall settings if step 5 or 6 connectivity test fails
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Central Administration shows error 26 - A network-related or instance-specific error occurred while establishing a connection to SQL Server

    Hello 
    i Follow
    this Article to Config FBA , BUT after Step 3 , My Central Administration shows an Error : 
     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: SQL Network Interfaces, error: 26 – Error Locating Server/Instance Specified)
    Correlation ID: 89651359-9c57-4241-8254-eb3be052c4f0
    Now , i cannot access to my Central Admin Setting , but my site Collections works well....
    i Rollback  all setting but  no Effect !!!!!
    i execute iisreset but nothing !!!!
    what should i do?
    please help me.. Thanks in Advanced
    When i was checking EventViewer , i saw an Event log    :
    The Forefront Identity Manager Service cannot connect to the SQL Database Server. The SQL Server could not be contacted. The connection failure may be due to a network failure, firewall configuration error, or other connection issue. Additionally,
    the SQL Server connection information could be configured incorrectly. Verify that the SQL Server is reachable from the Forefront Identity Manager Service computer. Ensure that SQL Server is running, that the network connection is active, and that the firewall
    is configured properly. Last, verify the connection information has been configured properly. This configuration is stored in the Windows Registry.
    Is there any relation between this message And my Problem!!!???

    hi Mr Thuan
    Soldier
    i checked
    some of your Solution like SQLService (Was OK) , Allow Remote connection (was OK & has check mark), Restart SqlService (Done Successfully),  Network Card Driver (my Connection is OK) before , but didnot check SQL
    Service account & i will do Soon,
    but
    i did not any changes on Firewall or IP ... i change IIS setting (through
     this
    Article ) ,
    Do these settings have any effect on IP or  firewall ?
    thanks
    mohamamd
    MBS - social.technet.microsoft.com Forum

Maybe you are looking for

  • 8620 prints, but hten gives error message on Surface Pro 3

    This error message has been bothering me for some time. From day one when I print from my Surface Pro 3, I get an error message that my document (doesn't matter what it is) did not print. About 95% of the time, it actually DID print but I get the err

  • Access a view on a 32 bit Oracle 9i  from a MS SQL 2008 R2 64 bit

    NOt sure if this is the right forum for this. We need to access a view on a 32 bit Oracle 9i - Release 9.2.0.8.0 database running on Windows 2003 Server, from a MS SQL 2008 R2 64 bit system running on Windows Server 2008 64 bit. Edited by: 854859 on

  • What's wrong with 7.6 firmware?

    My Time Capsule was unreachable from my computers after installing the new firmware 7.6 a few weeks ago. I downgraded today back to 7.5.2 and everything is fine again. What's wrong with this firmware and why hasn't Apple realized that it's causing pr

  • Photoshop CS6 Lag in windows 8

    Hello, I did a search in the forum, but couldn't find something specific to windows 8. When photoshop CS6 was released. I took it for a spin on windows 7. Everything worked perfectly. Then my school offered it at a reduced price and we got a free ver

  • Can a carrier company lock my unlock iphone, i think that what happened to my iphone!!

    I don't know if someone can answer me, but i had a big probleme with my officielly unlocked SFR (in france) iphone 4 that i brought with me to Morocco where there is only one company that give iphone called Méditel, today i wanted ti change my carrie