2011-02-20 Composite C1 installation/deployment on IIS7 (errors, troubleshooting, tips& tricks)

Date: 2011-02-20

Notes on experience about deploying first Composite C1 application on IIS7.

  1. Filesystem + Create physical folder for web site/application
  2. IIS management + Sites + Add web site + Physical path = path from step 1.
  3. xcopy Composite C1 site to folder cd in step 1.
  4. test with browser
  5. errors and troubleshooting
    1. ACLs on server
      1. remote
        1. error
          Server Error in '/' Application.
          Runtime Error
            Description: An application error occurred on the server. The current custom error
            settings for this application prevent the details of the application
            error from being viewed remotely (for security reasons). It could, however, be
            viewed by browsers running on the local server machine.
          
            Details: To enable the details of this specific error message to be viewable
            on remote machines, please create a tag within a "web.config" configuration
            file located in the root directory of the current web application. This
            <customErrors> tag should then have its  "mode" attribute set to "Off".
            <!-- Web.Config Configuration File -->
            <configuration>
            <system.web>
              <customErrors mode="Off"/>
            </system.web>
            </configuration>
          
            Notes: The current error page you are seeing can be replaced by a custom error
            page by modifying the "defaultRedirect" attribute of the application's <customErrors>
            configuration tag to point to a custom error page URL.
          
            <!-- Web.Config Configuration File -->
            <configuration>
              <system.web>
              <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
              </system.web>
            </configuration>            
          
      2. local test
        Server Error in '/' Application.
        Access to the path 'PHYSICAL_PATH\App_Data\Composite\ApplicationState\SerializedWorkflows\a4806a7b-de25-417c-b67a-f0285e56c459.bin'
        is denied. 
        
      3. solution
        1. check ACLs on server IIS management console
        2. Sites + go to appropriate web site + Basic Settings + Security + give full rights to NETWORK SERVICE
        3. not necessary to do it on filesystem (physical folder of the site)
    2. Framework version
      1. local test on web server
        1. error
          Server Error in '/' Application.
            Configuration Error
            Description: An error occurred during the processing of a configuration file required
            to service this request. Please review the specific error details below and modify your
            configuration file appropriately.
            Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute
            names are case-sensitive.
            Source Error:
            Line 6:          <error statusCode="404" redirect="Renderers/FileNotFoundHandler.ashx"/>
            Line 7:          </customErrors>
            Line 8:          <compilation debug="true" targetFramework="4.0">
            Line 9:              <assemblies>
            Line 10:                 <add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            Source File: PATH\web.config    Line: 8
            Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4209
          
        2. Solution
          1. IIS management console + Application pools + appropriate web site + Properties + change netfx version