Note that there are some explanatory texts on larger screens.

plurals
  1. POAzure WASABi + custom AppDomains = System.DllNotFoundException
    primarykey
    data
    text
    <p>I have 2 workers and autoscaller (WASABi) in my app. Each worker computing some data in manually created AppDomains (<code>AppDomain.CreateDomain()</code> and so on). One domain is for one computing task.</p> <p>Sometimes there are few task to complete. All works fine, no exception occurs.</p> <p>But sometimes there are a lot of tasks to complete. In these moments autoscaller has to add one more worker (made with reactive rules). After new instance is loaded, magic happens: in custom AppDomain there is such exception:</p> <pre><code>State: Error System.TypeInitializationException: The type initializer for 'Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment' threw an exception. ---&gt; System.DllNotFoundException: Unable to load DLL 'kernel32.dll': The filename or extension is too long. (Exception from HRESULT: 0x800700CE) at Microsoft.Win32.SafeNativeMethods.OutputDebugString(String message) at System.Diagnostics.DefaultTraceListener.Write(String message, Boolean useLogFile) at System.Diagnostics.TraceListener.WriteHeader(String source, TraceEventType eventType, Int32 id) at System.Diagnostics.TraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String format, Object[] args) at System.Diagnostics.TraceSource.TraceEvent(TraceEventType eventType, Int32 id, String format, Object[] args) at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment..cctor() --- End of inner exception stack trace --- at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.get_CurrentRoleInstance() at Tailspin.Shared.Infrastructure.Helpers.LogError(Exception ex, String message, Object[] args) at Tailsping.Workers.Processor.ChannelUpdater.Update() at Tailsping.Workers.Processor.AppdomainHelper.b__1[T]() at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate) at Tailsping.Workers.Processor.AppdomainHelper.RunInAppDomain[T](Func`1 func) at Tailsping.Workers.Processor.ProcessorService.ExecWrapperInternal(String wrapperXml) </code></pre> <p>It can not load some DLL called '<strong>kernel32.dll</strong>' :)</p> <p>Google says noting. Any suggestions?</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