Web Configuration...

From: arshi (anonymous_at_discussions.microsoft.com)
Date: 04/28/04


Date: Wed, 28 Apr 2004 05:21:07 -0700

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 2: <system.web>
Line 3: <customErrors mode="Off"/>
Line 4: <authentication mode="Forms">
Line 5: <forms name=".ASPXFORUM" loginUrl="login.aspx" protection="All" timeout="30" path="/" />
Line 6: </authentication>

Source File: C:\homeprojects\aspdotnet\FormBasedAuthCode\web.config Line: 4

How can I configure a virtual directory as an application in IIS?

Please view my complete web.config file:
-------------------------------------------------------------------------------------

<configuration><system.web><customErrors mode="Off"/><authentication mode="Forms"><forms name="appNameAuth" path="/" loginUrl="login.aspx" protection="All" timeout="30"><credentials passwordFormat="Clear"><user name="jeff" password="test" /><user name="mike" password="test" /></credentials></forms></authentication><authorization><deny users="?" /></authorization></system.web></configuration>
--------------------------------------------------------------------------------------

Cheers



Relevant Pages

  • Re: VS.NET 2005 and the "allowDefinition=MachineToApplication" error
    ... allowDefinition='MachineToApplication' in its configuration file. ... No, it's not, but the same rules apply for the internal web server as for IIS. ... If you need to use 'MachineToApplication' sections, you must create a virtual directory. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Logon using client certificate
    ... Right click on the virtual directory in the IIS MMC and check the ... An error occurred during the processing of a configuration file ... >below and modify your configuration file appropriately. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Windows authentication setting in web.config
    ... And the user authentication section applies to that directory only. ... Have you put all your file under the virtual directory? ... > Anonymous access in IIS, and add ASPNET user in it. ... > below and modify your configuration file appropriately. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to deploy a pool of web servers quickly?
    ... configuration file to other machines. ... This is because the configuration file ... own automation scripts using IIS administration interfaces to do the same. ... I'd like some advice on how to depoly a web server pool as quickly as ...
    (microsoft.public.inetserver.iis)
  • Re: Open ASP.NET Application with visual studio.net
    ... An error occurred during the processing of a configuration file ... Please tell us which version of Visual Studio you are using. ... If you don't find IIS, you'll need to install it from your OS CD. ... Knowledge Base article 306005 to remap VS to IIS: ...
    (microsoft.public.vsnet.general)