473,396 Members | 1,895 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,396 software developers and data experts.

Web.config not recognized in root directory

I am using the new "web deployment addin" in VS 2005 to output my web
site. The web site is correctly output (assemblies generated in the
\bin subdirectory). The web site on my developement machine (WIN 2K
OS) can be accessed and works correctly from other workstations (i.e no
problem here).

The problem:
When deploying the web site (by just copying the correct subdirectories
and creating the application in IIS 6) on 2 dffering Windows Server
2003 OS's, IIS 6 (or ASP.NET) fails to recognize that there is a
web.config file in the web application's main root directory. At least
that is what I think is going on. I get an error message showing that
it is using the default membership provider , as designated in the
default machine.config file (see the error message that we are getting
from IIS 6 below). I know that I have replaced this section (the
membership providers) in the web.config file, and it works fine on my
development workstations (see that section below). Don't ask me how,
but I actually got the web site up and running on one of the Windows
2003 servers. I thought that I knew what I had done, but I can not
reproduce a successful deployment on the 2nd Windows 2003 Server. We
have been trying to solve this problem for 2 days and are getting
nowhere. The ASP.Net tab/snapin is showing that it is reading the
web.config correctly but we think that this is bogus as it is probably
just reading the file (i.e that doesn't mean the IIS 6 actually uses
it). This web site is supposed to go live next Monday. Does anyone
have any ideas as to what is going on??????? Any help or ideas would
be greatly appreciated!
The following error message indicates to me that it is not even
"loading" (seeing) my web. config file
************************************************** ************************************************** ***
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: The connection name 'LocalSqlServer' was not
found in the applications configuration or the connection string is
empty.

Source Error:
Line 164: <providers>
Line 165: <add name="AspNetSqlRoleProvider"
connectionStringName="LocalSqlServer" applicationName="/"
Line 166: type="System.Web.Security.SqlRoleProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
Line 167: <add name="AspNetWindowsTokenRoleProvider"
applicationName="/"
Line 168:
type="System.Web.Security.WindowsTokenRoleProvider , System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Source File:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Conf ig\machine.config
Line: 166
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.42

************************************************** *******************************************
************************************************** ********************************************
HERE IS SAME SECTION IN WEB.CONFILE FILE

<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="MembershipSqlServer"
enablePasswordRetrieval="true" enablePasswordReset="true"
requiresQuestionAndAnswer="true" applicationName="/"
passwordFormat="Encrypted" requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5" passwordAttemptWindow="10"
minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0"
passwordStrengthRegularExpression=""/>
<add name="AdminSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="MembershipSqlServer"
enablePasswordRetrieval="true" enablePasswordReset="true"
requiresQuestionAndAnswer="false" applicationName="/"
passwordFormat="Encrypted" requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5" passwordAttemptWindow="10"
minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0"
passwordStrengthRegularExpression=""/>
</providers>
</membership>

************************************************** ************************************************** **
Jim Savarino
Group Health Cooperative
Seattle WA 98103

Jan 19 '06 #1
1 2264
OK. I answer my own post to ensure no one spends time on this. This
has nothing to do with it not reading the web.config file. I quickly
inspected the error message, saw localsqlserver and thought that it was
telling me that it was was trying to load the default membership
provider. WRONG! I had changed the machine.config file on my local
computer so as to refer to a different role provider. I moved my
workstation's machine.config to one of the Win 2003 OS's yesterday
which is why it started working. The external production Windows 2003
server has the original machine.config.

Bottom line: I was not overriding the role provider in my web.config
file so the error message is in fact correct

J.S.

savajx1 wrote:
I am using the new "web deployment addin" in VS 2005 to output my web
site. The web site is correctly output (assemblies generated in the
\bin subdirectory). The web site on my developement machine (WIN 2K
OS) can be accessed and works correctly from other workstations (i.e no
problem here).

The problem:
When deploying the web site (by just copying the correct subdirectories
and creating the application in IIS 6) on 2 dffering Windows Server
2003 OS's, IIS 6 (or ASP.NET) fails to recognize that there is a
web.config file in the web application's main root directory. At least
that is what I think is going on. I get an error message showing that
it is using the default membership provider , as designated in the
default machine.config file (see the error message that we are getting
from IIS 6 below). I know that I have replaced this section (the
membership providers) in the web.config file, and it works fine on my
development workstations (see that section below). Don't ask me how,
but I actually got the web site up and running on one of the Windows
2003 servers. I thought that I knew what I had done, but I can not
reproduce a successful deployment on the 2nd Windows 2003 Server. We
have been trying to solve this problem for 2 days and are getting
nowhere. The ASP.Net tab/snapin is showing that it is reading the
web.config correctly but we think that this is bogus as it is probably
just reading the file (i.e that doesn't mean the IIS 6 actually uses
it). This web site is supposed to go live next Monday. Does anyone
have any ideas as to what is going on??????? Any help or ideas would
be greatly appreciated!
The following error message indicates to me that it is not even
"loading" (seeing) my web. config file
************************************************** ************************************************** ***
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: The connection name 'LocalSqlServer' was not
found in the applications configuration or the connection string is
empty.

Source Error:
Line 164: <providers>
Line 165: <add name="AspNetSqlRoleProvider"
connectionStringName="LocalSqlServer" applicationName="/"
Line 166: type="System.Web.Security.SqlRoleProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
Line 167: <add name="AspNetWindowsTokenRoleProvider"
applicationName="/"
Line 168:
type="System.Web.Security.WindowsTokenRoleProvider , System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Source File:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Conf ig\machine.config
Line: 166
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.42

************************************************** *******************************************
************************************************** ********************************************
HERE IS SAME SECTION IN WEB.CONFILE FILE

<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="MembershipSqlServer"
enablePasswordRetrieval="true" enablePasswordReset="true"
requiresQuestionAndAnswer="true" applicationName="/"
passwordFormat="Encrypted" requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5" passwordAttemptWindow="10"
minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0"
passwordStrengthRegularExpression=""/>
<add name="AdminSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="MembershipSqlServer"
enablePasswordRetrieval="true" enablePasswordReset="true"
requiresQuestionAndAnswer="false" applicationName="/"
passwordFormat="Encrypted" requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5" passwordAttemptWindow="10"
minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0"
passwordStrengthRegularExpression=""/>
</providers>
</membership>

************************************************** ************************************************** **
Jim Savarino
Group Health Cooperative
Seattle WA 98103


Jan 19 '06 #2

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

Similar topics

9
by: Darren Dale | last post by:
I have built two basic modules using distutils. One of them installs fine, but the other, I can't import modules from it. I've been pouring over the code and I cant find the problem. I know the...
6
by: Andrew Connell | last post by:
I have an app where I want virtually everything password protected/secure except for a single directory. That directory handles some custom authentication and contains my login form, but also some...
25
by: n3crius | last post by:
hi, i just got a web host with asp.net , seemed really cool. aspx with the c# or vb IN the actual main page run fine, but when i use codebehind and make another source file ( a .cs) to go with...
9
by: Benny Ng | last post by:
Hi,all, How to let the sub-directory to avoid the authentication control from Root's webconfig? I heard that we can add a new web.config to the sub-directory. And then we can slove the problem....
5
by: feng | last post by:
Hi, We just converted our VB.Net Windows exe project from VS.Net 2002 to VS.Net 2003 and ran into a problem. the MyApp.exe.config file that we use for our customized configuration settings is...
2
by: Luke Dalessandro | last post by:
I have an application with the following layout /root/ /root/Default.aspx /root/web.config /root/child/ /root/child/web.config web.config has a custom configuration section "testSection"...
12
by: Ben | last post by:
I have a group of settings that I'd like to have inherited by multiple sites. I'm trying this, but it's not working. wwwroot\group\web.config wwwroot\group\site1\web.config...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
10
by: eagle | last post by:
I have a web.config in my application that contains the connection strings to all my datasources. I want to move these connection strings to another web config up the folder hierarchy so that all...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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,...
0
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,...
0
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...

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.