AssemblyResolve Does not fire
<p>I have an asp.net application. I want to load some assemblies dynamically. </p>

<p>this is my code on application start</p>

<pre><code>    protected void Application_Start(Object sender, EventArgs e)
        {
            LoadPrivateAssemblies();
        }
    private static void LoadPrivateAssemblies()
        {
            AppDomain.CurrentDomain.AssemblyResolve += CurrentDomainAssemblyResolve;

            Assembly.Load("MyDLL");
        }
    static Assembly CurrentDomainAssemblyResolve(object sender, ResolveEventArgs args)
        {
            //loads and returns assembly successfully.
        }
</code></pre>

<p>this code works fine except when a nested c# code calls a class from my dynamic dll Inside an asp.net page (not code-behind)</p>

<p>sample :</p>

<pre><code>&lt;%if(MyDLL.TestObject.Value){%&gt;white some ting&lt;%}%&gt;
</code></pre>

<p>what should I do now ?</p>

<p>I think If I know When a new AppDomain is created, it may solve my problem.</p>
