Got the answer myself. I should have read on a little bit more and create a
application in IIS :-)
jana
-----Opprinnelig melding-----
Fra: Jan Arve Dyrnes [mailto:jan.arve@c...]
Sendt: 13. juni 2002 20:53
Til: ASP+
Emne: [aspx] Forms based authentication
Hi,
I get the following Error when e try the sourccode from Prof ASP.NET chapter
14. Any ideas?
Server Error in '/ProASPNet' 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 2: <system.web>
Line 3:
Line 4: <authentication mode="Forms">
Line 5: <forms name="MyApp01" path="/" loginUrl="custom-login.aspx"
Line 6: protection="All" timeout="30" >
Source File: C:\WROX_CODE\ProfASPNEt\7035_CS\Pro ASP.NET CS\14 - Securing
ASP.NET Applications\custom-forms-based\web.config Line: 4
----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET
Version:1.0.3705.0