How can I fix this problem

G

Guest

Hi everybody:

when I make the web.config file to make the authentication and the
autherization for my web site.

the code is as following:

<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<authentication mode="Forms">
<forms name="Default" loginUrl="~/Default.aspx" />
</authentication>
</system.web>
</configuration>

But when I dubbge my page I recive the following 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.

the red line is :

<authentication mode="Forms">
 

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