我在我的一个 MVC 项目中使用了 Windsor DI 框架。当我尝试从 Visual Studio 2008 运行时,该项目运行良好。
但是当我尝试运行在 IIS7 中创建应用程序的项目时,我收到以下错误消息:
看起来您忘记注册 http 模块 Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule 添加 '<add name="PerRequestLifestyle" type="Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule, Castle.MicroKernel" />' 到您网站上的部分。配置
但是这个模块已经存在于 web.config 文件的 httpmodule 部分。
有谁知道我必须做些什么来消除这个问题。