HOW: ??????? ????? ???????? ?????? ??? ??????? ??? IIS ???????? Visual Studio Debug

?????? ????????? ?????? ?????????
???? ???????: 238788 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??? ??????? ???? ????? ??? ????? ????? ????? ??????? ????? ???????? ??????? (CGI) ??? ??????? ??? "????? ??????? ??????" (IIS) ???????? ?? ????? ?? ?????? Visual Studio.

????? ????? ????? CGI Visual C ???????? Visual Studio

?????? ????? CGI C Visual ???????? ?? ????? ?? ?????? Visual Studio ???? ??????? ???????:
  1. ??? ?? ?????? ???? ????? IIS ?? ??? ??????. ?????? ??? ???? ??????? ???????:
    1. ???? ???? ?????? ?? ???? ??????? ???????:
      • ?? Windows NT: ???? ??? ?????.
      • ???? ??????? Windows 2000 ? Windows XP ? .NET Server: ???? ??? ????? ?????? ?? ???? ??? ?????.
    2. ???? ????? ??????? ??? ???? ????? IIS.
    3. ?? ??????? ????? ??????? ??? ???? ???????? ?????? ???? Interact ?? ??? ??????.

      ?????? ????? ??? ??????? ?? ???? ????? IIS ???? ????? ????.
    4. ????? ?????? ????? ???? ????? IIS.
  2. ??? ????? ??? Windows.h ?????? ???????? ???????? ??????? ??? ?? ????? ????? ????? CGI:
    #define _WIN32_WINNT 0x0400
    					
  3. ?? ???? ???????? ???????? ??????? ?? ????? CGI:
    #ifdef _DEBUG
    char szMessage [256];
    wsprintf (szMessage, "Please attach a debugger to the process 0x%X (%s) and click OK",
          GetCurrentProcessId(), argv[0]);
    MessageBox(NULL, szMessage, "CGI Debug Time!",
          MB_OK|MB_SERVICE_NOTIFICATION);
    #endif
    					
  4. ??? ????? ????? CGI.
  5. ????? ???? ????? (??? WinDBG ?? Visual C) CGI ?????? ????? ??? ??? ???? ?????.
  6. ??? ????? ???? ??????? ??? ????? ?????? ? ????? ???? ???? ?? ???? ??? ?????.

    ??? ????? ???? ??????? ?????? ?????? CGI ? ??? ???? ?????? ???? ????.

???????? WinDBG

?????? ????? CGI ?? WinDBG ? ??? ????? ?? ??? ?? ???? ????? ??? ??????? ?????? ???? ???? ??????? WinDBG ?? ????? ????? ???????. ????? ????? ????? ????? ??????? ?? ???? Microsoft ?????? ??? ?????:
????? ??????? ?? Microsoft
http://www.microsoft.com/whdc/devtools/ddk/default.mspx

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

????? ?????? ????? ??? ???? ??? ??? ??? ????? ?????? (?? ?????? CGI) ???? ??? ??????. ???? ?? ??? ???? ?????? ?? ?????? ?? ??? ??????, ??? ????? ?????? ?? ??? ??????. ????? ??? ??? ????? ???????? CGI ???? ?????? ???? ??????? ?? ?? ????? ????.
  1. ??? ????? "???? ???????" (Regedt32.exe):

    ???? ??? ???? ?? ???? ??? ????? ????? ??? regedt32.
  2. ??? ???? ????? ??????? ??????:
    [Options\ ????? ??? NT\CurrentVersion\Image HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows]
  3. ????? ????? ???? ?? ??? ??? ???? ??????? CGI (??? ???? ??????? MyCGI.exe).
  4. ??? ??? ??????? ?????? ????? ?????? REG_SZ ??????? ?????? ??????? ?????? ??? ?????? ???? ???? ???? ".exe". ????? ????? ????? ?? ????? ??????. ?????? ????????? ?????? ?? WinDBG ?? ?? ???:
    "Debugger"="C:\\Debuggers\\windbg.exe"
    ?????? ??? ?? ?? ????? ??? ???? ???? ??? ???? WinDBG ?????? ?? ?????? ???????. ??? ???? ??????? windbg ? ??? ?? ???? ???? ???:
    ????? ??? NT\CurrentVersion\Image HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Options\yourCGI.exe "C:\windbg ??????"=""
  5. ???? ???? ???????.
  6. ????? ????? ???? IISADMIN ?? ?? ?????? CGI ?? ????????.

    ?????? ????? ?? ???? ??? ??? ?????? ????????? ??? ??? ????? IIS ??? ?? ???? ???? "?????? ??????" ? ??? ???? ???????? ?????? ???? Interact ?? ??? ??????. ?????? ??? ????? ??? ?????? 1 ?? ????????? ???? ???? ?? ??? ???????.
  7. ???? ????? ?????? ??? ?????? ????? ??? ????? ????? ?????? ??????? ??? ???????.
?????? ?? ????? ??? ????? ???? ??????? CreateProcessAsUser ?? ????? ??????? ??? false ??? ????? ???? ?????. ???? ???? ?? ?? ??? ?????? ???? ??? ????? ????? CGI ?? ????? ?????? ???? Interact ?? ??? ?????? ???? ????? IIS ??? spawned ????? ?????? ??????? CGI. ???? ??????? ???????? ????? ???????? adsutil.vbs ????? ????? ?????? ???? Interact ?? ??? ??????. ?????????? ???? ??????? ??????. ??? ???? ??????? ?????? ????? ??????:
w3svc/CreateProcessAsUser adsutil.vbs "false"

?????

?????? ??? ??????? ?????? ??? ????? ??????? ???? ??? ???? ????????? ????????? ??????? ?? "????? ??????? ?? Microsoft:
273639HOW TO: ???? IISAdmin ???????? ??????? ??? ??????
286350HOW TO: ??????? ADPlus ???????? "?????" ? "????"
261871INFO: + COM ? MTS ??????? ???????
183480HOW TO: ????? DLLs ISAPI ??? IIS 4.0 ? IIS 5.0

???????

???? ???????: 238788 - ????? ??? ??????: 23/?? ??????/1428 - ??????: 4.7
????? ???
  • Microsoft Internet Information Server 2.0
  • ???? ??????? ?????? 3.0
  • Microsoft Internet Information Server 4.0
  • Microsoft Internet Information Services 5.0
  • Microsoft Internet Information Services version 5.1
  • Microsoft Internet Information Services 6.0
????? ??????: 
kbmt kbcgi kbhowto kbhowtomaster KB238788 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????238788

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

 

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