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 5: <system.web>
Line 6: <customErrors mode="Off"/>
Line 7: <roleManager enabled="true"/>
Line 8: <authorization>
Line 9: <allow roles="Администратор" />
Source File: d:\users\mysite\web.config Line: 7
Show Additional Configuration Errors:
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. (d:\users\mysite\web.config line 13)
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. (d:\users\mysite\web.config line 14)
web.config
Я просто переписал файлы - в ответ получил:
Код:
Я первый раз пробовал это делать. Подскажите что не так?
Код:
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings/>
<connectionStrings/>
<system.web>
<customErrors mode="Off"/>
<roleManager enabled="true"/>
<authorization>
<allow roles="Администратор" />
<allow roles="Пользователь" />
<allow users="?" />
</authorization>
<authentication mode="Forms" />
<profile enabled="true">
<properties>
<add name="Name"/>
<add name="Surname"/>
<add name="Country"/>
<add name="City"/>
<add name="Avatar"/>
<add name="Note"/>
</properties>
</profile>
<compilation debug="true"/>
</system.web>
</configuration>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings/>
<connectionStrings/>
<system.web>
<customErrors mode="Off"/>
<roleManager enabled="true"/>
<authorization>
<allow roles="Администратор" />
<allow roles="Пользователь" />
<allow users="?" />
</authorization>
<authentication mode="Forms" />
<profile enabled="true">
<properties>
<add name="Name"/>
<add name="Surname"/>
<add name="Country"/>
<add name="City"/>
<add name="Avatar"/>
<add name="Note"/>
</properties>
</profile>
<compilation debug="true"/>
</system.web>
</configuration>
Там по умолчанию устанавливаеться RoleManager( но я не знаю какой - глянь в MSDN'е), и может просто твой сервер номально не настроен на его использование. хз.
Там по умолчанию устанавливаеться RoleManager( но я не знаю какой - глянь в MSDN'е), и может просто твой сервер номально не настроен на его использование. хз.[/quote]
Вообще для таких случаев создаётся инсталлятор. Лезем в MSVS2005 в меню File->New->Project->Setup and Deployment->Web Setup Project