Use WAS to host net. tcp WCF server, net. tcpwcf

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.