I would like to embed depencency dll into my HttpHandler dll for easier deployment, so I was thinking to add it to solution as embedded resource and use AppDomain.CurrentDomain.AssemblyResolve event to resolve it.
Problem is, that if I subscribe to event in void ProcessRequest(HttpContext context) method, looks like it fails to resolve before it reaches event subscription.
So question would be where should I subscribe to that event, to be able to load dll from embedded resource.
I would like to embed depencency dll into my HttpHandler dll for easier deployment,
Share
You could use the static constructor of your handler. For example: