Iis7 deployment of the Silverlight Application

Source: Internet
Author: User

As a SilverlightProgramThis is what we need to deploy the program to IIS. My program is developed using WCF Ria service + Silverlight. Let's take a look at my environment:
System: win7 64bit
IIS: iis7,. Net 4.0, Silverlight 4

1: Release the program first. For example, right-click the ***. Web project and choose publlic.


2: first release the program to the file system, select File System, and select the storage path. Click Publish.


The released directory contains the bin folder, which stores the DLL referenced by your program and the xap package in clientbin. There are some pages and web. config outside.

3: Open IIS and add an application on the default web site. The application pool name is test. defaappapppool is selected.


4: a 500 error occurred while browsing the website, mainly because of directory access permissions.


Open the folder properties-> Security, add iuser, and iis_iusers users, and grant the modification permission.


5: refresh the webpage. If the Framework version is incorrect, modify the defaappapppool program pool and select. NET as 4.0.


6: refresh the program again, rely on it, and the Assembly error is not found. Because we have not installed the RIA service on the server, you can download http://www.silverlight.net/getstarted/riaservices/from this location /. If you do not have the permission to install it on the server, you can copy the Assembly below to solve this problem.

Select the three assemblies in the figure, copy them to the local directory in the property form, set them to true, and re-release them once.

7: run the program here. Well, the program is displayed. But the service cannot be found.
For each domainservice, and WCF are dynamically created at runtime. The address is domain name/domainservice class name-domainservice class name. SVC. If your domainservice class is in the namespace VDP. Service. Web and the class name is customercontext, the address is http://www.yourdomain.com/vdp-service-web-customercontext.svc.

Run "C: \ WINDOWS \ Microsoft. NET \ framework \ v4.0.30319 \ aspnet_regiis-I"

Run "C: \ WINDOWS \ Microsoft. NET \ framework \ v4.0.30319 \ servicemodelreg.exe-I"

If the preceding settings fail to be resolved, check the IIS authentication. Because WCF does not support multiple verification architectures.
If your program uses form verification, you must enable form verification on the virtual directory page corresponding to IIS. Form Verification + anonymous authentication can also run properly. It cannot be used for Form Verification + integration verification.
Similarly, if you use Windows verification, make sure that integration verification is enabled.

 

Check that I have enabled Windows verification and form verification, so I need to stop Windows verification.

Disable winform verification.

Through the above configuration, the program is successfully deployed to iis7.

References:
Http://blogs.msdn.com/ B /saurabh/archive/2010/03/16/ria-services-application-deployment.aspx
Http://www.cnblogs.com/haio/archive/2010/07/12/1775809.html

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.