forms authentication error

G

Guest

this is straight out of asp.nat unleashed chapter 19:
the code listed below give the following error: 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.
I'm new to asp.net so i figure it's a simple problem. any help would be
appreciated.
thanks
kes
<configuration>
<system.web>
<authentication mode="Forms">
<forms
name=".MyCookie"
loginUrl="/login/mylogin.aspx"
protection="All"
timeout="80"
path="/"/>
</authentication>
</system.web>
</configuration
 
J

Juan T. Llibre [MVP]

You need to create an application
or a virtual directory ( with the IIS Manager )
for the directory in which the code is placed.




Juan T. Llibre
===========
 
G

Guest

That did it. THANKS!
KES

Juan T. Llibre said:
You need to create an application
or a virtual directory ( with the IIS Manager )
for the directory in which the code is placed.




Juan T. Llibre
===========
 

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

Top