Login

How do I switch my developer site from using Casini Web server to IIS?

Versions: n/a, FAQ number: 210, Old FAQ number: 14221

By default a developer site (SDK installation) uses the built-in Casini Web server. To change it to use IIS (5.1 is used in this example) you need to do the following.

  1. Create a Virtual Directory
  2. Configure Wildcard mapping in IIS
  3. Set ASPNET permissions

Create a Virtual Directory

 

Open IIS and create a new virtual directory under the default Web site (the name "CMS5" will be used in this example)

When the wizard asks for the path to your content, browse to the project folder containing your site and click Next >.

 

Note: Instead of creating a virtual directory you could create a new Web site and use this instead of the Virtual Directory.

Configure Wildcard mapping

Open the properties dialog for your new directory and click the Configuration button.

On the following dialog you need to make sure that ASP.NET handles all files. To do this

  1. Click Add
  2. Browse to the ASPNET application, typically a path looking like this "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll"
    • Make sure that Verbs is set to All Verbs.
    • Make sure that Script engine is checked.
    • Make sure that Check that file exists is not checked.



  3. Click Ok.

Set applicationid in web.config

You need to modify web.config to point to the correct site under the <sites> node. To find out what the applicationID is, try to browse to your site at this point. You should receive an error message saying that a site element with the correct applicationid is required in the configuration file.

Copy the required id from the errormessage and paste it in your web.config file. The sites section should look like the following sample (as long as the applicationid in the configuration file matches the one in the error message):

    <sites>

      <site description="Example Site" applicationId="/LM/W3SVC/1/Root/CMS5">

 

ASPNET Permissions

Finally you need to make sure that the local machine ASPNET account has full access rights to the root folder of your site.

EPiTrace logger