Saturday, March 31, 2012

Web.config Forms issues

<configuration>
<system.web>
<authentication mode="Forms">
</authentication>
</system.web>
</configuration>
That is my web.config file and I get this error when I run my page.
Itis an error to use a section registered asallowDefinition='MachineToApplication' beyond application level. Thiserror can be caused by a virtual directory not being configured as anapplication in IIS.
Does anyone know what I can do about this because I believe this is causing other problems with my site.

Do you have anonymous access enabled for your web App in IIS
Does the Virtual dir have write access to aspnet_wp
I seriously doubt it. If this helps, I previously had all of thisunder a subdomain and it worked fine. It's now in a directoryinstead so I think it's a "virtual directory" problem. But Idon't know how to fix it because I don't think I have IIS access for myaccount.

0 comments:

Post a Comment