I wrote VirtualPathProvider to change the way loading aspx pages into my ASP.Net application. As part of this process, I deleted the Code-Behind files, and I simply claim that my page inherits from a specific page class. eg:
<%@ Page Language="C#" AutoEventWireup="true" Inherits="Namespace.PageClass" %>
If I do this, I get the following exception:
HttpParseException Failed to load type 'Namespace.PageClass'
I also tried the following:
<%@ Page Language="C#" AutoEventWireup="true" Inherits="Namespace.PageClass, AssemblyName" %>
This results in the following error:
HttpParseException Failed to load assembly 'AssemblyName. Make sure this is compiled before accessing the page.
When the application starts, I load the required assembly into the current application domain:
AppDomain.Current.Load(...)
, BuildManager /.... ... : -)
- ?