Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Thanks to an answer on the <a href="http://social.msdn.microsoft.com/Forums/en-US/windowsazuretroubleshooting/thread/cb9ec387-8ba3-46e1-aa51-499e041916c4?prof=required" rel="nofollow noreferrer">MSDN forum</a>, I have been able to troubleshoot and resolve my problem.</p> <p>The reason why my jobs were not being executed was due to the line below:</p> <pre><code>_container.Install(FromAssembly.InDirectory( new AssemblyFilter(Path.Combine(Environment.GetEnvironmentVariable(Constants.RoleRoot), Constants.AppRoot)))); </code></pre> <p>The role root on staging is E:. Path.Combine() has an obscure implementation which you can read more about in <a href="https://stackoverflow.com/questions/53102/why-does-path-combine-not-properly-concatenate-filenames-that-start-with-path-di#answer-53122">this SO answer</a>. What this meant was that Castle was searching for assemblies in E:approot rather than E:\approot as I expected. I am now constructing the approot path with the method below:</p> <pre><code> private string GetAppRoot() { string root = Environment.GetEnvironmentVariable(Constants.RoleRoot); if (root.EndsWith(Path.VolumeSeparatorChar.ToString())) root += Path.DirectorySeparatorChar; return Path.Combine(root, Constants.AppRoot); } </code></pre> <p>That has resolved my main issue and I am now seeing the jobs execute as expected.</p> <p>I was only able to troubleshoot this issue by running the worker role in an elevated execution context so that my trace data could be written to a file. I still don't know why, and would like to hear of any ideas why, the trace statements were not being transferred to storage correctly.</p>
    singulars
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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