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.
User contributions licensed under CC BY-SA 3.0