2011-02-20 Composite C1 installation/deployment on IIS7 (errors, troubleshooting, tips& tricks)
Notes on experience about deploying first Composite C1 application on IIS7.
- Filesystem + Create physical folder for web site/application
- IIS management + Sites + Add web site + Physical path = path from step 1.
- xcopy Composite C1 site to folder cd in step 1.
- test with browser
- errors and troubleshooting
- ACLs on server
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>
- 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.
- check ACLs on server IIS management console
- Sites + go to appropriate web site + Basic Settings + Security + give full rights to NETWORK SERVICE
- not necessary to do it on filesystem (physical folder of the site)
- Framework version
- local test on web server
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=18.104.22.168, 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
- IIS management console + Application pools + appropriate web site + Properties + change netfx version
- ACLs on server