System.Web.HttpRuntime.HostingInit
(1)
Windows 2003 Server
(1)
HostingEnvironmentFlags
(1)
ASP.NET
(1)
IIS
(1)
Application
(1)
Resource
(1)
Control
(1)

Configuration Error Message

Asked By Albert Frausto
26-Jan-10 09:16 PM
Hello. I have a simple Hello-World.aspx webpage that I have uploaded on Windows
2003 Server with .NET Framework 2.0.50727. When I try to access the
application from the browser on the web server I get the following web error:

----------------------------------------------------------
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 'd:\inetpub\wwwroot\web.config' because access
is denied.

Source Error:

[No relevant source lines]

Source File: d:\inetpub\wwwroot\web.config    Line: 0
--------------------------------------------------------------

The Application event log on the server shows the following:

--------------------------------------------------------------
Event code: 3008
Event message: A configuration error has occurred.
Event time: 1/26/2010 10:07:24 AM
Event time (UTC): 1/26/2010 6:07:24 PM
Event ID: 0a7a285d1dc442f2beae9eb280e790d2
Event sequence: 1
Event occurrence: 1
Event detail code: 0

Application information:

Application domain: /LM/W3SVC/1/Root/cms-apps/soecs-6-129090028445040279
Trust level: Full
Application Virtual Path: /cms-apps/soecs
Application Path: d:\inetpub\wwwroot\cms-apps\soecs\
Machine name: IISSTAGE

Process information:

Process ID: 4244
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 'd:\inetpub\wwwroot\web.config' because
access is denied. (d:\inetpub\wwwroot\web.config)

Request information:

Request URL: http://iisstage/cms-apps/soecs/default.aspx
Request path: /cms-apps/soecs/default.aspx
User host address: 99.99.99.99
User:
Is authenticated: False
Authentication Type:

--------------------------------------------------------------

I have added the NETWORK SERVICE account to /cms/seocs root and gave it full
control. As well, I gave the ASP.NET group modify rights to the folder. But
that did not make a difference.

The odd thing about it is that there is no web.config file at
d:\inetpub\wwwroot\web.config. Does there need to be one?

Thanks for you assistance with this.

lutHi Albert,ASP.

Alexey Smirnov replied to Albert Frausto
27-Jan-10 09:47 AM
l
ut

Hi Albert,

ASP.NET requires read, execute, and list access for the NETWORK
SERVICE account on the root Web site or on any virtual directory. Did
you add access for the main "/" root?

More at: http://support.microsoft.com/kb/316721/

Hope this helps.

Alexey,Thanks for the help.

Albert Frausto replied to Alexey Smirnov
28-Jan-10 05:00 PM
Alexey,

Thanks for the help.

I did as you instructed but I am still getting the same error message. Does
there need to be a web.config file in the root directory
(d:\inetpub\wwwroot\) ?

Thanks,
Albert

sfullr. ButNo, it is not required.I tried to test your configuration.

Alexey Smirnov replied to Albert Frausto
29-Jan-10 03:36 AM
s
full
r. But

No, it is not required.

I tried to test your configuration. I created d:\inetpub\wwwroot and
located default.aspx in it

----------------
----------------

http://localhost/default.aspx -- it works

Then I created d:\inetpub\wwwroot\cms-apps\soecs and located
default.aspx in it

http://localhost/cms-apps/soecs/default.aspx -- it works

After that, I went to IIS, selected website/cms-apps/soecs, Properties
and created new application

http://localhost/cms-apps/soecs/default.aspx -- it works

So, I does not required any web.config in the root directory.

Try to follow my example and create new directories and see in what
step it stops working.

Hope this helps.
Hello Alexey,I haven???
Albert Frausto replied to Alexey Smirnov
03-Feb-10 04:19 PM
Hello Alexey,

I haven???t had any luck.  The permissions appear to be the same.  I even
tried giving the Everyone group ???Full Control??? again just to try to rule out
permissions.  I???m not sure why the wwwroot works but wwwroot\cms-apps\seocs
doesn???t?  I???m still seeing the following error in the event logs even though
I???ve given Network Service full control of the directory:

Event message: A configuration error has occurred.
Event time: 1/29/2010 2:09:27 PM
Event time (UTC): 1/29/2010 10:09:27 PM
Event ID: a7ab1e6bd52c4505a66de1b8156745ac
Event sequence: 1
Event occurrence: 1
Event detail code: 0

Application information:

Application domain: /LM/W3SVC/1/Root/cms-apps/seocs-6-29092765676908591
Trust level: Full
Application Virtual Path: /cms-apps/seocs
Application Path: d:\inetpub\wwwroot\cms-apps\seocs\
Machine name: IISSTAGE

Process information:
Process ID: 2388
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
'd:\inetpub\wwwroot\cms-apps\web.config' because access is denied.
(d:\inetpub\wwwroot\cms-apps\web.config)

Request information:
Request URL: http://iisstage.pacific.edu/cms-apps/seocs/default.aspx
Request path: /cms-apps/seocs/default.aspx
User host address: 10.10.4.35
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
Thread ID: 5
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.
evenule out\seocsen though08591pxom/fwlink/events.asp.Doese it fullolder. But
Alexey Smirnov replied to Albert Frausto
03-Feb-10 06:13 PM
even
ule out
\seocs
en though
08591
px
om/fwlink/events.asp.
Does
e it full
older. But
Hello Alexey,The reason for the change in error message is because when we
Albert Frausto replied to Alexey Smirnov
17-Feb-10 11:43 AM
Hello Alexey,

The reason for the change in error message is because when we first placed
the default.aspx file (the one in cms-apps\seocs) file in the wwwroot\
directory and browsed the page at http://www.domainname.com/default.aspx we
received no errors. Initially, we were receiving the error message at this
point, but it was resolved.

it is only when we moved the default.aspx page to wwwroot\cms-apps\soecs\
that we received the change in the error message.

And in both scenarios there were no web.config files. Just fyi, cms-apps is
not a virtual directory.

Thanks,
Albert
Configuration Error Message
james replied to Albert Frausto
02-Mar-10 10:58 PM
Hi,



Even I have faced the same issue. I have added



IIS-Resource-ASPNET

NETWORK SERVICE users to wwwroot folder with below permissions and its worked for me.



1) Read & Execute

2) List Floder Contents

3) Read







Regards,

Srini
dsis=A0I evento rule outapps\seocss even though676908591file:t.aspxgs)ft.
Alexey Smirnov replied to Albert Frausto
03-Mar-10 02:52 AM
d
s
is
=A0I even
to rule out
apps\seocs
s even though
676908591
file:
t.aspx
gs)
ft.com/fwlink/events.asp.
age. Does
Post Question To EggHeadCafe