首页 新闻 赞助 找找看

win8 IIs 问题

0
悬赏园豆:60 [待解决问题]

无法从程序集“System.ServiceModel, Version 3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”加载类型“System.ServiceModel.Activation.HttpModule”

 如果安装了 .NET Framework 4,随后启用了 .NET Framework 3.5WCF HTTP 激活,则会发生此错误。 若要解决该问题,请在 Visual Studio 2010 命令提示符下运行下面的命令行
  C:/Windows/Microsoft.NET/Framework/v4.0.30319/aspnet_regiis.exe -iru
 
 我用Win8 在Cmd执行上面的指令,提示需要在 Trun Window Feature on or off 里面 开启或者关闭Asp.net4.5   做了这些操作后 重启 依然出错  谁遇到过类似的问题
Richard__Lee的主页 Richard__Lee | 初学一级 | 园豆:29
提问于:2014-06-05 14:38
< >
分享
所有回答(3)
0

我只知道win8不支持的东西有很多,估计换个win7就好了

刘宏玺 | 园豆:14020 (专家六级) | 2014-06-05 14:47

win7 一句 Cmd就搞定。

支持(0) 反对(0) Richard__Lee | 园豆:29 (初学一级) | 2014-06-05 14:50
0

为啥“Win8 不能用Cmd执行上面的指令”?

Launcher | 园豆:45045 (高人七级) | 2014-06-05 15:03

Start installing ASP.NET (4.0.30319.17929).
This option is not supported on this version of the operating system. Administr
ators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Win
dows Features On/Off" dialog, the Server Manager management tool, or the dism.e
xe command line tool. For more details please see http://go.microsoft.com/fwlin
k/?LinkID=216771.

支持(0) 反对(0) Richard__Lee | 园豆:29 (初学一级) | 2014-06-05 15:17

@Richard__Lee: 服务器版的限制,我看你给的提示说也可以使用 dism.exe 命令行。

C:\> DISM /Online /Enable-Feature /FeatureName:WCF-HTTP-Activation
C:\> DISM /Online /Enable-Feature /FeatureName:WCF-HTTP-Activation45

另外,你在 http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-using-aspnet-35-and-aspnet-45#TOC301268619 此页面的第 6 步中的界面中,找到“.NET Framework 4.5 Advanced Services” 节点,把它下面的“ASP.NET 4.5”和“HTTP Activation” 选中。

支持(0) 反对(0) Launcher | 园豆:45045 (高人七级) | 2014-06-05 15:32

@Launcher: Dism 命令试过了,不行; Asp.net4.5 和HTTP Activation都选中了  没用

支持(0) 反对(0) Richard__Lee | 园豆:29 (初学一级) | 2014-06-05 15:43

官方给出了的解决方案,试了不行 

To install or uninstall ASP.NET 4.5 on Windows 8 or Windows Server 2012, use one of the following options:

  • Run the following command from an administrative command prompt: dism /online /enable-feature /featurename:IIS-ASPNET45
  • For Windows 8 client computers, turn on "IIS-ASPNET45" in "Turn Windows Features On/Off" under "Internet Information Services-> World Wide Web Services -> Application Development Features -> ASP.NET 4.5".
支持(0) 反对(0) Richard__Lee | 园豆:29 (初学一级) | 2014-06-05 15:47

@Richard__Lee: 是以管理员权限运行的 DISM 吗?

支持(0) 反对(0) Launcher | 园豆:45045 (高人七级) | 2014-06-05 15:47

@Launcher: 是的  你给我的两个 是拒绝的  

dism /online /enable-feature /featurename:IIS-ASPNET45 这个虽然成功 但是没用

支持(0) 反对(0) Richard__Lee | 园豆:29 (初学一级) | 2014-06-05 15:48

@Richard__Lee: 你这个是启用 ASP.NET 4.5,不是 WCF HTTP Activation45

支持(0) 反对(0) Launcher | 园豆:45045 (高人七级) | 2014-06-05 15:51

@Richard__Lee: 按照此方法 http://www.cnblogs.com/dudu/archive/2013/05/20/3087791.html 先建立一个 ASP.NET 4.5 的应用程序,然后部署到 IIS 中,测试是否能正确访问。成功后,再在此项目上添加 WCF 服务。

 

http://www.kebabshopblues.co.uk/2013/09/20/hosting-a-wcf-service-library-project-in-iis-8-0-windows-8-0-net-4-5/

支持(0) 反对(0) Launcher | 园豆:45045 (高人七级) | 2014-06-05 15:58

@Launcher: 解决了 最后 重新安装了IIs组件 重新部署网站

支持(0) 反对(0) Richard__Lee | 园豆:29 (初学一级) | 2014-06-05 16:15
0

又学到了 一招 ,二楼强大

呓语鑫 | 园豆:313 (菜鸟二级) | 2014-06-05 15:57
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册