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