Precautions for deploying enterprise-level applications for Silverlight Development (18)

Source: Internet
Author: User

For the first time deploying Silverlight to IIS6 to develop enterprise-level applications, some problems may occur. In order to avoid detours, some common problems are summarized. Generally, there are solutions to these problems on the Internet.
Focus on the following issues.

Ø cross-origin problems

Ø
Unable to display normally when Silverlight is deployed to IIS6

Ø
Access permission for the file WCF Service corresponding to the IIS virtual directory

1. Cross-origin problems

1) add files under the WCF root directory:

Clientaccesspolicy. xml

<? Xmlversion = "1.0" encoding = "UTF-8"
?>

<Access-policy>

<Cross-domain-access>

<Policy>

<Allow-fromhttp-request-headers = "*">

<Domainuri = "*"/>

</Allow-from>

<Grant-to>

<Resourcepath = "/" include-subpaths = "true"/>

</Grant-to>

</Policy>

</Cross-domain-access>

</Access-policy>

2) Placement in a Wcf Project

2. Silverlight
Use WCF RIAServices in IIS6
Deployment Problems

1) Silverlight cannot be properly displayed

 
, Right-click the virtual directory and choose Properties> HTTP header> MIME type. Add

Extension:. xap

MIME Type: application/x-silverlight-app

Extension:. xaml

MIME Type: application/xaml + xml

3. access permissions for the WCF Service corresponding to the IIS virtual directory

Whether it is Silverlight + WCF or Silverlight + ria wcf mode.

The network service user must be added to the WCF deployment file directory, as shown in:

Otherwise, cross-origin access problems may occur.

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.