title: azure webjob can't find dll
body: <p>I have a simple c# console application that uses a c++ dll, it works perfectly in my PC.</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Runtime.InteropServices;
  using System.Text;
  using System.Threading.Tasks;
  
  namespace ConsoleApplication1
  {
      class Program
      {
          [DllImport("ConsoleApplication2.dll", CallingConvention = CallingConvention.Cdecl)]
          public static extern int mainn();
  
          static void Main(string[] args)
          {
              int num = mainn();
          }
      }
  }
  </code></pre>
  
  <p>I zipped this console application with its dll and all debug files and upload it to a continuous webjob, so it looks like this: <a href="http://i.imgur.com/wWfE6lG.png" rel="nofollow">http://i.imgur.com/wWfE6lG.png</a> 
  when running inside azure this error happens:</p>
  
  <pre><code>[07/15/2015 22:10:49 &gt; 223c43: SYS INFO] Run script 'ConsoleApplication1.exe' with script host - 'WindowsScriptHost'
  [07/15/2015 22:10:49 &gt; 223c43: SYS INFO] Status changed to Running
  [07/15/2015 22:10:49 &gt; 223c43: ERR ] 
  [07/15/2015 22:10:49 &gt; 223c43: ERR ] Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'ConsoleApplication2.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
  [07/15/2015 22:10:49 &gt; 223c43: ERR ]    at ConsoleApplication1.Program.mainn()
  [07/15/2015 22:10:49 &gt; 223c43: ERR ]    at ConsoleApplication1.Program.Main(String[] args) in c:\Users\Juan Jose\Desktop\NAT middleman\ConsoleApplication1\Program.cs:line 17
  [07/15/2015 22:10:49 &gt; 223c43: SYS ERR ] Job failed due to exit code -532462766
  [07/15/2015 22:10:49 &gt; 223c43: SYS INFO] Process went down, waiting for 60 seconds
  </code></pre>
  
  <p>which means it can't find ConsoleApplication2.dll but in the image you can see it is right there, how do I fix this?</p>