none
ASP.NET Core 2.0 Ubuntu Server PostgreSQL 'Update-Database' Yetkilendirme Hatası RRS feed

  • Soru

  • Öncelikle Merhaba,

           Bir projede Digital Ocean`da bulunan Ubuntu Server ve Postgresql kullanmaktayım.Geliştirme ortamı VS 2017. Entity Framework Core 2.0 ile Add-Migration ve ardinda `Update-Database` komutunu verdiğime aşağıdaki hata ile karşılaşıyorum. Makina bağlatıyı reddediyor. Neler yapılabilir görüş ve önerilerinizi bekliyorum.

    Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
          User profile is available. Using 'C:\Users\limeorlemon\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
    Microsoft.EntityFrameworkCore.Infrastructure[10403]
          Entity Framework Core 2.0.1-rtm-125 initialized 'ApplicationDbContext' using provider 'Npgsql.EntityFrameworkCore.PostgreSQL' with options: None
    System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it
       at Npgsql.NpgsqlConnector.Connect(NpgsqlTimeout timeout)
       at Npgsql.NpgsqlConnector.<RawOpen>d__139.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Npgsql.NpgsqlConnector.<Open>d__136.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Npgsql.NpgsqlConnection.<Open>d__28.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Npgsql.NpgsqlConnection.Open()
       at Microsoft.EntityFrameworkCore.Storage.Internal.NpgsqlDatabaseCreator.Exists()
       at Microsoft.EntityFrameworkCore.Migrations.HistoryRepository.Exists()
       at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.Migrate(String targetMigration)
       at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.UpdateDatabase(String targetMigration, String contextType)
       at Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabase.<>c__DisplayClass0_1.<.ctor>b__0()
       at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
    No connection could be made because the target machine actively refused it
    PM> 

    24 Kasım 2017 Cuma 08:18

Yanıtlar