当前在线人数14599
首页 - 分类讨论区 - 电脑网络 - 窗口里的风景版 - 同主题阅读文章

此篇文章共收到打赏
0

  • 10
  • 20
  • 50
  • 100
您目前伪币余额:0
未名交友
[更多]
[更多]
System.Data.SqlClient.SqlException: A network-related or i
[版面:窗口里的风景][首篇作者:wds] , 2014年03月29日17:01:05 ,253次阅读,1次回复
来APP回复,赚取更多伪币 关注本站公众号:
[分页:1 ]
wds
进入未名形象秀
我的博客
[回复] [回信给作者] [本篇全文] [本讨论区] [修改] [删除] [转寄] [转贴] [收藏] [举报] [ 1 ]

发信人: wds (中原一点红:心开运就通,运通福就来), 信区: DotNet
标  题: System.Data.SqlClient.SqlException: A network-related or instance -specific error
发信站: BBS 未名空间站 (Sat Mar 29 17:01:05 2014, 美东)

my DB is in the local pc, some times my program gave such errors, while most
of the time is ok.

any suggestions ?


Unhandled Exception: System.Data.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
serv
er 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 N
etwork Interfaces, error: 50 - Local Database Runtime error occurred. Error
occu
rred during LocalDB instance startup: SQL Server process failed to start.
)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
exception
, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(
TdsParserStateObj
ect stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo,
SqlInternal
ConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire,
Bool
ean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean
withFa
ilover)
   at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(
ServerInfo
serverInfo, String newPassword, SecureString newSecurePassword, Boolean
ignoreSn
iOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
   at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(
ServerInfo
serverInfo, String newPassword, SecureString newSecurePassword, Boolean
redirect
edUserInstance, SqlConnectionString connectionOptions, SqlCredential
credential,
TimeoutTimer timeout)
   at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(
TimeoutTime
r timeout, SqlConnectionString connectionOptions, SqlCredential credential,
Stri
ng newPassword, SecureString newSecurePassword, Boolean
redirectedUserInstance)
   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(
DbConnectionPoolIdent
ity identity, SqlConnectionString connectionOptions, SqlCredential
credential, O
bject providerInfo, String newPassword, SecureString newSecurePassword,
Boolean
redirectedUserInstance, SqlConnectionString userConnectionOptions,
SessionData r
econnectSessionData)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(
DbConnectionOp
tions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo,
DbConn
ectionPool pool, DbConnection owningConnection, DbConnectionOptions
userOptions)

   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(
DbConn
ectionPool pool, DbConnection owningObject, DbConnectionOptions options,
DbConne
ctionPoolKey poolKey, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection
owning
Object, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(
DbConnection o
wningObject, DbConnectionOptions userOptions, DbConnectionInternal
oldConnection
)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(
DbConnection ow
ningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate,
Boolean o
nlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal
& co
nnection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(
DbConnection ow
ningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions,
DbCon
nectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(
DbConnection
owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions
userOptions
, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionInternal.
TryOpenConnectionInternal(Db
Connection outerConnection, DbConnectionFactory connectionFactory,
TaskCompletio
nSource`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 re
try)
   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1
retry)
   at System.Data.SqlClient.SqlConnection.Open()
   at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(
Boolean op
enCondition, DbConnection storeConnectionToOpen, DbConnection
originalConnection
, String exceptionCode, String attemptedOperation, Boolean&
closeStoreConnection
OnFailure)
   --- End of inner exception stack trace ---
   at System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(
Boolean op
enCondition, DbConnection storeConnectionToOpen, DbConnection
originalConnection
, String exceptionCode, String attemptedOperation, Boolean&
closeStoreConnection
OnFailure)
   at System.Data.EntityClient.EntityConnection.Open()
   at System.Data.Objects.ObjectContext.EnsureConnection()
   at System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption)
   at System.Data.Objects.ObjectQuery`1.System.Collections.Generic.
IEnumerable<T
>.GetEnumerator()
   at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
   at System.Data.Objects.ELinq.ObjectQueryProvider.<GetElementFunction>b__3
[TRe
sult](IEnumerable`1 sequence)
   at System.Data.Objects.ELinq.ObjectQueryProvider.ExecuteSingle[TResult](
IEnum
erable`1 query, Expression queryRoot)
   at System.Data.Objects.ELinq.ObjectQueryProvider.System.Linq.
IQueryProvider.E
xecute[S](Expression expression)
   at System.Data.Entity.Internal.Linq.DbQueryProvider.Execute[TResult](
Expressi
on expression)
   at System.Linq.Queryable.Any[TSource](IQueryable`1 source, Expression`1
predi
cate)
   at StockAnalyze.Analyze.ProcessRawData(String stock, Int32 mv_days, Int3
2 p_days)
--

※ 来源:·WWW 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 100.]

 
HorseKing
进入未名形象秀
我的博客
[回复] [回信给作者] [本篇全文] [本讨论区] [修改] [删除] [转寄] [转贴] [收藏] [举报] [ 2 ]

发信人: HorseKing (For the Horde!), 信区: DotNet
标  题: Re: System.Data.SqlClient.SqlException: A network-related or i
发信站: BBS 未名空间站 (Fri Apr 18 23:36:27 2014, 美东)

SQL server is down
--
※ 来源:·WWW 未名空间站 网址:mitbbs.com 移动:在应用商店搜索未名空间·[FROM: 74.]

[分页:1 ]
[快速返回] [ 进入窗口里的风景讨论区] [返回顶部]
回复文章
标题:
内 容:

未名交友
将您的链接放在这儿

友情链接


 

Site Map - Contact Us - Terms and Conditions - Privacy Policy

版权所有,未名空间(mitbbs.com),since 1996