ID c?a bi: 2597817 - Xem s?n ph?m m bi ny p d?ng vo.
Bung t?t c? | Thu g?n t?t c?

TRI?U CH?NG

Xem xet trng hp sau. Ban ang c gng dng dich vu HTTP trn mt may chu ang chay Internet Information Service (IIS) 6, 7 hoc 7.5. May chu nay cung a cai t Microsoft Web Deployment Service (MSDEPSVC). Khi ban c gng dng dich vu HTTP bng hng dn dong lnh NET STOP HTTP, thng bao li sau y se hin thi trong phn nhc lnh:

D?ch v? HTTP ang d?ng.....
Khng th? d?ng d?ch v? HTTP.


Nu ban chay lai lnh NET STOP HTTP, thng bao sau y se hin thi:

D?ch v? ang b?t ?u ho?c ang d?ng. Vui long th? l?i sau.



NGUYN NHN

S c nay xay ra bi vi Microsoft Web Deployment Service (MSDEPSVC) tuy thuc vao dich vu HTTP, nhng khi MSDEPSVC c cai t ln u thi s phu thuc o khng c ng ky vi Trinh quan ly iu khin Dich vu. Khi HTTP c gng dng, cung cn phai dng cac dich vu phu thuc cua no. Tuy nhin, HTTP khng nhn bit rng no cn phai dng MSDEPSVC do s phu thuc cha c ng ky va do o khng th dng dich vu.

GI?I PHP

? ?c chng ti kh?c ph?c s? c? ny giup ban, b?n hay vo ph?n "Kh?c ph?c s? c? giup ti". Nu ban mun t minh khc phuc s c nay, hay i ti phn " ti t khc phuc s c".

Kh?c ph?c s? c? cho ti



? kh?c ph?c s? c? ny t? ?ng, hay b?m vo nt ho?c lin k?t Kh?c ph?c s? c?. Sau o, bm vaoChay trong hp thoai Tai xung Tp va lam theo cac bc trong thut sy Khc phuc s c.


Khc phuc s c nay
Microsoft Fix it 50764


Chu y
  • Thut sy nay co th chi co bng ting Anh. Tuy nhin, ban va t? ?ng c?ng s? ho?t ?ng ?i v?i cc phin b?n ngn ng? khc c?a Windows.
  • Nu ban hin khng lam vic trn may tinh xay ra s c, hay lu giai phap Khc phuc s c vao ia flash hoc CD ri chay trn may tinh co s c.

Sau o, i ti phn "Phng phap nay co khc phuc c s c khng?".



? ti t? kh?c ph?c s? c?

t khc phuc s c nay, hay sao chep tp lnh sau y va chay no di dang tp lnh PowerShell trn may chu. Tp lnh nay se am bao rng tt ca cac tp phu thuc cua dich vu HTTP c ng ky ung cach.



$bFoundHttp = $false
$msdepsvc = Get-Service -name MsDepSvc
$reqsvcs = "HTTP"
$msdepsvc.ServicesDependedOn | ForEach-Object `
{
    if($_.Name -eq "HTTP")
    {
  $bFoundHttp = $true
    }
    else
    {
    if($_.Name -ne "")
 {
     $reqsvcs += "/" + $_.Name
 }
    }
}
if ($bFoundHttp -eq $false)
{
    $status = $msdepsvc.Status
    if($status -eq "Running")
    {
 Stop-Service -name MsDepSvc
    }
    
    sc.exe config MsDepSvc depend= $reqsvcs
    if($status -eq "Running")
    {
 Start-Service -name MsDepSvc
    }
}


Phng php ny c kh?c ph?c ?c s? c? khng?

  • Ki?m tra xem s? c? ? ?c kh?c ph?c hay cha. N?u s? c? a ?c kh?c ph?c, b?n a hon thnh phn ny. N?u s? c? v?n cha ?c kh?c ph?c, b?n c th? lin h? v?i b? ph?n h? tr?.
  • Chng ti nh gi cao ph?n h?i c?a b?n. cung cp phan hi hoc bao cao bt ky s c nao v giai phap nay, vui long lai nhn xet trn blog "Khc phuc s c cho ti" hoc gi th email cho chung ti.

THNG TIN THM

bit thng tin v cach cai t Windows PowerShell 1.0 trn mt may chu Windows Server 2003, hay xem lin kt sau:

Goi Cai t Ngn ng ting Anh Windows PowerShell 1.0 danh cho Windows Server 2003 va Windows XP
http://support.microsoft.com/kb/926139




bit thng tin v cach s dung Windows PowerShell trn Windows Server 2003, Windows Server 2008 va Windows Server 2008 R2, hay xem lin kt sau:

Windows PowerShell
http://technet.microsoft.com/vi-vn/library/bb978526(en-us).aspx




bit thm thng tin v Cng cu Trin khai Web cua Microsoft, hay xem lin kt sau:

Web Deploy 2.0
http://www.iis.net/download/WebDeploy

Thu?c tnh

ID c?a bi: 2597817 - L?n xem xt sau cng: 22 Thang Mi Mt 2011 - Xem xt l?i: 2.0
p d?ng
  • Microsoft Internet Information Services 6.0
  • Microsoft Internet Information Services 7.0
  • Microsoft Internet Information Services 7.5
T? kha:
kbfixme kbmsifixme KB2597817

Cung cp Phan hi

 

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