IBM Support

'Access is denied' on file 'c:\inetpub\wwwroot\web.config' causing 'An error occurred while trying to access server' when launching Controller

Troubleshooting


Problem

User launches Controller. User receives error message. All users affected - no users can logon.

Symptom

Screen:
An error occurred while trying to access server

Errors from the Event Viewer:
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1310
Date: 7/13/2009
Time: 11:31:57 AM
User: N/A
Computer: servername
Description:
Event code: 3008
Event message: A configuration error has occurred.
Event time: 7/13/2009 11:31:57 AM
Event time (UTC): 7/13/2009 6:31:57 PM
Event ID: 2c84b6a7a9d54deda9e26d210ae591bb
Event sequence: 1
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1/Root/Cognos8/ControllerServer-16-128919835169960800
Trust level: Full
Application Virtual Path: /Cognos8/ControllerServer
Application Path: C:\Program Files\cognos\c8\ControllerProxyServer\
Machine name: machine name

Process information:
Process ID: 5604
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:
Exception type: ConfigurationErrorsException
Exception message: An error occurred loading a configuration file: Failed to start monitoring changes to 'c:\inetpub\wwwroot\web.config' because access is denied. (c:\inetpub\wwwroot\web.config)

Request information:
Request URL: http://servername/cognos8/controllerserver/ccrws.asmx
Request path: /cognos8/controllerserver/ccrws.asmx
User host address: 172.16.1.11
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
Thread ID: 1
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags)


Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Cause

The error 'An error occurred while trying to access server' is generic - there are a huge number of possible causes for this message. See separate IBM Technote # for more examples.

This IBM Technote specifically relates to the scenario where the Event Log contains the messages above, and the message in the section below is also present.

Diagnosing The Problem

Launch the following link:
http://<yourservername>/cognos8/controllerserver/ccrws.asmx

In this Technote's scenario, you will be presented with the following error:

    Server Error in '/Cognos8/ControllerServer' 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: An error occurred loading a configuration file: Failed to start monitoring changes to 'c:\inetpub\wwwroot\web.config' because access is denied.

Resolving The Problem

Check the NTFS permissions for the folder C:\InetPub\wwwroot.

Ensure that the Windows account 'Network Service' has 'full control' NTFS permissions for wwwroot.

Configuration Error.doc

[{"Product":{"code":"SS9S6B","label":"IBM Cognos Controller"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Controller","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.4","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 June 2018

UID

swg21395843