<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>hongmeig's WebLog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/hongmeig/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/hongmeig/feed.xml</link>
    <description />
    <lastBuildDate>Tue, 16 Apr 2019 05:10:24 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Config based activation in WCF</title>
      <link>https://docs.microsoft.com/archive/blogs/hongmeig/config-based-activation-in-wcf</link>
      <pubDate>Fri, 16 Apr 2010 14:28:00 GMT</pubDate>
      <dc:creator><![CDATA[hongmeig]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hongmeig/2010/04/16/config-based-activation-in-wcf/</guid>
      <description><![CDATA[There is a cool WCF feature instroduced in dev10 called configless activation. You don't have to...]]></description>
      <content:encoded><![CDATA[<P>There is a cool WCF feature instroduced in dev10 called configless activation. You don't have to have a *.svc file in your web directory, instead you can activate a WCF service using the following configuration element:</P>
<P><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>&nbsp;</P>
<P>&lt;</FONT></FONT></FONT><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas>system.serviceModel</FONT></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>&gt;</P></FONT></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>
<P>&nbsp; &lt;</FONT></FONT></FONT><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas>serviceHostingEnvironment</FONT></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>&gt;</P>
<P>&nbsp;&nbsp;&nbsp; &lt;</FONT></FONT></FONT><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas>serviceActivations</FONT></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>&gt;</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp; &lt;</FONT></FONT></FONT><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas>add</FONT></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas> </FONT></FONT></FONT><FONT color=#ff0000 size=2 face=Consolas><FONT color=#ff0000 size=2 face=Consolas><FONT color=#ff0000 size=2 face=Consolas>relativeAddress</FONT></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>=</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>"</FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>Service1.svc</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>"</FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas> </FONT></FONT></FONT><FONT color=#ff0000 size=2 face=Consolas><FONT color=#ff0000 size=2 face=Consolas><FONT color=#ff0000 size=2 face=Consolas>service</FONT></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>=</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>"</FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>configlessWCF.Service1</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>"</FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>/&gt;</P>
<P>&nbsp;&nbsp;&nbsp; &lt;/</FONT></FONT></FONT><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas>serviceActivations</FONT></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>&gt;</P>
<P>&nbsp; &lt;/</FONT></FONT></FONT><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas>serviceHostingEnvironment</FONT></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>&gt;</P>
<P>&lt;/</FONT></FONT></FONT><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas>system.serviceModel</FONT></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>&gt;</P></FONT></FONT></FONT>
<P>Hope this helps. </P>]]></content:encoded>
    </item>
    <item>
      <title>Why does the MaxReceiveMessageSize in WCF matter in case of Streaming</title>
      <link>https://docs.microsoft.com/archive/blogs/hongmeig/why-does-the-maxreceivemessagesize-in-wcf-matter-in-case-of-streaming</link>
      <pubDate>Sat, 13 Mar 2010 12:11:00 GMT</pubDate>
      <dc:creator><![CDATA[hongmeig]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hongmeig/2010/03/13/why-does-the-maxreceivemessagesize-in-wcf-matter-in-case-of-streaming/</guid>
      <description><![CDATA[The default value of MaxReceiveMessageSize in WCF&nbsp;is 65,536. &nbsp;When you choose streaming as...]]></description>
      <content:encoded><![CDATA[<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="COLOR: #1f497d"><FONT size=3><FONT face=Calibri>The default value of MaxReceiveMessageSize in WCF&nbsp;is 65,536. &nbsp;When you choose streaming as TransferMode, WCF runtime will create 8192 as buffer size. So what happened now is that WCF channel stack will read the first 8192 bytes, and decode the first couple of bytes as the size of the entire envelope. Then we will do a size check, and send back fault if the actual size exceeds the limit. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="COLOR: #1f497d"><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="COLOR: #1f497d"><FONT size=3><FONT face=Calibri>According to MSDN documentation, the MaxReceiveMessageSize is something that prevents a DOS attack, and it should still apply in the streaming case to the entire message size. <o:p></o:p></FONT></FONT></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="COLOR: #1f497d"><o:p><FONT size=3 face=Calibri>&nbsp;</FONT></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="COLOR: #1f497d"><A href="https://msdn.microsoft.com/en-us/library/system.servicemodel.channels.transportbindingelement.maxreceivedmessagesize.aspx"><FONT size=3 face=Calibri>https://msdn.microsoft.com/en-us/library/system.servicemodel.channels.transportbindingelement.maxreceivedmessagesize.aspx</FONT></A></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN>&nbsp;</P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="COLOR: #1f497d">The&nbsp;error message you sometimes get&nbsp;looks like something like this.</SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN>&nbsp;</P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="COLOR: #1f497d">Unhandled Exception: System.ServiceModel.CommunicationException: The maximum message size quota for incoming messages (1) has been exceeded. To increase the quo<BR>ta, use the MaxReceivedMessageSize property on the appropriate binding element.<BR>---&gt; System.ServiceModel.QuotaExceededException: The maximum message size quota for incoming messages (1) has been exceeded. To increase the quota, use the MaxR<BR>eceivedMessageSize property on the appropriate binding element.<BR></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="COLOR: #1f497d"></SPAN>&nbsp;</P>]]></content:encoded>
    </item>
    <item>
      <title>Timeouts in WCF and their default values</title>
      <link>https://docs.microsoft.com/archive/blogs/hongmeig/timeouts-in-wcf-and-their-default-values</link>
      <pubDate>Fri, 05 Mar 2010 22:37:00 GMT</pubDate>
      <dc:creator><![CDATA[hongmeig]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hongmeig/2010/03/05/timeouts-in-wcf-and-their-default-values/</guid>
      <description><![CDATA[&nbsp;
There are a lot of timeouts in WCF.&nbsp;let us&nbsp;summarize it here. 
Timeouts on...]]></description>
      <content:encoded><![CDATA[<P mce_keep="true">&nbsp;</P>
<P>There are a lot of timeouts in WCF.&nbsp;let us&nbsp;summarize it here. </P>
<P><STRONG>Timeouts on binding</STRONG></P>
<P>These are the most well known timeouts. SendTimeout, ReceiveTimeout, OpenTimeout and&nbsp;CloseTimeout. They can&nbsp;be set easily either through config or code on the Binding.&nbsp;The default value for&nbsp;those are 1 minute.&nbsp;</P>
<P>E.g in code</P><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>
<P>Binding</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> binding = </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>new</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>NetTcpBinding</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>(</FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>SecurityMode</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>.Transport)</P>
<P>{</P>
<P>SendTimeout = </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>TimeSpan</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>.FromMinutes(10),</P>
<P>ReceiveTimeout = </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>TimeSpan</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>.FromMinutes(10),</P>
<P>OpenTimeout = </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>TimeSpan</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>.FromMinutes(10),</P>
<P>CloseTimeout = </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>TimeSpan</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>.FromMinutes(10),</P>
<P>};</P></FONT></FONT>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="COLOR: #1f497d"><FONT size=3><FONT face=Calibri>You will see some&nbsp;timeout exception&nbsp;such as</FONT></FONT></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="COLOR: #1f497d"><FONT size=3 face=Calibri></FONT></SPAN>&nbsp;</P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="COLOR: #1f497d"><FONT size=3><FONT face=Calibri>Unhandled Exception: System.TimeoutException: The open operation did not complete within the allotted timeout of 00:00:00.0010000. The time allotted to this operation may have been a portion of a longer timeout. ---&gt; System.TimeoutException: Open timed out after 00:00:00 while establishing a transport session to net.tcp://localhost:8080/FileService. The time allotted to this operation may have been a portion of a longer timeout. ---&gt; System.TimeoutException: Connecting to via&nbsp;net.tcp://localhost:8080/FileService timed out after 00:00:00. Connection attempts were made to 0 of 2 available addresses (). Check the RemoteAddress of yourchannel and verify that the DNS records for this endpoint correspond to valid IP Addresses. The time allotted to this operation may have been a portion of a longer timeout.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p>&nbsp;</o:p></FONT></FONT></SPAN></P>
<P><STRONG>Timeouts on ServiceHost</STRONG></P>
<P>ServiceHost has OpenTimeout and CloseTimeout. Default for OpenTimeout is 1 minute, and default for CloseTimeout is 10 seconds. </P><FONT size=2 face=Consolas><FONT size=2 face=Consolas>
<P></FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>ServiceHost</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> host = </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>new</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>ServiceHost</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>(</FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>typeof</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>(</FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>FileService</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>), </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>new</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>Uri</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>(</FONT></FONT><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas>"https://localhost:8443/FileService"</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>));</P>
<P>host.OpenTimeout = </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>TimeSpan</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>.FromMinutes(5);</P>
<P>host.CloseTimeout = </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>TimeSpan</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>.FromMinutes(5);</P></FONT></FONT>
<P><STRONG>Timeouts on client side channel</STRONG></P>
<P>This is somewhat not as well known as the previous ones. There is an OperationTimeout, which you can set it by casting the channel to IContextChannel. You can do it through code. The default for this is also 1 minute. </P><FONT size=2 face=Consolas><FONT size=2 face=Consolas>
<P></FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>IFileService</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> channel = </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>ChannelFactory</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>&lt;</FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>IFileService</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>&gt;.CreateChannel(binding, </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>new</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>EndpointAddress</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>(</FONT></FONT><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas>"https://localhost:8443/FileService"</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>));</P>
<P></FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>IClientChannel</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> contextChannel = channel </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>as</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>IClientChannel</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>;</P>
<P>contextChannel.OperationTimeout = </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>TimeSpan</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>.FromMinutes(10);</P></FONT></FONT>
<P>This is the exception you will get if you are hitting this operation timeout. </P>
<P><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #1f497d; FONT-SIZE: 9pt; mso-ansi-language: EN-US; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><FONT color=#000000 size=2 face=Arial>Unhandled Exception: System.TimeoutException: The request channel timed out attempting to send after 00:00:00.0100000. Increase the timeout value passed to the<BR>call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout. ---&gt; System.T<BR>imeoutException: The HTTP request to 'https://localhost:8443/FileService' has exceeded the allotted timeout of 00:00:00. The time allotted to this operation may<BR>&nbsp;have been a portion of a longer timeout.</FONT></SPAN></P>
<P>There is another not so well known timeout on tcp transport, called ChannelInitializationTimeout, and its default value is 5 seconds. </P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; COLOR: #2b91af; FONT-SIZE: 9.5pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BindingElementCollection</SPAN><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"> be = binding.CreateBindingElements();<o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #2b91af">TcpTransportBindingElement</SPAN> tcpBe = be.Find&lt;<SPAN style="COLOR: #2b91af">TcpTransportBindingElement</SPAN>&gt;();<o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="BACKGROUND: yellow; mso-highlight: yellow">tcpBe.ChannelInitializationTimeout = <SPAN style="COLOR: #2b91af">TimeSpan</SPAN>.FromMinutes(1);</SPAN><o:p></o:p></SPAN></P>
<P style="MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #2b91af">CustomBinding</SPAN> customBinding = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: #2b91af">CustomBinding</SPAN>(be);<o:p></o:p></SPAN></P>
<P>Exception related to ChannelInitializationTimeout could look like:</P>
<P>Unhandled Exception: System.ServiceModel.CommunicationException: The socket connection was aborted. This could be caused by an error processing your message or<BR>a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:00:59.9257860'. ---&gt; System.Net.Socke<BR>ts.SocketException: An existing connection was forcibly closed by the remote host<BR>&nbsp;&nbsp; at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)<BR>&nbsp;&nbsp; at System.ServiceModel.Channels.SocketConnection.Write(Byte[] buffer, Int32 offset, Int32 size, Boolean immediate, TimeSpan timeout)<BR>&nbsp;&nbsp; --- End of inner exception stack trace ---</P>
<P><STRONG>Timeouts in ASPNET</STRONG></P>
<P>If you are web hosted, you should consider hitting timeouts set by ASPNET. There are shutdown timeout, just like the service host close timeout, default is 90 seconds. ExecutionTimeout, just like our operation timeout, default is 110 seconds. </P>
<P>&lt;configuration&gt;<BR>&nbsp; &lt;system.web&gt;<BR>&nbsp; &lt;httpRuntime maxRequestLength="4000"<BR>&nbsp;&nbsp;&nbsp; enable = "True"<BR>&nbsp;&nbsp;&nbsp; requestLengthDiskThreshold="512<BR>&nbsp;&nbsp;&nbsp; shutdownTimeout="90"<BR>&nbsp;&nbsp;&nbsp; executionTimeout="110"<BR>&nbsp;&nbsp;&nbsp; versionHeader="1.1.4128"/&gt;<BR>&nbsp; &lt;/system.web&gt;<BR>&lt;/configuration&gt;<BR></P>
<P>For more details on the ASPNET related timeout, please read <A href="https://msdn.microsoft.com/en-us/library/e1f13641.aspx">https://msdn.microsoft.com/en-us/library/e1f13641.aspx</A></P>
<P mce_keep="true">&nbsp;</P>
<P mce_keep="true">&nbsp;</P>
<P mce_keep="true">&nbsp;</P>
<P mce_keep="true">&nbsp;</P>
<P mce_keep="true">&nbsp;</P>
<P mce_keep="true">&nbsp;</P>]]></content:encoded>
    </item>
    <item>
      <title>how to turn off the auto-redirect feature in WCF REST 4.0</title>
      <link>https://docs.microsoft.com/archive/blogs/hongmeig/how-to-turn-off-the-auto-redirect-feature-in-wcf-rest-4-0</link>
      <pubDate>Tue, 02 Mar 2010 16:52:00 GMT</pubDate>
      <dc:creator><![CDATA[hongmeig]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hongmeig/2010/03/02/how-to-turn-off-the-auto-redirect-feature-in-wcf-rest-4-0/</guid>
      <description><![CDATA[Missing a trailing slash is a common error people make when browsing the web. For better usability,...]]></description>
      <content:encoded><![CDATA[<P>Missing a trailing slash is a common error people make when browsing the web. For better usability, in 4.0, we introduced a feature called autoredirect. It is on by default, meaning, when you set up your REST service to take something like "test/", when user types in <A href="https://hostname/ServiceName/test" mce_href="https://hostname/ServiceName/test">https://hostname/ServiceName/test</A> in the browser, they will be automatically redirected to <A href="https://hostname/ServiceName/test/" mce_href="https://hostname/ServiceName/test/">https://hostname/ServiceName/test/</A>. </P>
<P>&nbsp;<FONT size=2 face=Consolas><FONT size=2 face=Consolas>[</FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>ServiceContract</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>]</P>
<P>[</FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>AspNetCompatibilityRequirements</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>(RequirementsMode = </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>AspNetCompatibilityRequirementsMode</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>.Allowed)]</P>
<P>[</FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>ServiceBehavior</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>(InstanceContextMode = </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>InstanceContextMode</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>.PerCall)]</P></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>
<P></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>public</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>class</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>EchoService</P></FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>
<P>{</P>
<BLOCKQUOTE>
<P>[</FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>WebGet</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>(UriTemplate=</FONT></FONT><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas>"test/"</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>)]</P></BLOCKQUOTE>
<BLOCKQUOTE>
<P></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>public</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>string</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> Echo()</P>
<P>{</P>
<BLOCKQUOTE>
<P></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>return</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas>"hello"</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>;</P></BLOCKQUOTE>
<P>}</P></BLOCKQUOTE>
<P>}</P>
<P>If for some reason, you want to turn this feature off, you can register a message inspector to do that. </P><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>
<P>public</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>class</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>MyMessageInspector</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> : </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>IDispatchMessageInspector</P></FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>
<P>{</P>
<BLOCKQUOTE>
<P></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>internal</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>const</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>string</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> RedirectPropertyName = </FONT></FONT><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas>"WebHttpRedirect"</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>;</P>
<P></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>public</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>object</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> AfterReceiveRequest(</FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>ref</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> System.ServiceModel.Channels.</FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>Message</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> request, </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>IClientChannel</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> channel, </FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>InstanceContext</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> instanceContext)</P>
<P>{</P>
<BLOCKQUOTE>
<P></FONT></FONT><FONT color=#008000 size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas>// remove the RedirectPropertyName from the request</P></FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>
<P></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>if</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> ( request.Properties.ContainsKey(RedirectPropertyName))</P>
<P>{</P>
<BLOCKQUOTE>
<P>request.Properties.Remove(RedirectPropertyName);</P></BLOCKQUOTE>
<P>}</P>
<P></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>return</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>null</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>;</P></BLOCKQUOTE>
<P>}</P>
<P></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>public</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>void</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> BeforeSendReply(</FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>ref</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> System.ServiceModel.Channels.</FONT></FONT><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas><FONT color=#2b91af size=2 face=Consolas>Message</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> reply, </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>object</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> correlationState)</P>
<P>{</P>
<P>}</P></BLOCKQUOTE>
<P>}</P></FONT></FONT>
<P>Hope this helps!</P></FONT></FONT>]]></content:encoded>
    </item>
    <item>
      <title>How to solve System.InvalidOperationException: For request in operation Test to be a stream the operation must have a single parameter whose type is Stream</title>
      <link>https://docs.microsoft.com/archive/blogs/hongmeig/how-to-solve-system-invalidoperationexception-for-request-in-operation-test-to-be-a-stream-the-operation-must-have-a-single-parameter-whose-type-is-stream</link>
      <pubDate>Tue, 02 Mar 2010 16:00:00 GMT</pubDate>
      <dc:creator><![CDATA[hongmeig]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hongmeig/2010/03/02/how-to-solve-system-invalidoperationexception-for-request-in-operation-test-to-be-a-stream-the-operation-must-have-a-single-parameter-whose-type-is-stream/</guid>
      <description><![CDATA[&nbsp;You are getting this error because the default WCF stream formatter does not support this. You...]]></description>
      <content:encoded><![CDATA[<P>&nbsp;You are getting this error because the default WCF stream formatter does not support this. You are probably trying to upload some file stream and transfer some other parameters, such as file name, etc within the same method. For example,</P>
<P mce_keep="true"><FONT color=#0000ff>[OperationContract]&nbsp;</FONT></P>
<P mce_keep="true"><FONT color=#0000ff>void</FONT><FONT size=2 minmax_bound="true"> Test(</FONT><FONT color=#0000ff size=2 minmax_bound="true">string</FONT><FONT size=2 minmax_bound="true"> fileName, </FONT><FONT color=#2b91af size=2 minmax_bound="true">Stream</FONT><FONT size=2 minmax_bound="true"> fileContent);</FONT></P>
<P mce_keep="true">If this is&nbsp;not a&nbsp;REST endpoint, you can work around this issue by using MessageContract wrapping the multiple parameters into one class. </P>
<P>If this is a REST endpoint, this programming model is actually&nbsp;supported because&nbsp;REST has its own formatter which handles multiple parameters correctly. However, if you continue to see this issue, then please make sure your WebHttpBehavior is set up correctly. Possible reason for not having that behavior set up correctly could be:</P>
<P>1. You are using a custom behavior, and its endpoint does not have the correct the contract name matching with the WCF contract;</P>
<P>2. You are not using WebEndpoint or WebServiceHost;</P>
<P>You can&nbsp;also workaround this issue by choosing&nbsp;Buffered option in the TransferMode on the binding. But that seems to be defeating the whole purpose of the Streaming. </P>]]></content:encoded>
    </item>
    <item>
      <title>How to see windows using remote desktop with dual monitors</title>
      <link>https://docs.microsoft.com/archive/blogs/hongmeig/how-to-see-windows-using-remote-desktop-with-dual-monitors</link>
      <pubDate>Sun, 06 Jul 2008 19:05:00 GMT</pubDate>
      <dc:creator><![CDATA[hongmeig]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hongmeig/2008/07/06/how-to-see-windows-using-remote-desktop-with-dual-monitors/</guid>
      <description><![CDATA[Let us say i&nbsp;want to connect&nbsp;my laptop&nbsp;to&nbsp;my office machine, which...]]></description>
      <content:encoded><![CDATA[<P>Let us say i&nbsp;want to connect&nbsp;my laptop&nbsp;to&nbsp;my office machine, which uses&nbsp;dual monitors.&nbsp;I can see some of the windows icons showing up in the taskbar, but i cannot see the window. How can I click any button on that window?</P>
<P>Here is&nbsp;the solution:</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><FONT size=3><FONT face=Calibri>Right click on the window you want on the taskbar, select move, hit any arrow button, move your mouse.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></SPAN></P>
<P mce_keep="true">&nbsp;</P>
<P mce_keep="true">&nbsp;</P>]]></content:encoded>
    </item>
    <item>
      <title>A possible solution to a common sql error</title>
      <link>https://docs.microsoft.com/archive/blogs/hongmeig/a-possible-solution-to-a-common-sql-error</link>
      <pubDate>Tue, 26 Feb 2008 15:35:00 GMT</pubDate>
      <dc:creator><![CDATA[hongmeig]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hongmeig/2008/02/26/a-possible-solution-to-a-common-sql-error/</guid>
      <description><![CDATA[If you happen to get the following&nbsp;sql error:&nbsp;
&nbsp;
An error has occurred while...]]></description>
      <content:encoded><![CDATA[<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><FONT size=3><FONT face=Calibri>If you happen to get the following&nbsp;sql error:&nbsp;</FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><FONT size=3><FONT face=Calibri></FONT></FONT></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><FONT size=3><FONT face=Calibri>An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005 or above, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections..</FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><FONT size=3><FONT face=Calibri></FONT></FONT></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><FONT size=3><FONT face=Calibri>You are not alone. There are a lot of solutions out on the web, the best i can find is this:</FONT></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><FONT face=Calibri size=3></FONT></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><FONT face=Calibri size=3><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-US; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><A href="https://sequelserver.blogspot.com/2007/06/under-default-settings-sql-server-does.html" target=_blank mce_href="https://sequelserver.blogspot.com/2007/06/under-default-settings-sql-server-does.html">https://sequelserver.blogspot.com/2007/06/under-default-settings-sql-server-does.html</A></SPAN></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><FONT face=Calibri size=3><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-US; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"></SPAN></FONT></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><FONT face=Calibri size=3><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-US; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">However, the error i am getting is actually because i have installed the full version of SQL without the SQL Express. However, my sql command was actually calling</SPAN></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><FONT face=Calibri size=3><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-US; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"></SPAN></FONT></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><FONT face=Calibri size=3><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-US; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-US; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">sqlcmd -S localhost \sqlexpress -E -b –d databaseName -i sqlScriptPath</SPAN></SPAN></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><FONT face=Calibri size=3><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-US; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-US; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"></SPAN></SPAN></FONT></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><FONT face=Calibri size=3><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-US; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-US; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">instead you need to call</SPAN></SPAN></FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><FONT face=Calibri size=3><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-US; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-US; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"></SPAN></SPAN></FONT></SPAN>&nbsp;</P><SPAN style="COLOR: #1f497d"><FONT face=Calibri size=3><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-US; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-US; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="COLOR: #1f497d"><FONT face=Calibri size=3><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-US; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-US; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">sqlcmd -S localhost&nbsp; -E -b –d databaseName -i sqlScriptPath</SPAN></SPAN></FONT></SPAN></P></SPAN></SPAN></FONT></SPAN>]]></content:encoded>
    </item>
    <item>
      <title>How to make a 24'' monitor look better</title>
      <link>https://docs.microsoft.com/archive/blogs/hongmeig/how-to-make-a-24-monitor-look-better</link>
      <pubDate>Mon, 25 Feb 2008 14:38:00 GMT</pubDate>
      <dc:creator><![CDATA[hongmeig]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hongmeig/2008/02/25/how-to-make-a-24-monitor-look-better/</guid>
      <description><![CDATA[1920 X 1200 is the resolution you wanted for the 24" monitor. The old 1600 X 1200 would make...]]></description>
      <content:encoded><![CDATA[<P>1920 X 1200 is the resolution you wanted for the 24" monitor. The old 1600 X 1200 would make everything looks flattened. So what if my highest resolution is 1600 X 1200? The solution is that you need to update your new driver. Here is how you can do it on Vista.</P>
<P>&nbsp;Right click on mouse, click Personalize-&gt;Display Settings -&gt;Advanced Settings ... -&gt; Monitor -&gt; Properties -&gt; Driver -&gt; Update Driver ..., automatic updating should usually work. </P>
<P>&nbsp;Then you should find the 1920 X 1200 as the highest resolution, select that and you should see everything clearly.</P>]]></content:encoded>
    </item>
    <item>
      <title>WCF error: Cannot resolve KeyInfo for unwrapping key: KeyInfo 'SecurityKeyIdentifier</title>
      <link>https://docs.microsoft.com/archive/blogs/hongmeig/wcf-error-cannot-resolve-keyinfo-for-unwrapping-key-keyinfo-securitykeyidentifier</link>
      <pubDate>Fri, 28 Sep 2007 14:12:00 GMT</pubDate>
      <dc:creator><![CDATA[hongmeig]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hongmeig/2007/09/28/wcf-error-cannot-resolve-keyinfo-for-unwrapping-key-keyinfo-securitykeyidentifier/</guid>
      <description><![CDATA[If you are getting an error like : Cannot resolve KeyInfo for unwrapping key: KeyInfo...]]></description>
      <content:encoded><![CDATA[<P>If you are getting an error like : Cannot resolve KeyInfo for unwrapping key: KeyInfo 'SecurityKeyIdentifier and your have checked that your certificate is in the right store and right place. </P>
<P>So this might be the reason. check the binding you have and make sure the negotiateServiceCredential has the same value. By default, it is true. </P>
<P>Reason? The server will use this flag to try to build the primary token resolver which is being used to resolve those key info clause. If that flag is ture, then the server will load the server certificate into the primary token resolver, so it will fail to resolve the key info if client sends one.</P>
<P>So where is that flag? Here is an example where this could be located:</P><FONT color=#0000ff size=2>
<P>&lt;</FONT><FONT color=#a31515 size=2>wsHttpBinding</FONT><FONT color=#0000ff size=2>&gt;</P>
<P>&lt;</FONT><FONT color=#a31515 size=2>binding</FONT><FONT color=#0000ff size=2> ...</FONT><FONT color=#0000ff size=2>&gt;</P></FONT>
<P><FONT color=#0000ff size=2></P>&lt;</FONT><FONT color=#a31515 size=2>security</FONT><FONT color=#0000ff size=2> </FONT><FONT color=#ff0000 size=2>mode</FONT><FONT color=#0000ff size=2>=</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2>Message</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2>&gt;</FONT> 
<P><FONT color=#0000ff size=2></P>&lt;</FONT><FONT color=#a31515 size=2>message</FONT><FONT color=#0000ff size=2> </FONT><FONT color=#ff0000 size=2>clientCredentialType</FONT><FONT color=#0000ff size=2>=</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2>Windows</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2> </FONT><FONT color=#ff0000 size=2>negotiateServiceCredential</FONT><FONT color=#0000ff size=2>=</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2>true</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2> 
<P></FONT><FONT color=#ff0000 size=2>algorithmSuite</FONT><FONT color=#0000ff size=2>=</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2>Default</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2> </FONT><FONT color=#ff0000 size=2>establishSecurityContext</FONT><FONT color=#0000ff size=2>=</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2>true</FONT><FONT size=2>"</FONT><FONT color=#0000ff size=2> /&gt;</P>
<P>&lt;/</FONT><FONT color=#a31515 size=2>security</FONT><FONT color=#0000ff size=2>&gt;</P>
<P>&lt;/</FONT><FONT color=#a31515 size=2>binding</FONT><FONT color=#0000ff size=2>&gt;</P>
<P>&lt;/</FONT><FONT color=#a31515 size=2>wsHttpBinding</FONT><FONT color=#0000ff size=2>&gt;</FONT></P>
<P><FONT color=#0000ff size=2>&nbsp;Hope this helps!</FONT><FONT color=#0000ff><FONT size=2></P></FONT></FONT>]]></content:encoded>
    </item>
    <item>
      <title>Going to Tech Ed China 2007</title>
      <link>https://docs.microsoft.com/archive/blogs/hongmeig/going-to-tech-ed-china-2007</link>
      <pubDate>Wed, 26 Sep 2007 18:27:00 GMT</pubDate>
      <dc:creator><![CDATA[hongmeig]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/hongmeig/2007/09/26/going-to-tech-ed-china-2007/</guid>
      <description><![CDATA[I am going to attend Tech Ed China 2007 again. I am very excited about...]]></description>
      <content:encoded><![CDATA[<P><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi">I am going to attend Tech Ed China 2007 again. I am very excited about it.</SPAN></P>
<P><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi"><A href="https://www.microsoft.com/china/technet/teched/speakers/default.mspx">https://www.microsoft.com/china/technet/teched/speakers/default.mspx</A></SPAN></P>
<P><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: 'Calibri','sans-serif'; mso-ansi-language: EN-US; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-fareast-font-family: SimSun; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: 'Times New Roman'; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi"></SPAN>&nbsp;</P>]]></content:encoded>
    </item>
  </channel>
</rss>