Try merging any differing entries from the child web.config (in the subdirectory) into the parent web.config (in the root folder) and then renaming the child web.config to something else (say, "unused.config") (as opposed to "nuking" it).
As for the connection string, a "Data Source" in a connection string refers to the Database Server Name with Address in the format "ServerName\InstanceName". Therefore, it is not two databases that they could be referring to, but two database servers! However, it is up to you to determine if the names "vcnsql82.webhost4life.com" and "VCNSQL82\I82", in fact, resolve to the same database server or to different ones. If it's the same thing, your problem regarding merging the entries is solved. If they are different servers, you need to find out why two different database servers were used and what's the difference between them. As an explanatory note, the error message is alluding to the fact that there are certain entries in a config file that are only allowed if the directory (in which the config file resides) is configured as an Application directory in IIS. Therefore, if you have access to the IIS console of the web server, you could also simply create an IIS application on that particular folder. But throughout this answer, I've assumed that you don't have that access. On Jul 2, 10:45 am, OccasionalFlyer <[email protected]> wrote: > I more or less maintain a web site for an academic organization I am > a member in. The site was redone in ASP.NET about three years ago by > someone else. I have read some in a few books and articles about > ASP.NET but this is not a technology I normally program in and > therefore every problem seems like a big deal. The programmer who set > it up wrote a utility for searching text files on the site. I never > use this but a member of the organization recently tried and got a > nasty error: > > 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: It is an error to use a section registered as > allowDefinition='MachineToApplication' beyond application level. This > error can be caused by a virtual directory not being configured as an > application in IIS. > > Source Error: > > Line 129: </connectionStrings> > Line 130: <system.web> > Line 131: <sessionState cookieless="AutoDetect" /> > Line 132:<!-- > Line 133: <customErrors defaultRedirect="Error.aspx" > mode="RemoteOnly" /> > > Source File: \esources_ibr\web.config Line: 131 > > Show Additional Configuration Errors: > > It is an error to use a section registered as > allowDefinition='MachineToApplication' beyond application level. This > error can be caused by a virtual directory not being configured as an > application in IIS. (\esources_ibr\web.config line 139) > > It is an error to use a section registered as > allowDefinition='MachineToApplication' beyond application level. This > error can be caused by a virtual directory not being configured as an > application in IIS. (\esourrces_ibr\web.config line 148) > > It is an error to use a section registered as > allowDefinition='MachineToApplication' beyond application level. This > error can be caused by a virtual directory not being configured as an > application in IIS. (\\esources_ibr\web.config line 154) > > Version Information: Microsoft .NET Framework Version:2.0.50727.3615; > ASP.NET Version:2.0.50727.3053 > > I've shortened the URLs but i've looked at the identified lines and > don't see anything that interesting. So I don't know what needs > changing. > > In addition, this web.config file is in a subdirectory of the main > directory for the site's contents. That directory also has a > web.config file and the only difference is see is that the higher one > says: > <connectionStrings> > <add > name="DataAccess.Properties.Settings.MembershipManagementConnectionString" > ... > <add name="eSources" connectionString="Data > Source=vcnsql82.webhost4life.com > > and the lower one says: > <connectionStrings> > <add name="eSources" connectionString="Data Source=VCNSQL82\I82; > > Do I need to have both of these web.config files or can I solve this > problem by nuking the one in the lower directory, the one that is > causing the complaint? My own experience in other programming > languages and tools is that a database has one name. Does this syntax > mean the programmer created two databases? What can I do to solve > this? Thanks. > > Ken -- You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en or visit the group website at http://megasolutions.net
