Web.Config Error?

  • Thread starter Thread starter Sam
  • Start date Start date
S

Sam

I try to create login page name authentication.aspx and encounter following
error message.


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 5: </appSettings>
Line 6: <system.web>
Line 7: <authentication mode="Forms">
Line 8: <forms name="Intranet" loginUrl="authentication.aspx"
protection="All" path="/" timeout="20"/>
Line 9: </authentication>

Source File: c:\inetpub\wwwroot\JDE_Archival\authentication\web.config
Line: 7
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.209; ASP.NET
Version:1.0.3705.0

Location c:\inetpub\wwwroot\JDE_Archival\authentication\authentication.aspx

Please advise.
 
Hi Sam,,

Try to change your node <authentication mode=3D"Forms"> and run.

Are you using WinXP OS? Coz WinXP has restriction of having only one
application ie. root so install website into that root directory. If above
method doesn't work and u r using WinXP then try this method.

With Best Regards
Naveen K S
 
Back
Top