![](/img/trans.png)
[英]Can't get net.pipe binding working in IIS7.5 on Windows Server 2008 R2
[英]“Object reference not set” when adding net.pipe binding in IIS
我有本地托管的WCF服务,我想使用命名管道。 我之前在运行Windows 7的工作机器上做过这个,但是在Windows 8上尝试相同的操作我无法添加net.pipe绑定 - 我只是得到一个“对象引用没有设置为对象的实例”错误添加任何非http绑定(除https以外)。
我采取了以下步骤:
有没有人遇到过这个? 这可能是Windows 8的怪癖吗?
我设法使用命令行使绑定工作,但仍然有兴趣找出IIS接口没有完成相同的事情。 我使用的命令是:
C:\\ Windows \\ System32 \\ inetsrv \\ appcmd.exe设置站点“MYSITENAME” - + bindings。[protocol ='net.pipe',bindingInformation ='MYSITEADDRESS']
实际上PS4格式已经改变了
appcmd set site "sitename" /bindings:"net.pipe/*"
请记住,此命令会删除其他绑定
那里有一个小错字。 它应该是:
C:\Windows\System32\inetsrv\appcmd.exe set site "MYSITENAME" /+bindings.[protocol='net.pipe',bindingInformation='MYSITEADDRESS']
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.