Note that there are some explanatory texts on larger screens.

plurals
  1. POLog4Net working locally but not on remote Azure DB
    primarykey
    data
    text
    <p>I locally develop an ASP.NET MVC application and use Log4Net to log message on the local database with the following connection string (log4net.config):</p> <pre><code>&lt;connectionType value="System.Data.SqlClient.SqlConnection, System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /&gt; &lt;connectionString value="Data Source=.\;Initial Catalog=MyDatabase;Integrated Security=True" /&gt; </code></pre> <p>This is perfectly working (database entries are appearing in the Log table).</p> <p>Now I'd like to log to remote azure database server, so I just changed the connection string into following:</p> <pre><code>&lt;connectionString value="Data Source=mydb.database.windows.net,1433;Initial Catalog=MyDatabase;User ID=username@mydb;Password=mypassword;Trusted_Connection=False;Encrypt=True;Connection Timeout=30;" /&gt; </code></pre> <p>I inserted my IP address in the firewall (as proof I can connect via SQL Studio on my machine to the azure db instance).</p> <p>When debugging the application I don't see any exception caused by log4net.</p> <p>I use castle-windsor to inject the ILogger where needed, here is my Installer:</p> <pre><code>public class LoggerInstaller : IWindsorInstaller { public void Install(IWindsorContainer container, IConfigurationStore store) { container.AddFacility&lt;LoggingFacility&gt;(f =&gt; f.UseLog4Net().WithConfig("Configuration\\log4net.config")); } } </code></pre> <p>The database on the azure DB instance is the exact copy of the local one (same create script). </p> <p>But nothing appears in the remote database. What am I doing wrong? How can I find out the problem?</p> <p>Thanks a lot</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload