tags:

views:

108

answers:

2

I have getting the above error when i try to start wcf service hosted in windows service. i am using net.tcp binding with port sharing and have updated the SMSSvcHost.exe.config with the correct SID. What else I could be missing which is casuing this error

i noticed on other forums people suggsting rebooting the server and running the service under admin account. don't know how relevant these suggestions are.

+1  A: 

the issue was casued by installtion of .NET Framework 4.0. It upgared net.tcp port sharing as well.

joblot
You can set the "Net.Tcp Port Sharing Service" back to use Framework 3.0/3.5 by modifying the "ImagePath" key of "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NetTcpPortSharing" back to "C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\SMSvcHost.exe". Make sure you stop and start the service of course.
Bermo
A: 

I ran into the same issue. My solution is grant Administrative right to the application by adding app.manifest file and use this file in the project properties, manifest field. If I am running in Visual Studio, I need to run VS in administrative mode.

That is kind of sucks. I am wondering others have a different solution to this.

Wayne Lo