http://www.cnblogs.com/yiyisawa/archive/2008/12/16/1356191.html wcf client与webservice通信(-)只修改配置文件而改变服务端 一文中如果要将wcf service或web service host 到iis中去的话(之前没有host 到iis中去,只是临时运行service,然后取临时服务地址),有几点需要注意的地方:

一.当共用一个wcf client 调用wcf service or web service时,会在wcf client 调用web service会出现issue:

The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,Kerberos,NTLM'.

解决方案:

在wcf client的配置文件的绑定中安全设置加上以下设置,即可成功调用。详情参见:

http://www.kodyaz.com/blogs/software_development_blog/archive/2008/02/25/849.aspx
Code

 

 二.在iis中浏览webservice时出现大红色的Service Unavailable。

解决方案:

Internet Information Services(iis) Manager--->web sites ---> 具体项目的虚拟目录-->右键属性--->permissions:

1.添加以下权限:

iis_WPG

NETWORK SERVICE

Users(Yiyisawa\Users)这个要根据域名来添加,(貌似)

Internet Information Services(iis) Manager--->web sites ---> 具体项目的虚拟目录-->右键属性--->properties-->Directory Security--->Authentication and access control-->edit--->选中Enable anonynous access 即可。

另:因为要HOST到IIS中去,期间iis出故障,重装IIS,重装过程中出现需要I386文件:

插入一张系统盘,引导到盘符下即可找到。

posted on 2009-01-13 11:50  yiyisawa  阅读(1262)  评论(0编辑  收藏  举报