我正在升级NHibernate,Castle.Core,Castle.Windsor(从2.5到3.3)

IIS版本:7.5

我在我的web.config中有这个

<configuration>
<system.web>
    <httpModules>
          <add name="PerRequestLifestyle" type="Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule, Castle.Windsor" />
    </httpModules>
</system.web>
<system.webServer>
     <modules runAllManagedModulesForAllRequests="true">
          <add name="PerRequestLifestyle" type="Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule, Castle.Windsor"/> 
    </modules>
</system.webServer>
</configuration>

当我运行我的Web应用程序时,我立刻得到运行时错误页面,没有任何例外......在检查事件日志后我发现了这个,

异常信息:异常类型:ConfigurationErrorsException异常消息:无法从程序集“Castle.Windsor”加载类型“Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule” . 在System.Web.Configuration.ConfigUtil.GetType(String typeName,String propertyName,ConfigurationElement configElement,XmlNode node,Boolean checkAptcaBit,Boolean ignoreCase)at System.Web.Configuration.ConfigUtil.GetType(String typeName,String propertyName,ConfigurationElement configElement,Boolean checkAptcaBit)System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName,String propertyName,ConfigurationElement configElement)at System.Web.Configuration.Common.ModulesEntry..ctor(String name,String typeName,String propertyName,ConfigurationElement configElement)在System.Web上的System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList)处的System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext,HttpContext context,MethodInfo []处理程序)的System.Web.HttpApplication.GetModuleCollection(IntPtr appContext)处 . .HttpApplication.InitSpecial(HttpApplicationState状态,MethodInfo []处理程序,IntPtr appContext,HttpContext System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)中的System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext,HttpContext context)上的上下文无法从程序集'Castle.Windsor加载'Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleModule'类型” . System.RuntimeTypeHandle.GetTypeByName(String name,Boolean throwOnError,Boolean ignoreCase,Boolean reflectionOnly,StackCrawlMarkHandle stackMark,IntPtr pPrivHostBinder,Boolean loadTypeFromPartialName,ObjectHandleOnStack type)at System.RuntimeTypeHandle.GetTypeByName(String name,Boolean throwOnError,Boolean ignoreCase,Boolean reflectionOnly, StackCrawlMark&stackMark,IntPtr pPrivHostBinder,Boolean loadTypeFromPartialName)System.RuntimeType.GetType(String typeName,Boolean throwOnError,Boolean ignoreCase,Boolean reflectionOnly,StackCrawlMark&stackMark)System.Type.GetType(String typeName,Boolean throwOnError,Boolean ignoreCase)at System . System.Web.Configuration.ConfigUtil.GetType上的Web.Compilation.BuildManager.GetType(String typeName,Boolean throwOnError,Boolean ignoreCase)(String typeName,String propertyName,ConfigurationElement configElement,XmlNode node,Boolean checkAptcaBit,Boolean ignoreCase)

无法为此找到任何解决方案....