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:
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.
<div>If you have actually transferred all your files to the root of your local IIS server, you should probably use:</div> <div> </div> <div>http://pegasus/default.aspx</div> <div> </div>
<div>and not:</div> <div> </div> <div>http://pegasus/SI/default.aspx</div> <div> </div> <div>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. </div> <div> </div> <div>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.</div> <div> </div> <div>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.</div> <div> </div> <div>Aiding
in scenarios like yours unfortunately involves a lot of guesswork, however, I hope this helps.</div>
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 ?
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
“C:\Inetpub\wwwroot\SI\web.config”
However, I notice that in the properties of“Default Web Site”, ( web.config ) location is set to
“C:\inetpub\wwwroot\web.config”
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.>>>
In
Visual Studio 2005 there is NO “Local IIS” option in the
Build->Publish box. Instead it asks, to write down the
“Location target”.
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 ?
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.” ?
paradise_wol...
Member
448 Points
183 Posts
My ASP.NET 2.0 Web Pages do not run inside IIS
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.
--------------------------------------------------------------------------------
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.
Source Error:
[No relevant source lines]
Source File: c:\inetpub\wwwroot\web.config Line: 0
--------------------------------------------------------------------------------
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 )
adec
Star
12495 Points
2491 Posts
Re: My ASP.NET 2.0 Web Pages do not run inside IIS
Jul 21, 2006 03:13 AM|LINK
Andre Colbiornsen
jeff@zina.co...
All-Star
87677 Points
11637 Posts
Moderator
Re: My ASP.NET 2.0 Web Pages do not run inside IIS
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?
Jeff
isabelleAM
Member
5 Points
1 Post
Re: My ASP.NET 2.0 Web Pages do not run inside IIS
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!
Isabelle
paradise_wol...
Member
448 Points
183 Posts
Re: My ASP.NET 2.0 Web Pages do not run inside IIS
Jul 23, 2006 07:08 PM|LINK
Hi adec
<<<If you have actually transferred all your files to the root of your local IIS server, you should probably use:
http://pegasus/default.aspx
and not:
http://pegasus/SI/default.aspx >>>
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 “C:\Inetpub\wwwroot\SI\web.config”
However, I notice that in the properties of “Default Web Site”, ( web.config ) location is set to “C:\inetpub\wwwroot\web.config” 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.>>>
In Visual Studio 2005 there is NO “Local IIS” option in the Build->Publish box. Instead it asks, to write down the “Location target”.
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 ?
jeff@zina.co...
All-Star
87677 Points
11637 Posts
Moderator
Re: My ASP.NET 2.0 Web Pages do not run inside IIS
Jul 24, 2006 04:55 AM|LINK
Did you configure the SI folder as an application root?
Jeff
paradise_wol...
Member
448 Points
183 Posts
Re: My ASP.NET 2.0 Web Pages do not run inside IIS
Jul 24, 2006 08:27 AM|LINK
Hi Jeff
<<<Did you configure the SI folder as an application root?>>>
No.
How to do that, Jeff ?
jeff@zina.co...
All-Star
87677 Points
11637 Posts
Moderator
Re: My ASP.NET 2.0 Web Pages do not run inside IIS
Jul 24, 2006 11:01 AM|LINK
See:
IIS Insider January 2006:
http://www.microsoft.com/technet/community/columns/insider/iisi0106.mspx
Jeff
paradise_wol...
Member
448 Points
183 Posts
Re: My ASP.NET 2.0 Web Pages do not run inside IIS
Jul 25, 2006 10:23 PM|LINK
Hi Jeff
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.” ?
jeff@zina.co...
All-Star
87677 Points
11637 Posts
Moderator
Re: My ASP.NET 2.0 Web Pages do not run inside IIS
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?
Jeff