WCF Service deployment and wcf deployment

Source: Internet
Author: User

WCF Service deployment and wcf deployment

1. Deploy the WCF Service to IIS

 

1. First, check whether IIS is installed on the computer. Generally, IIS is installed on Windows 7 and later.

2. Enable the IIS service.

Control Panel = turn on or off the s function

3. SelectThe Internet Information Service and Microsoft. NET Framework3.5.1 labels in this window, as shown in

 

4. Click OK.

5. Right-click the desktop icon "computer" = "Management =" services and applications = "Internet Information Service (IIS), and select" SMTP Email "to start

6. Click the computer name on the right side, and then you will see the "application pool" tag. Right-click the tag and add the application pool,

 

7. Click OK.

8. Right-click "WCF11", select "Advanced Settings", find the "ID" tab, click ApplicationPoolIdentity, and then click the extension button

 

 

 

9. on the Application identification page, select "custom account" = "and click" set "to set the computer user name and password, note that the user name and password here are consistent with the computer user name and password set for local boot

 

10. Click "OK" after the settings are complete. Click "OK" until the page is displayed.

 

11. Right-click "website" = "add Website"

 

12. The physical path is selected to a folder, which contains the. svn file, bin folder, and web. config. Note: When writing IP addresses to the real service address during development, the service address in Web. config may not be consistent with the real service address port during local configuration. The actual address depends on the address of the configuration file generated in the development environment. On the project = "VS" * *** property = "Web tab,

 

 

11. after entering the information, click OK.

Right-click the website you have created in the website function view and select "Manage Website" = "Browse" to view the services deployed on IIS.

 

If an error occurs, the possible cause is that ASP. NET is not installed (unable to load system. model... from the assembly ......)

In "run", run the command "% WINDIR % \ Microsoft. NET \ Framework \ v4.0.30319 \ aspnet_regiis.exe"-iru-enable

Note:

Service files cannot be stored on the desktop and should be stored in other storage directories. Otherwise, access is denied.

 

2. Deploy the service of the WCF host on the console to the server

When deploying the console WCF, you should note that the endpoint Node address in the current configuration file is written as the server IP address and the specific file name (for example, http: // 192.168.163.204: 8088/Service) after the compilation and running are successful, deploy the service on the server. In this way, you can find the service by writing the address in the address bar.

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.