Activation error occured while trying to get instance of type Invoker, key “”

Solution: When you the below error, change your LifeStyle from PerWebRequest to desired style. 

Cause: PerWebRequest can run only in the context of a request and not outside it, which is exactly what Application_Start is.
{"Looks like you forgot to register the http module Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule\r\nTo fix this add\r\n<add name=\"PerRequestLifestyle\" type=\"Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule, Castle.Windsor\" />\r\nto the <httpModules> section on your web.config.\r\nIf you plan running on IIS in Integrated Pipeline mode, you also need to add the module to the <modules> section under <system.webServer>.\r\nAlternatively make sure you have Microsoft.Web.Infrastructure, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35 assembly in your GAC (it is installed by ASP.NET MVC3 or WebMatrix) and Windsor will be able to register the module automatically without having to add anything to the config file.\r\n"}

About msarm

Aspiring Enterprise Architect.
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s