????? ????? ????? ASP.NET ?? ???? ??????? ???? Windows

?????? ????????? ?????? ?????????
???? ???????: 315736 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??????? ASP.NET ?? Microsoft ??????? ?????? Services (IIS) ??????? ?????????? ??? ???????? ??? ???????? ???? ?????? Microsoft Windows 2000 ?? Windows Server 2003. ???? ????? ????? ????? ASP.NET ????? ?????? ??? ??????? ??? ?? ??????? ???? Windows ????? ?? ????? ??? ??? ????? ??? ????? ???????? ?? ???????.


???????

????? ??????? ??????? ???????? ?????? ???????? ?????? ?????? ????????? ?? ??? ???????:
  • Windows 2000 Server Service Pack 2
  • IIS 5.0
  • Windows Server 2003 ?? IIS 6.0
  • Microsoft Internet Explorer 6.0
  • Microsoft Visual Studio .NET
????? ????? ???? ??? ???:
  • ????? ASP.NET ?? Visual Basic .NET
  • ????? IIS
  • ????? ???? ?????? Windows 2000

????? ????? ???? ???

?? ??? ???????? ??? ????? ??? ASP.NET ????? ??????? ????? ???????? ?????? Windows.
  1. ??? ????? Visual Studio .NET ?? ?? ?????? ????? ??? ASP.NET Visual Basic ???? ???? "WindowsSite."
  2. ???? ???? ???? ????? ?? ???? ??????? ??? ????? ??? WebForm1.aspx ?? ?? ?????? ????? ?????? ?????? ??? ??? authUserPrincipalLabel.
  3. ???? ???? ???? ????? ???? ?? ???? ??????? ??? ????? ??? WebForm1.aspx ?? ?? ?????? ????? ?????? ?????? ??? ??? aspPrincipalLabel.
  4. ???? ????? ??????? ??? WebForm1.aspx ???? ???? ????????? ???????? ?? ?? ?????? ????? ?????? ????????? ??????? ???? ????? ???:
    Imports System.Security
    						
    ????? ???????? ???????? ??????? ??? ????? ????? Page_Load:
    Dim authUserName As String
    Dim aspUserName As String
    authUserName = User.Identity.Name
    aspUserName = Principal.WindowsIdentity.GetCurrent.Name
    authUserPrincipalLabel.Text = "You are: " & authUserName
    aspPrincipalLabel.Text = "This page runs as: " & aspUserName
    					
  5. ??? ??? Web.config ??????? ??? ?? ???? ???? ?????? authentication. ???? ?? ????? ??? ??? ???? ?? Windows.
  6. ????? ???? ???????.
  7. ?? ?????? ??????? ?? ?? ?????? ??? ?????? ???????? ???????:
    • ?? Windows 2000
      :
      ???? ??? ?????? ??? ???: \ASPNET DomainOrServer
    • ?? Windows Server 2003
      :
      ???? ??? ?????? ??? ???: \NETWORK DomainOrServer ????
    ?????? ?? ??? ??? ??? ???????? ????? ?? ???? ??? ???? ??? ???????? ?????? IIS; ?? ???? ??? ????? ?????? ???????.
  8. ?? ?????? Internet Explorer ?????? ???????.

????? ????? ?????? ???????

?? ??? ???????? ??? ????? IIS ????? ?????? ??????? Windows ????? WindowsSite.
  1. ????? Visual Studio ??? ?? ??? ????? "????? ??????" ????? ?? ?????? ?????? "??????? ????????".
  2. ?? ?????? ?????? ????? ?? ???? ??? ????????? ????? ??? ???? ??? ?????? ?????? ??? ???? WindowsSite ??? ?? ???? ??? ?????.
  3. ?? ????? ??????? ???? ?????? ?? ???? ?????? ????? WindowsSite ???? ??? ???? "?????" ?? ?????? "????? ??????? ????????? ????".
  4. ???? ?????? ????? ???? ???????? ???? ????? ? ???? ?? ?? ???? ???????? ?????? Windows ??????? ????? ??? ?? ???? ??? ?????.
  5. ???? ??? ????? ?????? ???? ?????? ????? WindowsSite.
  6. ?????? ??? Visual Studio ?? ?? ?????? ???????. ???? ?? ??? ?????? ???????? ???????:
    • ?? Windows 2000
      ????: Your Windows user name
      ???? ??? ?????? ??? ???: \ASPNET DomainOrServer
    • ?? Windows Server 2003
      ????: Your Windows user name
      ???? ??? ?????? ??? ???: \NETWORK DomainOrServer ????
    ?????? ??? ???????? ??? ???? Windows. ?? ?? ??? ????? ?????? ??? Windows, ?? ???? ?? ??? Windows ??? ???????? ????? ??????.
  7. ?? ?????? Internet Explorer ?????? ???????.

?????

?? ASP.NET ? ??? ?????? ?????? ??????? ??? ??????? ??? ????? ??????? ?????? ??? Web.config ?????. ????? ?????? ??? ?????????? ?? ?????? ??? ??????? ????? ??? ??? ????????? ??????. ???? ??????? ??????? ??? ?????????. ?????? ??????? ??? ???? ?????????? ?? ?????? Windows NT ???? ???? '???????' ? ?????? ????????? ???????? ???????:
<configuration>
     <system.web>
       <authorization>
         <allow roles="domainname\Managers" />
         <deny users="*" />
       </authorization>
     </system.web>
   </configuration>
				
?????? ??????? ??? ??? ?????????? ??? ??????? ????????? ???????? ???????:
<configuration>
     <system.web>
       <authorization>
         <allow users="domainname\user1,domainname\user2,domainname\user3" />
         <deny users="*" />
       </authorization>
     </system.web>
   </configuration>
				
?????? ??? ???? ?????? ?? ?????????? ?? ??????? ??? ??????? ????? ?????? ??????.


????? ????? ????????

?? ??? ???????? ??? ????? ??????? WindowsSite ?????? ??? ???????? Windows ???? ??? ?????? ????.
  1. ?? Visual Studio ??? ??? Web.config ??????? WindowsSite.
  2. ????? ?????? ?????? ??? ?????? authentication:
    <identity impersonate = "true" />
    					
  3. ??? Web.config.
  4. ????? ???????. ???? ?? ??? ?????? ?? ??????? ??????? (???? ?? ???? ????? ASP.NET ??????? ?????? Windows ?????? ??? ????? ????? ???):
    ????: Your Windows user name
    ???? ??? ?????? ??? ???: Your Windows user name
  5. ?? ?????? Internet Explorer ?????? ???????.

????? ????? ??????? ????

?? ??? ???????? ???? ????? ??????? WindowsSite ???????? ???? ???? ?????:
  1. ??? ????? ???? "????? ?????????" ?? ?????? ?????? "??????? ????????". ????? ???? ?????? Windows 2000 ???? ???? "WindowsSite" ???????? ???? ???? "???? ??????" (???? ?? ??? ??? ?????? ???? ???? ???? ? ?? ?????? ???? Active Directory Users and Computers).
  2. ??? ?? ???? ???? ?????? ????? ??? ??? ???????? ????? ???? ?????? ??? ????? ?????? ?????? ???? ????????. ?????? ???? ??????? ????? ?????? ??????? ?? ????? ????? ???????? ???????:
    317012INFO: ???? ????? ?? ASP.NET ? ??????
  3. ??? ????? ???? WindowsSite ????? ?????? ???????? ????????? ?? ??????.
  4. ?? Visual Studio ??? ??? Web.config ??????? WindowsSite.
  5. ????? ???? identity ?????? ??? ???:
    identity impersonate = "true"
           userName = "DomainOrServerName\WindowsSite"
           password = "password"/>
    
    ??? DomainOrServerName ?? ??? ??? ???? ??????? Windows 2000 ?? ???? Windows Server 2003 (?? ???? ????) ?? ?? ???? ????????? ????? ?? (?? ???? ?????? ???).
  6. ??? Web.config.
  7. ????? ???????. ???? ?? ??? ?????? ???????? ???????:
    ????: Your Windows user name
    ???? ??? ?????? ??? ???: \WindowsSite DomainOrServerName
    ?????? ??????? Aspnet_wp.exe ?????? ?????? Windows ???? ?????? ?????? ??? ????? ????? ???.
  8. ?? ?????? Internet Explorer ?????? ???????.
?????? ??? ?? ???? ???? ????? impersonates ?????? ???? ??? ???? ????? ???????? ????? ???? ?? ???? ???????.
  • ??? ???? ??????? Windows 2000 ???? ??????? ????? Aspnet_wp.exe ?????? ??? ???? ??????? ????? ASPNET.
  • ??? Windows Server 2003 ???? ??????? ????? Aspnet_wp.exe ?????? ??? ???? ??????? ?????? NetworkService. ??? ????? ?? ???? ??? ?????? ??? ??? ?????????? ??????? ?????? ??? ?????? ????. ????? ????? ??? ??? ?????? ?????? ??? ?????? ????.
??????? ?????? ??? ??? ??????? ?????? ???? ????? ???????:
  • ??? ???????? ????? ???? ?? ???? ??????? ??? ???? ASPNET (???? ??? ????? ??????).

    ?????? ??? ????? ?? ??? ????? ??????? ??? ??????? ??? ?? ??????? "? ??? ???? Microsoft ??? ???????.
  • ????? ?????? ???? ??? ????? ????? Aspnet_wp.exe ??? ??? ???? ?????? ?? ?????? ????? <processmodel>?? ????? Machine.config.
?????? ??? ???? ?? ????????? ??? ????? ASPNET ?? ?????? ???? ???? ????? Microsoft (MSDN) ?????? ??? ?????:
http://msdn2.microsoft.com/en-us/library/aa291339(VS.71).aspx

??????? ??????? ????????

???? Windows ?? ??? ????? ??? ASP.NET ???? ?????? ???? (?????? ???????) ???????? ?????? ????? NTFS. ??? ?? ??? ???? Windows ?????? ????? ???? ??? ASP.NET ????? IIS ?????? ?????? ?????? Windows ????. ????? ?????? ??? ???? ?????? ??? ??? ?? ????? ???? ?????? ????????? ?? ??? ????? ????? ASP.NET ?????? ??? ???? ????? ASP.NET ? ????? ??????? ??????? ???????? ????. NTFS ???????? ????? ????? ?????? ?? ?????? ??? subsections ????? ???.

?????

?????? ??? ???? ?? ????????? ??? ??????? ?????? Windows ?? ??? ????? ??? ASP.NET ???? ??????? "????" ????? ??? ASP.NET ?? ????? .NET Framework.

?????? ???? ?????? "???????? ?? ASP.NET: .NET ?????? ???????" ?? ???? MSDN ??????:
http://msdn2.microsoft.com/en-us/library/ms978378.aspx

???????

???? ???????: 315736 - ????? ??? ??????: 23/?? ??????/1428 - ??????: 3.11
????? ???
  • Microsoft ASP.NET 1.0
  • Microsoft Internet Information Services 5.0
  • Microsoft ASP.NET 1.1
  • Microsoft Internet Information Services 6.0
????? ??????: 
kbmt kbconfig kbhowtomaster kbinfo kbsecurity kbweb KB315736 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????315736

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com