IIS主机WCF服务无法正常工作 [英] IIS hosts WCF Service never work

查看:70
本文介绍了IIS主机WCF服务无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI

也许我需要为IIS进行一些设置,因为所有代码都是由VS生成的.


在VS build中创建一个新的WCF Service Application项目.它可以正常工作,转到该项目的属性,在"Web"选项卡中,选中使用IIS Web服务器",单击创建虚拟目录",成功,然后开始运行此项目,我在IE中遇到错误

HTTP错误500.19-内部服务器错误

无法访问请求的页面,因为该页面的相关配置数据无效.

<身体>
模块 IIS Web核心
通知 BeginRequest
处理程序 尚未确定
错误代码 0x800700b7
配置错误 无法添加具有唯一键属性名称"设置为"ScriptHandlerFactory"的类型为添加"的重复收集条目
配置文件 \\?\ C:\ Dev \ WCF Test \ WcfService3 \ web.config

HI

maybe I need do some settings for my IIS, since all codes are generated by VS
what I did is

Create a new WCF Service Application project in VS build it , working

go to properties of this project, in tab Web, check Use IIS Web Server, click Create Virtual Directory, successful

then start to run this project, I got error in IE

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x800700b7
Config Error Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'ScriptHandlerFactory'
Config File \\?\C:\Dev\WCF Test\WcfService3\web.config

<身体>
请求的URL http://localhost:80/WcfService3/
物理路径 C:\ Dev \ WCF Test \ WcfService3 \
登录方法 尚未确定
登录用户 尚未确定
Requested URL http://localhost:80/WcfService3/
Physical Path C:\Dev\WCF Test\WcfService3\
Logon Method Not yet determined
Logon User Not yet determined

推荐答案

有什么需要帮助的人


这篇关于IIS主机WCF服务无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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