Monday, March 21, 2011

KeyLearnings for Abdul Azeem Khan

Problem:
Do you get any of the following WCF related communication exceptions
  •  CommunicationException"
  • "CommunicationObjectAbortedException"  
  • "IOException" and "SocketException"
     
Impact:
This can halt communication between client and server using one-way, request/response or two-way communication modes.


Solution:
You need to configure the "Namespace Reservation" setting on your computer using netsh tool developed by microsoft.

For Windows Xp use the following code:
step1: httpcfg set urlacl /u {http://URL:Port/ | https://URL:Port/} /aACL
step2: httpcfg.exe set urlacl /u http://myhost:8000/ /a "O:AOG:DAD (A;;RPWPCCDCLCSWRCWDWOGA;;;S-1-0-0)"


For Windows Vista and Windows 7 use the following code:
netsh http add urlacl url=http://+:80/MyUri user=DOMAIN\user

No comments:

Post a Comment