473,890 Members | 1,716 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="AspNetSql RoleProvider"
connectionStrin gName="LocalSql Server" applicationName ="/"
Line 166: type="System.We b.Security.SqlR oleProvider,
System.Web, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b03f5f7f11d50a3 a" />
Line 167: <add name="AspNetWin dowsTokenRolePr ovider"
applicationName ="/"
Line 168:
type="System.We b.Security.Wind owsTokenRolePro vider, System.Web,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a" />
Source File:
C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \Config\machine .config
Line: 166
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
ASP.NET Version:2.0.507 27.42

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

<membership>
<providers>
<clear/>
<add name="AspNetSql MembershipProvi der"
type="System.We b.Security.SqlM embershipProvid er, System.Web,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"
connectionStrin gName="Membersh ipSqlServer"
enablePasswordR etrieval="true" enablePasswordR eset="true"
requiresQuestio nAndAnswer="tru e" applicationName ="/"
passwordFormat= "Encrypted" requiresUniqueE mail="false"
maxInvalidPassw ordAttempts="5" passwordAttempt Window="10"
minRequiredPass wordLength="6" minRequiredNona lphanumericChar acters="0"
passwordStrengt hRegularExpress ion=""/>
<add name="AdminSqlM embershipProvid er"
type="System.We b.Security.SqlM embershipProvid er, System.Web,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"
connectionStrin gName="Membersh ipSqlServer"
enablePasswordR etrieval="true" enablePasswordR eset="true"
requiresQuestio nAndAnswer="fal se" applicationName ="/"
passwordFormat= "Encrypted" requiresUniqueE mail="false"
maxInvalidPassw ordAttempts="5" passwordAttempt Window="10"
minRequiredPass wordLength="6" minRequiredNona lphanumericChar acters="0"
passwordStrengt hRegularExpress ion=""/>
</providers>
</membership>

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

Jan 19 '06 #1
1 2301
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="AspNetSql RoleProvider"
connectionStrin gName="LocalSql Server" applicationName ="/"
Line 166: type="System.We b.Security.SqlR oleProvider,
System.Web, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b03f5f7f11d50a3 a" />
Line 167: <add name="AspNetWin dowsTokenRolePr ovider"
applicationName ="/"
Line 168:
type="System.We b.Security.Wind owsTokenRolePro vider, System.Web,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a" />
Source File:
C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \Config\machine .config
Line: 166
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
ASP.NET Version:2.0.507 27.42

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

<membership>
<providers>
<clear/>
<add name="AspNetSql MembershipProvi der"
type="System.We b.Security.SqlM embershipProvid er, System.Web,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"
connectionStrin gName="Membersh ipSqlServer"
enablePasswordR etrieval="true" enablePasswordR eset="true"
requiresQuestio nAndAnswer="tru e" applicationName ="/"
passwordFormat= "Encrypted" requiresUniqueE mail="false"
maxInvalidPassw ordAttempts="5" passwordAttempt Window="10"
minRequiredPass wordLength="6" minRequiredNona lphanumericChar acters="0"
passwordStrengt hRegularExpress ion=""/>
<add name="AdminSqlM embershipProvid er"
type="System.We b.Security.SqlM embershipProvid er, System.Web,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"
connectionStrin gName="Membersh ipSqlServer"
enablePasswordR etrieval="true" enablePasswordR eset="true"
requiresQuestio nAndAnswer="fal se" applicationName ="/"
passwordFormat= "Encrypted" requiresUniqueE mail="false"
maxInvalidPassw ordAttempts="5" passwordAttempt Window="10"
minRequiredPass wordLength="6" minRequiredNona lphanumericChar acters="0"
passwordStrengt hRegularExpress ion=""/>
</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
11321
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 file has been copied to site-packages/mypackage, but I cant do from mypackage import mymodule Could I get suggestions as to why a module would be installed but not registered?
6
5519
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 other pages that I need to make available to anon users. I've setup my web.config in the root directory to have the following included: <authentication mode="Forms"> <forms name=".ASPXFORMSAUTH" path="/"...
25
2876
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 the aspx (as you would realistically) I get this : Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root...
9
6503
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. Virtual directory is £ºhttp://localhost/main Sub-directory is : http://localhost/main/reminder
5
3388
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 removed when the conversion is done. It won't work even if I menully copy the file back. The settings are not get recogenized. What's going on? Thanks
2
4761
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" with the
12
4760
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 wwwroot\group\site2\web.config Where site1 & site2 are applications.
1
6527
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" setting to be "E_ALL", notices are still not getting reported. The perms on my file are 664, with owner root and group root. The php.ini file is located at /usr/local/lib/php/php.ini. Any ideas why the setting does not seem to be having an effect? ...
10
2069
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 my apps can use the same connection strings. That is supposed to be how it's done, no? Instead of the web.config being in c:\inetpub\wwwroot\myApp\web.config, I have it in c:\inetpub\wwwroot\web.config. However, I get an "Object reference not...
0
9975
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10799
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7154
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5832
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6032
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4655
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4255
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3263
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.