473,383 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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\wwwroot\integrate\web.config' is
denied.

Source Error:
[No relevant source lines]
Source File: C:\Inetpub\wwwroot\integrate\web.config Line: 0
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.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 56966
On Apr 19, 5:11 pm, aSoundMind <jackmuli...@gmail.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\wwwroot\integrate\web.config' is
denied.

Source Error:

[No relevant source lines]

Source File: C:\Inetpub\wwwroot\integrate\web.config Line: 0

---------------------------------------------------------------------------*-----
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.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\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings>
<add name="MSPConnString" connectionString="Data
Source=JKTGRHXSAPPS2;Initial Catalog=ProjectServer;Integrated
Security=True;"
providerName="System.Data.SqlClient" />
</connectionStrings>
<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 <authenticationsection enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrorssection 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="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.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\wwwroot\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...@gmail.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\wwwroot\integrate\web.config' is
denied.

Source Error:

[No relevant source lines]

Source File: C:\Inetpub\wwwroot\integrate\web.config Line: 0

---------------------------------------------------------------------
------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.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\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings>
<add name="MSPConnString" connectionString="Data
Source=JKTGRHXSAPPS2;Initial Catalog=ProjectServer;Integrated
Security=True;"
providerName="System.Data.SqlClient" />
</connectionStrings>
<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 <authenticationsection enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrorssection 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="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.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\wwwroot\integrate,
it didn't inherit the wwwroot default security settings.

HTH,

--
Konstantinos Pantos,
Software Engineer
Microsoft MVP [ASP.NET]http://kostas.pantos.namehttp://blog.pantos.name
On Apr 19, 5:11 pm,aSoundMind<jackmuli...@gmail.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\wwwroot\integrate\web.config' is
denied.
Source Error:
[No relevant source lines]
Source File: C:\Inetpub\wwwroot\integrate\web.config Line: 0
---------------------------------------------------------------------
------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.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\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings>
<add name="MSPConnString" connectionString="Data
Source=JKTGRHXSAPPS2;Initial Catalog=ProjectServer;Integrated
Security=True;"
providerName="System.Data.SqlClient" />
</connectionStrings>
<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 <authenticationsection enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrorssection 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="RemoteOnly"
defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.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\wwwroot\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\wwwroot\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
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,...
1
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...
2
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...
4
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....
1
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:...
10
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...
2
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 ...
3
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)....
0
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.