I have just created a sampe console application with just one class and with the following code to write log entries to the database.
static void Main(string args)
LogEntry logEntry = new LogEntry();
logEntry.EventId = 1;
logEntry.Priority = 1;
logEntry.Message = "Message";
I tried to configure the logging application blocks. I have created a database trace listener and the text formatter.
While creating the database trace listener, it has created the data access application block called "LocalSqlServer" with the following connectionstring
"data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"
I have installed the sql server developer edition in my machine. I tried to change it to the localhost and to the database.
But it is giving the following error.
"The user instance login flag is not supported on this version of SQL Server. The connection will be closed"
What should i do to resolve this error?