WCF Service - connecting by net.tcp

Posted on 2013-10-04
Medium Priority
Last Modified: 2013-10-14
I receive the following calling my WCF Service using the net.tcp protocol on IIS7(WAS)

[The message could not be dispatched because the service at the endpoint address 'net.tcp://localhost:9090/AppointmentServiceIISHost/AppointmentServiceIISHost.svc' is unavailable for the protocol of the address.

I enabled the protocol on the website and the application. I enable Non-HTTP activation.
Question by:metro156
  • 4
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39548218
Did you enable net.tcp on the site (not your application, but the whole site)?

Author Comment

ID: 39548435
Yes enabled protocol ( http,net.tcp)  on the Default Website. I also edited permission of application by giving permissions to the IIS_IUSR and Network Service accounts.

I received the same message below:

The message could not be dispatched because the service at the endpoint address 'net.tcp://localhost:9090/AppointmentServiceIISHost/AppointmentServiceIISHost.svc' is unavailable for the protocol of the address.

Author Comment

ID: 39551275
I think I got further; I am receiving this message now:

There was no endpoint listening at net.tcp://localhost:9090/AppointmentServiceHostIISHost/AppointmentServiceIISHost.svc that could accept the message. This is often caused by an incorrect address or SOAP action.

Accepted Solution

metro156 earned 0 total points
ID: 39560357
Resolved by setting permissions on my WCF Service directory to group IIS_IUSRS  and also changing my SqlConnection to using a User ID and Password that was in the Database as a user and login.  Otherwise it was trying to log into the Sql Server using the IIS_USRS group id.

Because  my WCF Service directory did not have the IIS_IUSRS in its security properties that caused  a lot of grief.  I did not place this under c:\inetpub\wwwroot because my instructions from a document that I received a year ago from an instructor did not indicate this can be issue.

Author Closing Comment

ID: 39570365
See above comment.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This article describes and provides a custom-made tool I wrote to give businesses a means of identifying commercial music content, without having to expend too much effort. Business recordings are easily identified from possibly illegal music files …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this video I will demonstrate how to set up Nine, which I now consider the best alternative email app to Touchdown.

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question