Groups | Blog | Home
all groups > asp.net > july 2007 >

asp.net : How can I fix this problem



Husam
7/7/2007 11:48:01 PM
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">
Milosz Skalecki [MCAD]
7/8/2007 3:58:01 AM
Hi Husam,

http://www.cryer.co.uk/brian/mswinswdev/ms_vbnet_vb_not_configured_as_app.htm

http://dotnetjunkies.com/Forums/ShowPost.aspx?PostID=4435

Regards
--
Milosz


[quoted text, click to view]
AddThis Social Bookmark Button