davidebbo / WebActivator

Apache License 2.0
242 stars 49 forks source link

Gac WebActivatorEx and Gaced assemblies Referencing WebActivatorEx do not execute start up code #22

Closed aamolgote closed 10 years ago

aamolgote commented 10 years ago

We have created certain assemblies as MVC extensions, these assemblies need to execute some code before app start for which we are leveraging WebActivatorEx. We have genuine requirement to Gac our assemblies as well as WebActivatorEx. By default WebActivatorEx only deals with assemblies which are Bin deployed, we have modified the code a bit to load our assemblies which are in GAC. But the problem is when I reference Gac Assembly and WebActivatorEx, start up code does not get executed, but when I mark WebActivatorEx as Copy Local or make it Bin deployed then it works.

davidebbo commented 10 years ago

If you add those assemblies to your web.config (system.web/compilation/assemblies), it should work.

aamolgote commented 10 years ago

Awesome. That works. Thanks....

davidebbo commented 10 years ago

Glad to hear!