Re: Forms Authentication Error

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Pete Beech (peter_beech_at_hotmail.nojunk.com)
Date: 04/09/04


Date: Sat, 10 Apr 2004 01:33:13 +0200

This line indicates one possible reason:
"This error can be caused by a virtual directory not being configured as an
application in IIS."

Web.config sections can be specified to only be allowed to be modified at
the application level, i.e. modified in the root folder of your web
applications boundaries on the server. The authentication section looks like
it is one of them. At the moment, the folder which contains the web.config
where you have configured this section is not the root folder of the web
application.

There's at least two explanations for this:
1) you have tried to configure this stuff in a subfolder of your web
applications root folder
2) the virtual directory containing your app has not been configured as an
IIS web application within IIS.

So, on your server, you need to go into IIS, then to the properties for this
folder, and make sure it has an application created on it. Or, configure
this section in the web.config which exists in the root folder of your app.

HTH,
Cheers,
Pete Beech

"Brett Robichaud" <brettrobichaud@nospam.yahoo.com> wrote in message
news:OixKwSoHEHA.4052@TK2MSFTNGP12.phx.gbl...
> Is anyone familiar with this error? I have this running just fine on my
> local machine but when I pushed it out to our development server I get
this
> error. I have no idea what it is saying. Any clues?
>
> -Brett-
>
> Server Error in '/' Application.
> --------------------------------------------------------------------------

--
> ----
>
> 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 59: by Microsoft that offers a single logon and core profile
> services for member sites.
> Line 60: -->
> Line 61: <authentication mode="Forms">
> Line 62: <forms
> Line 63: name="MIB.Identity"
>
>
> Source File: C:\Webs\CorpWeb\products\imagebridge\myimagebridge\web.config
> Line: 61
>
>
>
> --------------------------------------------------------------------------
--
> ----
>
> Version Information: Microsoft .NET Framework Version:1.1.4322.573;
ASP.NET
> Version:1.1.4322.573
>
>


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: Forms Authentication Error
    ... Yes I do have this ASP App down in a subdir of the main web. ... I actually already tried creating a virtual directory for my app after ... > where you have configured this section is not the root folder of the web ... >> below and modify your configuration file appropriately. ...
    (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: IIS Bug
    ... I don't understanrfrrrr5d your configuration. ... IIS Supportability Lead ... Virtual directory is set to anonymous ... >>password and authentication fails. ...
    (microsoft.public.inetserver.iis.security)
  • Re: sql 2000 with a frontal IIS 6.0 template XML
    ... If you are using IIS6, you should enable some options on iis configuration ... > I would like to use http to send query to my sql server ... > I've configurated the virtual directory IIS with the sql tool ...
    (microsoft.public.sqlserver.xml)