【问题标题】:IIS 6 not able to pick the framework 4.0 dll when deployedIIS 6 在部署时无法选择框架 4.0 dll
【发布时间】:2013-02-09 10:32:23
【问题描述】:

我有一个使用框架 4.0 编写并部署在 IIS 6 中的服务,操作系统为 64 位 Windows Server 2003。

我的步骤

1:Installed framework 4.0 of 64 bit
2 : C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319 aspnet_regiis –i
3: C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\ServiceModelReg.exe –i
4: http://stackoverflow.com/questions/2009233/how-to-deploy-wcf-service-on-iis-6-0

在 IIS 7、操作系统 Windows Server 2008 中部署相同的代码时可以正常工作

当我浏览 url 时,它显示服务工作正常。

当我使用服务时,它会抛出一个错误,告诉这里的长度无效;它正在尝试选择导致问题的框架 2.0 dll 导致问题的代码:Encoding.Unicode.GetString(MachineKey.Decode)

【问题讨论】:

    标签: c#-4.0 iis-6


    【解决方案1】:

    确保您在服务虚拟目录的 ASP.NET 选项卡中选择了 .NET 4.0 Framework:

    【讨论】:

      猜你喜欢
      • 2012-10-22
      • 2011-01-20
      • 2013-01-31
      • 1970-01-01
      • 2014-03-23
      • 2011-06-21
      • 1970-01-01
      • 2011-08-06
      相关资源
      最近更新 更多