Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to put a DLL in the Bin folder of a web application published in Windows Azure without referencing it?
    primarykey
    data
    text
    <p>This question seems weird but weird problems often require weird solutions.</p> <p>I'm having a problem with Windows Azure and SignalR. <a href="https://stackoverflow.com/questions/15987720/signalr-on-azure-could-not-load-file-or-assembly-system-enterpriseservices-wra">As I described here</a>, the assembly <code>System.EnterpriseServices.Wrapper.dll</code> is not being found and my application is crashing from time to time.</p> <p>I cannot explicitely add a reference to <code>System.EnterpriseServices.Wrapper.dll</code>. Visual Studio won't let me. There's something different with this DLL. But, when I put this DLL in the web application bin folder, I won't have any problems :). Everything works fine.</p> <p>So I had an idea.. I'd put <code>System.EnterpriseServices.Wrapper.dll</code> inside my web application as a resource and set <code>Copy to Output Directory</code> as true. This way, I'd have a DLL in the bin folder without having a reference to it.</p> <p>This situation I described works perfecly in the emulator but I just can't publish my application to Azure anymore. </p> <pre><code>Error 30 The "ProvideAssemblyProcessorArchitecture" task failed unexpectedly. System.BadImageFormatException: The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018) </code></pre> <p>It seems that Azure will pre-process the assemblies prior to publishing. During this processes it will throw an error.</p> <p>Is there any way I can put this assembly in the bin folder of my web application?</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