I want to attach one custom ICallHandler and ExceptionCallHandler with my UI layer (.aspx pages code behind) using policy injection (unity block).
Since for the policy injection one of two conditions are required:-
1) Class inherits from MarshelByRef
2) Class inherits from some interface
Since .aspx page inherits from the System.Web.UI.Page class, we can't inherits it from the MarshelByRef class and we don't have any interface to implement on Page.
How can I attach the custom ICallHandler or ExceptionCallHandler with aspx page class using the matching rule in web.config file.