HejProblem med Web.config
Jag har tänkt att alla sidor i roten ska alla komma åt, och de lösenordsskyddade sidorna ska ligga i undermappar. Ifall jag går till en sida i en undermapp (där jag inte lagt en Web.config) går det bra.
När jag skapar en Web.config i undermappen, och ställer in den så att alla har rätt till den får jag detta fel:
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 44: by Microsoft that offers a single logon and core profile services for member sites.
Line 45: -->
Line 46: <authentication mode="None" />
Line 47:
Line 48: <!-- AUTHORIZATION
Source File: c:\inetpub\wwwroot\HogbyAlp\users\web.config Line: 46
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
Min Web.config ser ut så här:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation
defaultLanguage="c#"
debug="true"
/>
<customErrors
mode="RemoteOnly"
/>
<authentication mode="None" />
<authorization>
<allow users="*" /> <!-- Allow all users -->
</authorization>
<trace
enabled="false"
requestLimit="10"
pageOutput="false"
traceMode="SortByTime"
localOnly="true"
/>
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>
<globalization
requestEncoding="utf-8"
responseEncoding="utf-8"
/>
</system.web>
</configuration>
Någon som har en lösning?
/Jocke