Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Unhandled Exception: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurre
- d 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 Ne
- twork Interfaces, error: 26 - Error Locating Server/Instance Specified)
- at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Ac
- tion`1 wrapCloseInAction)
- at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerH
- asConnectionLock, Boolean asyncClose)
- at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Bo
- olean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSe
- curity, Boolean withFailover)
- at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPasswor
- d, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
- at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPasswor
- d, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, Sql
- Credential credential, TimeoutTimer timeout)
- at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionStrin
- g connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean re
- directedUserInstance)
- at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionSt
- ring connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSe
- curePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnec
- tSessionData)
- at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPo
- olKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnecti
- onOptions userOptions)
- at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection
- owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
- at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions u
- serOptions, DbConnectionInternal oldConnection)
- at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOpti
- ons userOptions, DbConnectionInternal oldConnection)
- at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMul
- tipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, Db
- ConnectionInternal& connection)
- at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSou
- rce`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
- at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskComple
- tionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal
- & connection)
- at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, D
- bConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
- at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectio
- nFactory 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 System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.<Open>b__36(DbConnection t, DbCon
- nectionInterceptionContext c)
- at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionConte
- xt](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`
- 3 executed)
- at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbI
- nterceptionContext interceptionContext)
- at System.Data.Entity.SqlServer.SqlProviderServices.<>c__DisplayClass33.<UsingConnection>b__32()
- at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass1.<Execute>b__0()
- at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func`1 operation)
- at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Action operation)
- at System.Data.Entity.SqlServer.SqlProviderServices.UsingConnection(DbConnection sqlConnection, Action`1 a
- ct)
- at System.Data.Entity.SqlServer.SqlProviderServices.UsingMasterConnection(DbConnection sqlConnection, Acti
- on`1 act)
- at System.Data.Entity.SqlServer.SqlProviderServices.CreateDatabaseFromScript(Nullable`1 commandTimeout, Db
- Connection sqlConnection, String createDatabaseScript)
- at System.Data.Entity.SqlServer.SqlProviderServices.DbCreateDatabase(DbConnection connection, Nullable`1 c
- ommandTimeout, StoreItemCollection storeItemCollection)
- at System.Data.Entity.Core.Common.DbProviderServices.CreateDatabase(DbConnection connection, Nullable`1 co
- mmandTimeout, StoreItemCollection storeItemCollection)
- at System.Data.Entity.Core.Objects.ObjectContext.CreateDatabase()
- at System.Data.Entity.Migrations.Utilities.DatabaseCreator.Create(DbConnection connection)
- at System.Data.Entity.Migrations.DbMigrator.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)
- at System.Data.Entity.Migrations.DbMigrator.Update(String targetMigration)
- at System.Data.Entity.MigrateDatabaseToLatestVersion`2.InitializeDatabase(TContext context)
- at System.Data.Entity.Internal.InternalContext.<>c__DisplayClassf`1.<CreateInitializationAction>b__e()
- at System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action)
- at System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization()
- at System.Data.Entity.Internal.LazyInternalContext.<InitializeDatabase>b__4(InternalContext c)
- at System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input)
- at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action)
- at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabase()
- at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType)
- at System.Data.Entity.Internal.Linq.InternalSet`1.Initialize()
- at System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext()
- at System.Data.Entity.Internal.Linq.InternalSet`1.ActOnSet(Action action, EntityState newState, Object ent
- ity, String methodName)
- at System.Data.Entity.Internal.Linq.InternalSet`1.Add(Object entity)
- at System.Data.Entity.DbSet`1.Add(TEntity entity)
- at FBApp.ConsoleClient.Program.Main(String[] args) in c:\Users\Ventsislav\AppData\Roaming\Skype\My Skype R
- eceived Files\TeamBogotaFBLikeApp\TeamBogotaFBLikeApp\FBApp.ConsoleClient\Program.cs:line 24
- Press any key to continue . . .
- ...
Advertisement
Add Comment
Please, Sign In to add comment