3

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).

I have taken the following steps:

  1. Enabled the "Windows Communication Foundation Non-HTTP Activation" feature in .Net Framework 3.5, and the "Named Pipe Activation" feature under .Net Framework 4.5 Advanced Services. I have had each activated on its own, and had both activated together.
  2. Ensured that the Net.Pipe Listener Adapter service is running locally.
  3. Added the "net.pipe" protocol to the site under Advanced Settings.
  4. Restarted my machine, reset IIS, reset the site, recycled the application pool, rebooted the universe and everything in it.

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

3 Answers 3

5

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 set site "MYSITENAME" -+bindings.[protocol='net.pipe',bindingInformation='MYSITEADDRESS']

Sign up to request clarification or add additional context in comments.

Comments

3

Actually for PS4 format was changed

appcmd set site "sitename" /bindings:"net.pipe/*"

keep in mind that this command removes the other bindings

2 Comments

+1, but you should mention that this command removes the other bindings.
Exactly. This command replaces all other existing bindings. Had to add them all over again. Anyway, I'm still wondering why the IIS interface did not allow me to do the same thing.!
0

There is a minor typo in there. It should be:

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.