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.