Ik heb de volgende web.config file:
Ik wil de root dus voor iedereen toegankelijk, op de map "cms" en "dealerweb" een aparte security mogelijkheid, waar de gebruiker dus moet inloggen. Ga ik nu naar "cms/default.aspx" dan krijg ik de volgende foutmelding:
in map "dealerweb" precies hetzelfde. Wat houdt dit in, wat zit er niet goed in mijn web.config?
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
| <?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation defaultLanguage="vb" debug="true" />
<customErrors mode="Off" />
<authorization>
<allow users="*" />
</authorization>
<trace enabled="false" requestLimit="10" pageOutput="false"
traceMode="SortByTime" localOnly="true" />
<sessionState mode="InProc" cookieless="false" timeout="20" />
<globalization requestEncoding="utf-8" responseEncoding="utf-8" />
</system.web>
<location path="cms">
<system.web>
<authentication mode="Forms">
<forms name="AuthCookie"
path="/cms"
loginUrl="cms/login.aspx"
protection="All"
timeout="30">
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
<location path="dealerweb">
<system.web>
<authentication mode="Forms">
<forms name="DealerWebAuthCookie"
path="/dealerweb"
loginUrl="dealerweb/login.aspx"
protection="All"
timeout="10">
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration> |
Ik wil de root dus voor iedereen toegankelijk, op de map "cms" en "dealerweb" een aparte security mogelijkheid, waar de gebruiker dus moet inloggen. Ga ik nu naar "cms/default.aspx" dan krijg ik de volgende foutmelding:
code:
1
2
3
4
5
6
7
| 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. |
in map "dealerweb" precies hetzelfde. Wat houdt dit in, wat zit er niet goed in mijn web.config?
[ Voor 37% gewijzigd door UniCache2 op 25-07-2003 19:57 . Reden: layout ]