.NET Core NLog Connection String

0

This is my nlog.config:

  <targets>
     <target name="dbLog" type="Database" dbProvider="mssql">
      <connectionString>
        Data Source=rppp.fer.hr;Initial Catalog=RPPP07;User Id=userName;Password=myUserName
      </connectionString>

  ........

    </target>

</nlog>

I get the error:

2018-06-12 16:22:35.0071 Error Error when writing to database. Exception: System.Data.SqlClient.SqlException (0x80131904): Login failed for user ''. at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)...

What is wrong with my connections string? I am connecting to remote SQL Server database.

.net
logging
nlog
asked on Stack Overflow Jun 12, 2018 by Sandra • edited Jun 12, 2018 by Julian

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0