??? ??????? ?????? ???? ????? SuppressPreamble ??? ??? HttpResponseMessageProperty ?? ???? ?????? SP1 ?? .NET Framework 3.5

?????? ????????? ?????? ?????????
???? ???????: 979533 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

?????

???? ??? ??????? ?????? ????? SuppressPreamble ??? ????? HttpResponseMessageProperty ?? Microsoft .NET Framework 3.5 Service Pack 1 (SP1). ????? SuppressPreamble ????? Boolean. ??? ????? ??????? ??? true ?? ???? ?????? ???????? ???? ????? ??????? ?? Windows (WCF) ? ???? ????? ????? ????? ?? ????? ??????? HTTP ????????. ????? ??? ??????? ??????? ???? ??????? ContentType ??????? StatusCode. ??? ????? ??? ??????? ?? ???? ?????? HttpTransport ????? ??? ??????? ??? ????. ????? ????? ??? ???? WCF ??? ???? WCF ??? ?????? ???? ????? ????? ????????? ??? ?????? ???????? ????? ??????? HTTP ??????.

?????? ???? ??????? SuppressPreamble ??? ????? ???? ?????? ????? WCF ?? ??? ????? ASP.NET.

??????? ????

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

Windows Vista ?????? ????? ?????? Service Pack 2 (SP2) ?? Windows Server 2008 ?????? ????? ??????

??? ??? ??????? ?? Windows Vista ?????? ????? ?????? SP2 ?? Windows Server 2008 ?????? ????? ?????? SP2 ?????? ?? ?? ?????? ??????? ?????? ?????? ?? ????? "????? ????? Microsoft" 9810001. ????? ?? ?????????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft" (????? ?? ??? ???????? ??? ???? ?? ???? ??????? ??? ?? ??? ??? ?????? ??????????):
981001????? ?????? ??????? ??????? ???? ????? ?????? ???????? ???????? ????? Windows ?? .NET Framework 3.5 SP1 ?? Windows Vista SP2 ? Windows Server 2008 ?????? ????? ?????? SP2

7 Windows ?? Windows Server 2008 R2

??? ??? ??????? ?? Windows 7 ?? ?? Windows Server 2008 R2 ?????? ?? ?? ?????? ??????? ?????? ?????? ?? ????? "????? ????? Microsoft" ???????:
981002????? ?????? ??????? ??????? ???? ????? ?????? ???????? ???????? ????? Windows ?? .NET Framework 3.5 SP1 ?? Windows 7 ? Windows Server 2008 R2
????? ????? ????????? ???????? ?????? ????? ??????? ????? SuppressPreamble:
public void GetData()
{
     HttpContext hc = HttpContext.Current;
     string str = @"<?xml version=""1.0"" encoding=""utf-8""?>";
     byte[] buffer = new byte[str.Length];
     buffer = ASCIIEncoding.UTF8.GetBytes(str);

     HttpResponseMessageProperty responseProperty = new HttpResponseMessageProperty();
     responseProperty.SuppressPreamble = true;
     OperationContext.Current.OutgoingMessageProperties[HttpResponseMessageProperty.Name] = responseProperty;

     hc.Response.StatusCode = 200;
     hc.Response.ContentType = "text/xml; charset=utf-8";
     hc.Response.ClearContent();
     hc.Response.OutputStream.Write(buffer, 0, buffer.Length);
     hc.Response.Flush();
}

???????

???? ???????: 979533 - ????? ??? ??????: 03/???? ??????/1431 - ??????: 1.1
????? ???
  • Microsoft .NET Framework 3.5 Service Pack 1
????? ??????: 
kbmt kbexpertiseadvanced kbsurveynew kbqfe kbhotfixserver KB979533 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????979533

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

 

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