Connecting Tech Pros Worldwide Help | Site Map

allowDefinition='MachineToApplication' beyond application level error

  #1  
Old November 19th, 2005, 12:13 PM
Alex D.
Guest
 
Posts: n/a
I upgraded one of my applications to beta 2. conversion seemed to work
OK, problem is when trying to build I get an error like:
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.

this error is pointing to this section in my web.config:

<authentication mode="Forms">
<forms name=".ASPXFORMSDEMO" loginUrl="login.aspx" protection="ALL"
path="/" timeout="30" />
</authentication>

My virtual directory is configured as an application in IIS, so I don't know
what
else could be causing this error.

Thanks.


  #2  
Old November 19th, 2005, 12:13 PM
Alex D.
Guest
 
Posts: n/a

re: allowDefinition='MachineToApplication' beyond application level error


figured it out. problem was that when converting to visual studio.net 2005
new format it asks if you want to backup your project first, and then it
creates a folder named "backup" inside your web application folder, this
creates a copy of the main web.config file inside a folder wich was causing
the problem.





"Alex D." <alexware69@hotmail.com> wrote in message
news:%23hGO8AXXFHA.2124@TK2MSFTNGP14.phx.gbl...[color=blue]
>I upgraded one of my applications to beta 2. conversion seemed to work
> OK, problem is when trying to build I get an error like:
> 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.
>
> this error is pointing to this section in my web.config:
>
> <authentication mode="Forms">
> <forms name=".ASPXFORMSDEMO" loginUrl="login.aspx" protection="ALL"
> path="/" timeout="30" />
> </authentication>
>
> My virtual directory is configured as an application in IIS, so I don't
> know what
> else could be causing this error.
>
> Thanks.
>
>[/color]


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
allowDefinition='MachineToApplication' beyond application level. Icon Iconoclast answers 1 November 5th, 2008 04:45 PM
VB-Web: Error 101 - allowDefinition='MachineToApplication' beyond application level cghost answers 4 July 10th, 2008 09:22 PM
allowDefinition=MachineToApplication and errors switching to VS2008 Express K Viltersten answers 4 June 2nd, 2008 11:21 AM
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. kevingangsun@gmail.com answers 1 May 4th, 2007 03:45 PM