Use WAS to host net. tcp WCF server, net. tcpwcf
- First, add Windows Features
- Confirm to open the following services
Net. Tcp Listener Adapter
Net. Tcp Port Sharing Service
Windows Process Activation Service
- Add the net. tcp protocol to the high-availability settings of the website.
- Create a new Application in IIS and specify the path to the development project.
Make sure that the address in web. config is net. tcp: // localhost/Application name.
Now that the service has been deployed, the client can be properly asked. If you want to query the data volume, you also need to configure the external settings.
The reason is that DefaultAppPool uses ApplicationPoolIdentity. You cannot directly query the data volume. You need to add a login token to SQL Server.
Add a Login role named iis apppool \ DefaultAppPool to Security-Login.
In User Mapping, add quota permission for the data volume that needs to be queried. So far, WAS can normally query the data volume.
Ask a question about nettcp debugging in wcf
To bind with net. tcp, we recommend that you host it in the console or service. If you want to host it under IIS, you must enable several functions of IIS.
How to install and configure the WCF activation component
The following section describes how to install (or confirm installation) the WCF activation component. Configure WAS to support non-HTTP protocol. The following procedure configures TCP activation for Windows Vista. After installing and configuring WAS, see How to: host the WCF Service in WAS to learn how to create a non-HTTP endpoint WCF Service that publicly uses WAS. To install the non-HTTP activation component of WCF, click the start button and then click Control Panel ". Click programs, and then click programs and functions ". On the "task" menu, click "enable or disable Windows function ". Search for a. NET Framework 3.0 node, select the node, and expand it. Select the "WCF non-HTTP activation component" box and save the settings. Configure WAS to support TCP activation. To support net. tcp activation, you must first bind the default website to a net. tcp port. You can perform this operation by using Appcmd.exe installed with the IIS 7.0 management toolset. In the Administrator-level command prompt window, run the following command.