Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Assembly.LoadFrom is dynamic (late bound) which means the type is not included during compilation time therefore references to its contained classes are invalid. You need to specifically reference the assembly so its included as part of the compilation of the *.aspx class.</p> <p>You may find some of the source code <a href="http://www.codeproject.com/KB/aspnet/ASPNET_11_Compilation_E.aspx" rel="nofollow noreferrer">here</a> helpful, and I recommend giving the <a href="http://www.codeplex.com/MEF" rel="nofollow noreferrer">Managed Extensibility Framework</a> a go because it may have already solved this issue.</p> <p>Update: I have found what I think is the answer to your problem. While this won't work in an ASP.NET 1.1 project, it would for 2.0+. They have restructured the building pipeline to use a BuildProvider which can be specified in the configuration file (web.config). Though you have to write your own build provider, you can make one that automatically references all the assemblies in the Plugins folder prior to compilation. Here's <a href="http://msdn.microsoft.com/en-us/library/h0e51sw9.aspx" rel="nofollow noreferrer">information on the configuration</a> and <a href="http://msdn.microsoft.com/en-us/library/system.web.compilation.buildprovider.aspx" rel="nofollow noreferrer">here's what you need to subclass to do it</a>.</p> <p>Here's an out of date copy of the source code for <a href="http://mono.ms.mff.cuni.cz/projects/mono/diffs/showdiff.php?old=2006-02-12&amp;new=2006-02-16&amp;fileIndex=5&amp;bench=" rel="nofollow noreferrer">Mono's PageBuildProvider</a>, you'll need to check the latest implementation for ASP.NET from MS's shared source, copy it, and extend it with your custom assembly reference because the class is unfortunately sealed (but it doesn't look terribly complex).</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. 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.
    3. VO
      singulars
      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