2

安装 .NET 3.5 SP1 后,我在 Windows Server 2008 R2 上部署的 ASP.NET 应用程序出现异常。如果我用 3.5 安装它,它工作得很好,一旦我安装 SP1,它就会崩溃,并出现以下异常。

Exception type: ConfigurationErrorsException 
Exception message: Could not load type 'System.ServiceModel.Activation.HttpModule' from assembly 'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
    at 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)
    at 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)
    ... etc

到底发生了什么?

更新

安装 SP1 后运行aspnet_regiis.exe -iru修复了问题,但我仍然想要一种不需要手动干预的方法

4

1 回答 1

1

I got a similar problem 6-8 months ago but i resolved it by specifying iru parameter while running aspnet_regiis.exe(based on some post I saw from the internet). I am not sure if
its the same problem but you can try that if you want.

Update : This might help :Code project link

于 2013-08-14T12:01:29.143 回答