473,545 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Configuration Error : Web.Config [No Relevant Source Line]

Hi there, I recieve this error

Server Error in '/integrate' 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:
Access to the path 'C:\Inetpub\www root\integrate\ web.config' is
denied.

Source Error:
[No relevant source lines]
Source File: C:\Inetpub\wwwr oot\integrate\w eb.config Line: 0
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
ASP.NET Version:2.0.507 27.210

This is the scenario
1. The code was working fine before
2. I Copy the "integrate" folder, the folder where my code is, and
made a backup "copy of integrate"
3. Then I copy the codes from development to production into the
"integrate" folder
4. Run the code, I recieved the error
5. I revert back to original folder by DELETING all the files. Open
the backup, copy all the files from "copy of integrate" to "integrate"
folder.
6. Run the code, I recieved the same error
7. IIS Reset
8. Run the code, same error

I am totally blur on what's going on here. If the webconfig and all
the files are all the same with the original state, why is it giving
that error?

Please do help. Thanks in advance.

//Jack

Apr 19 '07 #1
4 57016
On Apr 19, 5:11 pm, aSoundMind <jackmuli...@gm ail.comwrote:
Hi there, I recieve this error

Server Error in '/integrate' 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:
Access to the path 'C:\Inetpub\www root\integrate\ web.config' is
denied.

Source Error:

[No relevant source lines]

Source File: C:\Inetpub\wwwr oot\integrate\w eb.config Line: 0

---------------------------------------------------------------------------*-----
Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
ASP.NET Version:2.0.507 27.210

This is the scenario
1. The code was working fine before
2. I Copy the "integrate" folder, the folder where my code is, and
made a backup "copy of integrate"
3. Then I copy the codes from development to production into the
"integrate" folder
4. Run the code, I recieved the error
5. I revert back to original folder by DELETING all the files. Open
the backup, copy all the files from "copy of integrate" to "integrate"
folder.
6. Run the code, I recieved the same error
7. IIS Reset
8. Run the code, same error

I am totally blur on what's going on here. If the webconfig and all
the files are all the same with the original state, why is it giving
that error?

Please do help. Thanks in advance.

//Jack
Hi again,

I forgot to include my web.config code

<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config. comments usually located in
\Windows\Micros oft.Net\Framewo rk\v2.x\Config
-->
<configuratio n>
<appSettings/>
<connectionStri ngs>
<add name="MSPConnSt ring" connectionStrin g="Data
Source=JKTGRHXS APPS2;Initial Catalog=Project Server;Integrat ed
Security=True;"
providerName="S ystem.Data.SqlC lient" />
</connectionStrin gs>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true"/>
<!--
The <authentication section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authenticati on mode="Windows"/>
<!--
The <customErrorsse ction enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.

<customErrors mode="RemoteOnl y"
defaultRedirect ="GenericErrorP age.htm">
<error statusCode="403 " redirect="NoAcc ess.htm" />
<error statusCode="404 " redirect="FileN otFound.htm" />
</customErrors>
-->
</system.web>
</configuration>

//Jack

Apr 19 '07 #2
I'm guessing that ASP.NET account (the account .NET uses to run web sites)
does not have at least read access to your web.config file. It seems that
for some reason when you created the new folder C:\Inetpub\wwwr oot\integrate,
it didn't inherit the wwwroot default security settings.

HTH,

--
Konstantinos Pantos,
Software Engineer
Microsoft MVP [ASP.NET]
http://kostas.pantos.name
http://blog.pantos.name
On Apr 19, 5:11 pm, aSoundMind <jackmuli...@gm ail.comwrote:
>Hi there, I recieve this error

Server Error in '/integrate' Application.
---------------------------------------------------------------------
------------
Configuratio n Error
Description: An error occurred during the processing of a
configuratio n file required to service this request. Please review
the
specific error details below and modify your configuration file
appropriatel y.
Parser Error Message: An error occurred loading a configuration file:
Access to the path 'C:\Inetpub\www root\integrate\ web.config' is
denied.

Source Error:

[No relevant source lines]

Source File: C:\Inetpub\wwwr oot\integrate\w eb.config Line: 0

---------------------------------------------------------------------
------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
ASP.NET Version:2.0.507 27.210
This is the scenario
1. The code was working fine before
2. I Copy the "integrate" folder, the folder where my code is, and
made a backup "copy of integrate"
3. Then I copy the codes from development to production into the
"integrate" folder
4. Run the code, I recieved the error
5. I revert back to original folder by DELETING all the files. Open
the backup, copy all the files from "copy of integrate" to
"integrate"
folder.
6. Run the code, I recieved the same error
7. IIS Reset
8. Run the code, same error
I am totally blur on what's going on here. If the webconfig and all
the files are all the same with the original state, why is it giving
that error?

Please do help. Thanks in advance.

//Jack
Hi again,

I forgot to include my web.config code

<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config. comments usually located in
\Windows\Micros oft.Net\Framewo rk\v2.x\Config
-->
<configuratio n>
<appSettings/>
<connectionStri ngs>
<add name="MSPConnSt ring" connectionStrin g="Data
Source=JKTGRHXS APPS2;Initial Catalog=Project Server;Integrat ed
Security=True;"
providerName="S ystem.Data.SqlC lient" />
</connectionStrin gs>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true"/>
<!--
The <authentication section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authenticati on mode="Windows"/>
<!--
The <customErrorsse ction enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnl y"
defaultRedirect ="GenericErrorP age.htm">
<error statusCode="403 " redirect="NoAcc ess.htm" />
<error statusCode="404 " redirect="FileN otFound.htm" />
</customErrors>
-->
</system.web>
</configuration>
//Jack

Apr 19 '07 #3
On Apr 19, 6:25 pm, Konstantinos Pantos <kpan...@dolnet .grwrote:
I'm guessing that ASP.NET account (the account .NET uses to run web sites)
does not have at least read access to your web.config file. It seems that
for some reason when you created the new folder C:\Inetpub\wwwr oot\integrate,
it didn't inherit the wwwroot default security settings.

HTH,

--
Konstantinos Pantos,
Software Engineer
Microsoft MVP [ASP.NET]http://kostas.pantos.n amehttp://blog.pantos.nam e
On Apr 19, 5:11 pm,aSoundMind<j ackmuli...@gmai l.comwrote:
Hi there, I recieve this error
Server Error in '/integrate' 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:
Access to the path 'C:\Inetpub\www root\integrate\ web.config' is
denied.
Source Error:
[No relevant source lines]
Source File: C:\Inetpub\wwwr oot\integrate\w eb.config Line: 0
---------------------------------------------------------------------
------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
ASP.NET Version:2.0.507 27.210
This is the scenario
1. The code was working fine before
2. I Copy the "integrate" folder, the folder where my code is, and
made a backup "copy of integrate"
3. Then I copy the codes from development to production into the
"integrate" folder
4. Run the code, I recieved the error
5. I revert back to original folder by DELETING all the files. Open
the backup, copy all the files from "copy of integrate" to
"integrate"
folder.
6. Run the code, I recieved the same error
7. IIS Reset
8. Run the code, same error
I am totally blur on what's going on here. If the webconfig and all
the files are all the same with the original state, why is it giving
that error?
Please do help. Thanks in advance.
//Jack
Hi again,
I forgot to include my web.config code
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config. comments usually located in
\Windows\Micros oft.Net\Framewo rk\v2.x\Config
-->
<configuratio n>
<appSettings/>
<connectionStri ngs>
<add name="MSPConnSt ring" connectionStrin g="Data
Source=JKTGRHXS APPS2;Initial Catalog=Project Server;Integrat ed
Security=True;"
providerName="S ystem.Data.SqlC lient" />
</connectionStrin gs>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true"/>
<!--
The <authentication section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authenticati on mode="Windows"/>
<!--
The <customErrorsse ction enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnl y"
defaultRedirect ="GenericErrorP age.htm">
<error statusCode="403 " redirect="NoAcc ess.htm" />
<error statusCode="404 " redirect="FileN otFound.htm" />
</customErrors>
-->
</system.web>
</configuration>
//Jack
Hi Konstantinos,

I hvn't checked the security permission for web.config. Would you mind
explaning more on "C:\Inetpub\www root\integrate,
it didn't inherit the wwwroot default security settings."

How to make it inherit the default security settings?

Thanks
Apr 19 '07 #4
Right Click on the folder "integrate" then "Security" tab, button "Advanced"
check at the bottom "Replace permission entries...."

And hit OK button.

Then all files in that folder will inherit permissions of that folder.

Usually newly created files inherit parent's folder permissions. But if you
created file some other folder and then move it to another folder then
permissions stay and not get inherited

George.

Hi Konstantinos,

I hvn't checked the security permission for web.config. Would you mind
explaning more on "C:\Inetpub\www root\integrate,
it didn't inherit the wwwroot default security settings."

How to make it inherit the default security settings?

Thanks


Apr 19 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1742
by: Dean | last post by:
This is a problem in ASP.NET, when I run an application from Visual Studio (2003) when I do a "start without debugging". The asp page uses objects that I have built in 3 other projects, BusinessObjects, GeneralUtilities, and ASPNETMenu (purchased). Sometime when I will get an error message that says: Parser Error Message: Access is denied:...
1
5676
by: Ivan | last post by:
Hi, I have moved an entire solution from .netframework 1.0 to 1.1; also I have migrated the solution to VS2003. After this I have added a new project (Web) to previous solution; I'm referencing a DLL from other project within the solution and including some user controls within my new project, but whenever I try to execute a new aspx I have...
2
351
by: ansank | last post by:
I had .net framework 1.1 installed in a windows 2003 server. My asp.net sites were working fine. I went ahead and installed visual studio .net (along with front page extensions). Now, if I create a virtual under inetpub\wwwroot, I get the following error. If I create a virtual and map it to any other folder in the file system it works fine!!!...
4
5320
by: alex444 | last post by:
Any help on this error much appreciated. Application works on dev but not on 3d party host server (with useless support). ========================== Server Error in '/' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a...
1
1991
by: Jaime Stuardo | last post by:
Hi all... I have Windows XP with IIS 5.1 I created a Web project under the root web site using Visual Studio 2005 (and ASP.NET 2.0). This is The final URL of the site: http://localhost/GestionInterna/Default.aspx After trying to view the page, I got the error:
10
3687
by: Rider | last post by:
Hi, simple(?) question about asp.net configuration.. I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm first start application the follow message shown. ========= Server Error in '/QuickStartv20' Application. -------------------------------------------------------------------------------- Configuration Error...
2
3475
by: clintonG | last post by:
Compiler Error Message: CS0006: Metadata file 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\MyProjectName\331c872a\fd27ed37\App_Code.wg0_ken7.dll' could not be found That's the only error I get when VS2005 goes boom. This is really bugging me big time as I often have to reboot several times a day because VS2005...
3
302
by: Dirk | last post by:
Hi, I started with asp.net 2.0. I defined directory inetpub/wwwroot/aspnet as an application in IIS and the directory security is set to "anonymous access" (even when unchecked i get the error). When starting a simple file like: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!DOCTYPE...
0
1747
by: pebelund | last post by:
Im having a problem I cant solve atm. I got a webbserver, where Im doing a search, that will list some information. The search goes to a seperate SQL 2000 server, to a stored procedure that runs the query. If I run this query alone on the database, it takes approx 5-7min to list the result (heavy duty job yes ...) The problem is that when...
0
7467
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7401
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7807
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7756
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
4944
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3442
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1014
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
703
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.