Deploy the sl4 program to iis7

Source: Internet
Author: User

About half a year ago, I wrote an article about ASP. NET applications.ProgramReleased to iis7ArticleBecause sl4 is hosted on ASP. NET pages, its deployment is similar,

This article mainly records several problems encountered when deploying SL applications with files such as. SVC and. asmx.

When publishing the. SVC page, you must first install the WCF component in IIS. Here, there are detailed steps on the Internet: IIS carries the SVC File

Question:. 4. 17 not found. The requested file is a static file.

This problem is very common, and almost most people will encounter it. Solution: Install. NET Framework after installing IIS

Question 2: Disable directory browsing

Solution: one obvious advantage of iis7 is that it provides solutions to some common problems at the bottom of the page,

Click "directory browsing" --- "start ".

Question 3: Modify the default start page

Generally, you can view directories on your website. To view a page by default, You need to modify the "Default document"

Move the homepage you want to display to the first place. In fact, the above issues are some common problems in IIS deployment. The following problems are caused by the deployment of SL and. SVC files.

Question 4: Modify the servicereferences. clientconfig File

If your application dynamically reads the WCF configuration, skip this step. Otherwise, you must modify the address bound to servicereferences. clientconfig in. xap.

If you encounter problems on the release of the. asmx page, refer to this article: publish WebService

Problem 5: The page is displayed after deployment, but the function for calling the WCF method seems unavailable,

This solution is cross-origin files. There are many examples on the Internet. Remember to put the policy file under the root directory of the website.

If applications can be deployed on the LAN, see: LAN users cannot access this article.

The last thing to remember is that it is best to deploy iis7 in win7 to log on to the system as an administrator, which will save many unexpected problems and will not be described in detail. I hope this article can

A little help.

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.