title: Error in execution while using NLog
body: <p>I want to make use of NLog to log the exception while executing my code, I have installed the required files and included it, the moment I run my web service, I get following error,</p>
  
  <pre><code>System.TypeInitializationException: The type initializer for
  'Web_Service.Service1' threw an exception. ---&gt;System.IO.FileNotFoundException:
  Could not load file or assembly 'NLog, Version=2.1.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c'
  or one of its dependencies. The system cannot find the file specified.
  at Web_Service.Service1..cctor()
  --- End of inner exception stack trace ---
  </code></pre>
  
  <p>and I am using NLog in my code as follows,</p>
  
  <pre><code>private static Logger logger = LogManager.GetCurrentClassLogger();,
  </code></pre>
  
  <p>Can any one tell me where I am wrong.</p>
  
  <p>below is my nlog.config file</p>
  
  <pre><code>  for information on customizing logging rules and outputs.
    --&gt;
  
  
    &lt;target xsi:type="File" name ="file"  fileName="${basedir}/logs/${shortdate}.log"
           layout="
    ------------${longdate} ${uppercase:${level}} ${message}-------------${newline} 
   ${newline}
  Call Site: ${callsite}${newline}
  Exception Type: ${exception:format=Type}${newline}
  Exception Message: ${exception:format=Message}${newline}
  Stack Trace: ${exception:format=StackTrace}${newline}            
  Additional Info: ${message}${newline}"
            /&gt;
  &lt;/targets&gt;
  &lt;rules&gt;
    &lt;!-- add your logging rules here --&gt;
     &lt;logger name="*" minlevel="Trace" writeTo="file" /&gt;
     &lt;logger name ="*" minlevel ="Info" writeTo ="file"/&gt;
  &lt;/rules&gt;
  </code></pre>
  
  <p></p>