"对象未设置"加入net.pipe在IIS中绑定的时候 [英] "Object reference not set" when adding net.pipe binding in IIS

查看:367
本文介绍了"对象未设置"加入net.pipe在IIS中绑定的时候的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的WCF服务托管在本地,我想使用命名管道。我已在运行Windows 7,但在尝试同在家中的Windows 8作业机做之前,我不能添加net.pipe绑定 - 我只是得到一个对象未设置为一个对象的实例错误当添加任何非http绑定(除https)上

I have WCF service hosted locally that I want to use named pipes for. I have done this before on my work machine running Windows 7, but trying the same at home on Windows 8 I can't add the net.pipe binding - I simply get an "Object reference not set to an instance of an object" error when adding any non-http binding (other than https).

我采取了以下措施:

  1. 已启用了Windows通信基础非HTTP激活功能,在.NET Framework 3.5的,并在.Net框架4.5高级服务的命名管道激活功能。我有每个激活自己,并激活两者一起。
  2. 确保了Net.Pipe侦听器适配器服务是在本地运行。
  3. 添加了net.pipe协议高级设置下的站点。
  4. 重新启动我的机器,重置IIS,重置站点,回收的应用程序池,重新启动了宇宙中的一切。

有没有人遇到过?难道是Windows 8中的怪癖?

Has anyone come across this before? Could it be a quirk of Windows 8?

推荐答案

我设法结合使用命令行工作,但仍然有兴趣找出为什么IIS接口并没有完成同样的事情。我使用的命令是:

I managed to get the binding working using the command line but would still be interested to find out why the IIS interface didn't accomplish the same thing. The command I used was:

C:\ WINDOWS \ SYSTEM32 \ INETSRV \ Appcmd.exe的设置站点MYSITENAME - +绑定[协议='net.pipe',bindingInformation ='MYSITEADDRESS']

C:\Windows\System32\inetsrv\appcmd.exe set site "MYSITENAME" -+bindings.[protocol='net.pipe',bindingInformation='MYSITEADDRESS']

这篇关于"对象未设置"加入net.pipe在IIS中绑定的时候的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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