I am relatively new to asp.net and have been trying to get a login form to work from a variety of tutorials using form authetication.
My IIS mustn't be configured properly as I am getting the following error:
=======
Server Error in '/' Application.
------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
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.
Source Error:
Line 19: "Forms", "Passport" and "None"
Line 20: -->
Line 21: <authentication mode="Forms">
Line 22: <forms name="myform" loginUrl="login.aspx" />
Line 23: </authentication
Source File: c:\inetpub\wwwroot\Secure\web.config Line: 21
=======
One of the tutorial examples I have tried is http://www.15seconds.com/issue/020220.htm
If somebody could point me in the right direction it owuld be much appreciated.
Regards
MichaelGo into your adminstration tools and open up the IIS admin tool. From here you need to select the virtual directory you are having problems with and right click to get its properties. On the first displayed tab, you will see a text box about midway down where it says application name. You need to click the configure button and add a name to it.
You have created a Web.Config file in a folder that is not defined as an application in IIS. Do you know how to create an application in IIS? Control Panel/Administrative Tools/Internet Information Services (or similar, OS dependent). Expand out Erb Sites/Default Web Sites, navigate to the folder you are using, and right click on it. Select Properties from the resulting menu, and then click on the Create button.
0 comments:
Post a Comment