allowDefinition='MachineToApplication' beyond application level error

  • Thread starter Thread starter Alex D.
  • Start date Start date
A

Alex D.

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.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top