Silverlight3 (IIS deployment) + WCF (Windows service deployment) best practices (original)

Source: Internet
Author: User

In enterprise-level application systems, the difficulty of using WCF + silverlight3 is not development, but deployment is a headache. Next I will share my deployment practices, I use silverlight3 + WCF. the SL host uses iis6.0, And the WCF host serves windows:

First, check whether ASP. net2.0 is installed in your IIS. Run the following command to install the support for ASP. net2.0. In the command line, enter:

C: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \ aspnet_regiis.exe-I

 

I will not talk about cross-origin access between WCF and Silverlight here, but I will not be able to view my examples.

 

Start deployment below:

1. Create a WCF Service InstallationProgram

Note that the cross-origin access policy file must be manually added.

Start the service after installation.

2. Deploy Silverlight to IIS:

(1) Add the MIME type. XAML application/XAML + XML and. xap application/X-Silverlight-app to IIS.

(2) Pay attention to the address of the WCF Service in servicereferences. clientconfig of Silverlight:

If it is localhost, no matter how you deploy it, you can only access it on the local machine, and the Local Area Network cannot access WCF, let alone the internet.

If Silverlight is accessed only in the LAN, you can configure localhost as your lan ip address.

If Silverlight requires both LAN access and Internet access, replace localhost with the Internet IP address and map it to the local machine on the vro. Or use tools such as peanut shells.

 

By now, the WCF Service has been enabled, and you can use an Internet IP address to access Silverlight.

 

 

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.