Net 3.5 SP1 and trying to implement a selective copy of http://haacked.com/archive/2008/03/11/using-routing-with-webforms.aspx in an example web application, however I seem to be having some problems.
I am running windows vista, IIS 7.0, integrated mode.
Following is the YSOD:
Unable to create abstract class.
Description: An unhandled exception occurred during the execution of the current web request. Check the stack trace for more information about the error and where it appeared in the code.
Exception Details: System.MissingMethodException: Cannot create an abstract class.
Original error: An unhandled exception was thrown during the execution of the current web request. Information about the origin and location of the exception can be identified using the exception stack trace below.
Stack trace:[MissingMethodException: Unable to create an abstract class.] System.RuntimeTypeHandle.CreateInstance (RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean & canBeCached, RuntimeMethodHandle & ctor, Blelean & bNeedSeCentleChleCentleChleCheleCleCentleChleCentleCleCleCleCleCheleCleCheleCleCheleCleCheleCleCheleCleCheleCleCheleCleCheleCleCheleClementleCheleClementCleanCheleClementCleanChele +86 System.RuntimeType.CreateInstanceImpl (Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +230 System.Activator.CreateInstance (Type type, Boolean nonPublic) +67 System.RuntimeType.CreateInstrgserplinder (binding CultureInfo culture, Object [] activationAttributes) +1051 System.Activator.CreateInstance (Type of type, BindingFlags bindingAttr, Binding binder, Object [] args, CultureInfo culture,Object [] activationAttributes) +111 System.Web.Configuration.HandlerFactoryCache..ctor (string type) +57 System.Web.HttpApplication.GetFactory (String type) +78 System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecution. Execute () +229 System.Web.HttpApplication.ExecuteStep (step IExecutionStep, Boolean and completed synchronously) +155
, :
public interface IRoutablePage : IHttpHandler
{
UrlHelper Url { get; }
HtmlHelper Html { get; }
RequestContext RequestContext { get; set;}
}
(RoutablePage), System.Web.UI.Page.
- ( ), RoutablePage.
-, http://local.url/pageName YSOD .
- ?