IIS 8 Windows 8 Beta中的WCF服务 [英] WCF Service in iis 8 windows 8 Beta

查看:54
本文介绍了IIS 8 Windows 8 Beta中的WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个在iis 7中运行良好的WCF服务.我们正在迁移到Windows 8服务器.我们在iis 8中部署了WCF服务.当浏览SVC文件时,出现以下配置错误

定义了重复的"system.web.extensions/scripting/scriptResourceHandler"部分"

错误页面中的配置源"部分

We have a WCF Service running fine in iis 7.We are migrating to windows 8 server.We deployed the WCF Service in iis 8.When browsing the SVC File getting the below Configuration Error

"There is a duplicate ''system.web.extensions/scripting/scriptResourceHandler'' section defined "

Config Source section in the Error page

<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
   <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
   <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

推荐答案

在ASP.NET 3.5和4.0中,默认情况下已启用WebExtension命名空间(Ajax服务).这可能会导致条目重复的错误.只需删除/注释与AJAX扩展相关的条目,这应该很好.

参考:
ASP.NET已知由Microsoft报告的重大更改 [中存在重复的"system.web.extensions/脚本". . [ ^ ]

更新:刚遇到此博客条目,也可以查看此内容: IIS部署错误:定义了重复的scriptResourceHandler部分 [
In ASP.NET 3.5 and 4.0 WebExtension namespace (Ajax services) is already enabled by default. This might lead to an error that the entries are duplicated. Just remove/comment the AJAX extension related entries and it should be good.

Refer:
ASP.NET known breaking changes as reported by Microsoft[^]
There is a duplicate ''system.web.extensions/scripting..[^]

UPDATE: Just came across this blog entry, can look at this too: IIS deployment error: There is a duplicate scriptResourceHandler section defined[^]


这篇关于IIS 8 Windows 8 Beta中的WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆