Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 26, 2008 07:32 PM by bojan.jovicic
Jul 21, 2006 12:28 AM|LINK
I finished a web site using Visual Studio 2005 ( ASP.NET ) and C# language.
In the Visual Studio internal server, it works perfectly, however after transferring the “SI” folder ( that contains the web site pages ) inside the “C:\inetpub\wwwroot” folder, and I typed its URL address in
the browser, http://pegasus/SI/default.aspx, I get this error message:
Server Error in '/SI' Application.
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.
[No relevant source lines]
Source File: c:\inetpub\wwwroot\web.config
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
The strange thing is that there is no "web.config" file inside "wwwroot" folder.
How can I fix this problem and make the web site run inside IIS ?
( My OS is Windows XP )
Jul 21, 2006 03:13 AM|LINK
Jul 21, 2006 03:08 PM|LINK
Has any ASP.NET page ever worked on this site? Did you install ASP.NET on the system? Have you tried using aspnet_regiis to clear this up?
Jul 21, 2006 03:15 PM|LINK
Is there a way, programmatically, to easily force IIS to register ASP.Net 2.0 for a web project at installation time, either in the custom class or in a config of the web setup project, when you already have 2.0 and 1.1 framework installed
on the machine ?
Thanks in advance!
Jul 23, 2006 07:08 PM|LINK
<<<If you have actually transferred all your files to the
root of your local IIS server, you should probably use:
No adec, actually I created a folder “SI” inside wwwroot.
<<<However, in most cases, normal procedure would be to create a "virtual
directory" called SI using the IIS Management Console and point to the location of your present SI files when prompted by the wizard you'll see when creating your virtual directory.>>>
I already did it.
<<<Depending upon your setup, you may also have to select the Asp.Net 2.0
framework in the properties dialogue, add Default .aspx to default documents if it's not precluded in the list of default docs.>>>
Inside the SI folder properties, the tab ASP.NET has only one option and is set to version and it is already
set to “2.0”.
The location is also set correctly
However, I notice that in the properties of
“Default Web Site”, ( web.config ) location is set to
and there is NO web.config there.
Since, I guess, “Default Web Site” corresponds to
“wwwroot”, which has NO “web.config” file, should it be set like that ?
<<<As you may know, there are great deployment functions included in VS
2005 which will do most of the work for you. By clicking "build > publish website > ...", and choosing "Local IIS", you can do all the necessary steps from right within VS, including creating a new Virtual folder or new Web Application for your local project.>>>
Visual Studio 2005 there is NO “Local IIS” option in the
Build->Publish box. Instead it asks, to write down the
Which contains a default option set to
“Allow this precompiled site to be updated” and I did not change it.
I tried to publish in both ways, by using the real path
( C:\inetpub\wwwroot\SI) and the virtual one (
http://pegasus/SI), but I keep getting the same message error.
2- So I still wonder if the properties of
“Default Web Site”,
in IIS, should not have also its
( web.config ) location set to identically as in “SI” folder.
If so, how to make this change, I did not find any way to change this setting ?
Jul 24, 2006 04:55 AM|LINK
Did you configure the SI folder as an application root?
Jul 24, 2006 08:27 AM|LINK
<<<Did you configure the SI folder as an application root?>>>
How to do that, Jeff ?
Jul 24, 2006 11:01 AM|LINK
IIS Insider January 2006:
Jul 25, 2006 10:23 PM|LINK
I found out that the web site folder ( SI) was already
configured as an application root. However the web page that you suggested says that an application root is indicated with a “gear” icon. But I think that probably this was the case of older ASP.NET versions.
In the ASP.NET 2.0 the icon that appears is like a box with its top open. Just to be sure that I did the right thing I removed the former configuration and I set the folder as application root again.
The problem still remains. I still get the same error message.
I am intrigued. Why the application or the browser is looking for the web.config file in “c:\inetpub\wwwroot\” instead inside the web site folder ( SI) as suggested by this part of the message error: “Failed to
start monitoring changes to 'c:\inetpub\wwwroot\web.config' because access is denied.” ?
Jul 26, 2006 04:17 AM|LINK
Is there a web.config in he root? Is the root a different app? Are you using the default asp.net process account?