<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Caught By .Net!</title>
    <link>http://blog.stoneskins.com/</link>
    <description>Stoneskin's Notes</description>
    <language>en-us</language>
    <copyright>stoneskin</copyright>
    <lastBuildDate>Fri, 30 Mar 2012 02:53:43 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>stoneskin@gmail.com</managingEditor>
    <webMaster>stoneskin@gmail.com</webMaster>
    <item>
      <trackback:ping>http://blog.stoneskins.com/Trackback.aspx?guid=af494fa9-7d00-4c62-ada7-d0dd0404c3d8</trackback:ping>
      <pingback:server>http://blog.stoneskins.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.stoneskins.com/PermaLink,guid,af494fa9-7d00-4c62-ada7-d0dd0404c3d8.aspx</pingback:target>
      <dc:creator>stoneskin</dc:creator>
      <wfw:comment>http://blog.stoneskins.com/CommentView,guid,af494fa9-7d00-4c62-ada7-d0dd0404c3d8.aspx</wfw:comment>
      <wfw:commentRss>http://blog.stoneskins.com/SyndicationService.asmx/GetEntryCommentsRss?guid=af494fa9-7d00-4c62-ada7-d0dd0404c3d8</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Our company haven't Team Foundation Server,
to do the integration web test, I plan to extend our existed AppMonitor application
to run my .webtest file.  the AppMon just simply call powershell script to send
request to the webpage, if it can pick up the webtest, it can do more complicate testing.<br /><br />
To approach that final goal, the first thing is get the classes for the .webtest file
deserialization.<br /><br />
below are my steps:<br />
1. rename webtest1.webtest to webtest1.xml<br />
2. in VS command line window, run "xsd webtest1.xml", and you will get webtest1.xsd 
<br />
3. "xsd webtest1.xsd /classes", you class will be generated. 
<br /><br /><pre><font color="#A52A2A"><span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px">xsd
webtest1.xml Microsoft (R) Xml Schemas/DataTypes support utility [Microsoft (R) .NET
Framework, Version 4.0.30319.1] Copyright (C) Microsoft Corporation. All rights reserved.
Writing file 'C:\Users\llj\Documents\Visual Studio 2010\Projects\TestProject1\Te stProject1\webtest1.xsd'.
xsd webtest1.xsd /classes Microsoft (R) Xml Schemas/DataTypes support utility [Microsoft
(R) .NET Framework, Version 4.0.30319.1] Copyright (C) Microsoft Corporation. All
rights reserved. Writing file 'C:\Users\llj\Documents\Visual Studio 2010\Projects\TestProject1\Te
stProject1\webtest1.cs'.</span></font></pre><br /><br /><p></p></body>
      <title>XSD.exe generate schema and classes from .webtest </title>
      <guid isPermaLink="false">http://blog.stoneskins.com/PermaLink,guid,af494fa9-7d00-4c62-ada7-d0dd0404c3d8.aspx</guid>
      <link>http://blog.stoneskins.com/2012/03/30/XSDexeGenerateSchemaAndClassesFromWebtest.aspx</link>
      <pubDate>Fri, 30 Mar 2012 02:53:43 GMT</pubDate>
      <description>Our company haven't Team Foundation Server, to do the integration web test, I plan to extend our existed AppMonitor application to run my .webtest file.&amp;nbsp; the AppMon just simply call powershell script to send request to the webpage, if it can pick up the webtest, it can do more complicate testing.&lt;br&gt;
&lt;br&gt;
To approach that final goal, the first thing is get the classes for the .webtest file
deserialization.&lt;br&gt;
&lt;br&gt;
below are my steps:&lt;br&gt;
1. rename webtest1.webtest to webtest1.xml&lt;br&gt;
2. in VS command line window, run "xsd webtest1.xml", and you will get webtest1.xsd 
&lt;br&gt;
3. "xsd webtest1.xsd /classes", you class will be generated. 
&lt;br&gt;
&lt;br&gt;
&lt;pre&gt;&lt;font color="#A52A2A"&gt;&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;xsd
webtest1.xml Microsoft (R) Xml Schemas/DataTypes support utility [Microsoft (R) .NET
Framework, Version 4.0.30319.1] Copyright (C) Microsoft Corporation. All rights reserved.
Writing file 'C:\Users\llj\Documents\Visual Studio 2010\Projects\TestProject1\Te stProject1\webtest1.xsd'.
xsd webtest1.xsd /classes Microsoft (R) Xml Schemas/DataTypes support utility [Microsoft
(R) .NET Framework, Version 4.0.30319.1] Copyright (C) Microsoft Corporation. All
rights reserved. Writing file 'C:\Users\llj\Documents\Visual Studio 2010\Projects\TestProject1\Te
stProject1\webtest1.cs'.&lt;/span&gt;&lt;/font&gt;&lt;/pre&gt;
&lt;br&gt;
&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;</description>
      <comments>http://blog.stoneskins.com/CommentView,guid,af494fa9-7d00-4c62-ada7-d0dd0404c3d8.aspx</comments>
      <category>C#</category>
      <category>UnitTest</category>
    </item>
    <item>
      <trackback:ping>http://blog.stoneskins.com/Trackback.aspx?guid=a2ce24f5-add2-4779-95ce-83f7bd97d623</trackback:ping>
      <pingback:server>http://blog.stoneskins.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.stoneskins.com/PermaLink,guid,a2ce24f5-add2-4779-95ce-83f7bd97d623.aspx</pingback:target>
      <dc:creator>stoneskin</dc:creator>
      <wfw:comment>http://blog.stoneskins.com/CommentView,guid,a2ce24f5-add2-4779-95ce-83f7bd97d623.aspx</wfw:comment>
      <wfw:commentRss>http://blog.stoneskins.com/SyndicationService.asmx/GetEntryCommentsRss?guid=a2ce24f5-add2-4779-95ce-83f7bd97d623</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <blockquote>
          <p>
          </p>
        </blockquote>
        <p class="style4">
          <br />
        </p>
        <p class="style4">
Fiddler2 includes the ability to capture web traffic (including AJAX requests) for
later playback with the Visual Studio Web Test product.
</p>
        <p class="style4">
Simply run Fiddler and then interact with your Web Application.  When you've
finished using your web application, click<strong> File</strong> &gt;<strong> Export
Sessions</strong> &gt;<strong> All Sessions</strong>. In the dialog, choose <strong>Visual
Studio WebTest</strong>.
</p>
        <p class="style4">
          <br />
        </p>
        <p class="style4">
          <a href="http://www.fiddler2.com/fiddler/help/WebTest.asp">url</a>
          <br />
        </p>
        <p>
        </p>
      </body>
      <title>[MSTest Note2]create MS webtest file by fiddler2</title>
      <guid isPermaLink="false">http://blog.stoneskins.com/PermaLink,guid,a2ce24f5-add2-4779-95ce-83f7bd97d623.aspx</guid>
      <link>http://blog.stoneskins.com/2012/03/28/MSTestNote2createMSWebtestFileByFiddler2.aspx</link>
      <pubDate>Wed, 28 Mar 2012 22:50:54 GMT</pubDate>
      <description>&lt;blockquote&gt; 
&lt;p&gt;
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p class="style4"&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;p class="style4"&gt;
Fiddler2 includes the ability to capture web traffic (including AJAX requests) for
later playback with the Visual Studio Web Test product.
&lt;/p&gt;
&lt;p class="style4"&gt;
Simply run Fiddler and then interact with your Web Application.&amp;nbsp; When you've
finished using your web application, click&lt;strong&gt; File&lt;/strong&gt; &amp;gt;&lt;strong&gt; Export
Sessions&lt;/strong&gt; &amp;gt;&lt;strong&gt; All Sessions&lt;/strong&gt;. In the dialog, choose &lt;strong&gt;Visual
Studio WebTest&lt;/strong&gt;.
&lt;/p&gt;
&lt;p class="style4"&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;p class="style4"&gt;
&lt;a href="http://www.fiddler2.com/fiddler/help/WebTest.asp"&gt;url&lt;/a&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;</description>
      <comments>http://blog.stoneskins.com/CommentView,guid,a2ce24f5-add2-4779-95ce-83f7bd97d623.aspx</comments>
      <category>UnitTest</category>
    </item>
    <item>
      <trackback:ping>http://blog.stoneskins.com/Trackback.aspx?guid=a9f133bc-32c6-470c-815b-6a6306d9c613</trackback:ping>
      <pingback:server>http://blog.stoneskins.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.stoneskins.com/PermaLink,guid,a9f133bc-32c6-470c-815b-6a6306d9c613.aspx</pingback:target>
      <dc:creator>stoneskin</dc:creator>
      <wfw:comment>http://blog.stoneskins.com/CommentView,guid,a9f133bc-32c6-470c-815b-6a6306d9c613.aspx</wfw:comment>
      <wfw:commentRss>http://blog.stoneskins.com/SyndicationService.asmx/GetEntryCommentsRss?guid=a9f133bc-32c6-470c-815b-6a6306d9c613</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Tools--&gt; Manage Add-ons--&gt; Microsoft
Corporation--&gt;Microsoft Web Test Record<br />
(and I noticed the Fiddler2 is not enable there either..)<br /><br /><img src="http://blog.stoneskins.com/content/binary/ManageAddOns.png" border="0" /><br /><br /><font size="3"><b><br /></b></font><h4><font size="3"><b>After enable it, You can see the Web Test Recorder bar in the
IE window's left.</b></font></h4><h4><font size="3"><b></b></font><img src="http://blog.stoneskins.com/content/binary/WebTest.png" border="0" />    <img src="http://blog.stoneskins.com/content/binary/WebTestRecorder.png" border="0" height="299" width="365" /></h4></body>
      <title>MSTest[Note1] webtest, don't forget enable Microsoft Web Test Addon of your IE</title>
      <guid isPermaLink="false">http://blog.stoneskins.com/PermaLink,guid,a9f133bc-32c6-470c-815b-6a6306d9c613.aspx</guid>
      <link>http://blog.stoneskins.com/2012/03/28/MSTestNote1WebtestDontForgetEnableMicrosoftWebTestAddonOfYourIE.aspx</link>
      <pubDate>Wed, 28 Mar 2012 18:53:03 GMT</pubDate>
      <description>Tools--&amp;gt; Manage Add-ons--&amp;gt; Microsoft Corporation--&amp;gt;Microsoft Web Test Record&lt;br&gt;
(and I noticed the Fiddler2 is not enable there either..)&lt;br&gt;
&lt;br&gt;
&lt;img src="http://blog.stoneskins.com/content/binary/ManageAddOns.png" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
&lt;font size="3"&gt;&lt;b&gt;
&lt;br&gt;
&lt;/b&gt;&lt;/font&gt;
&lt;h4&gt;&lt;font size="3"&gt;&lt;b&gt;After enable it, You can see the Web Test Recorder bar in the
IE window's left.&lt;/b&gt;&lt;/font&gt;
&lt;/h4&gt;
&lt;h4&gt;&lt;font size="3"&gt;&lt;b&gt;&lt;/b&gt;&lt;/font&gt;&lt;img src="http://blog.stoneskins.com/content/binary/WebTest.png" border="0"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img src="http://blog.stoneskins.com/content/binary/WebTestRecorder.png" border="0" height="299" width="365"&gt;
&lt;/h4&gt;</description>
      <comments>http://blog.stoneskins.com/CommentView,guid,a9f133bc-32c6-470c-815b-6a6306d9c613.aspx</comments>
      <category>UnitTest</category>
      <category>VS 2008</category>
    </item>
    <item>
      <trackback:ping>http://blog.stoneskins.com/Trackback.aspx?guid=38768b88-5093-4241-b2ba-b6fa5c45d4c3</trackback:ping>
      <pingback:server>http://blog.stoneskins.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.stoneskins.com/PermaLink,guid,38768b88-5093-4241-b2ba-b6fa5c45d4c3.aspx</pingback:target>
      <dc:creator>stoneskin</dc:creator>
      <wfw:comment>http://blog.stoneskins.com/CommentView,guid,38768b88-5093-4241-b2ba-b6fa5c45d4c3.aspx</wfw:comment>
      <wfw:commentRss>http://blog.stoneskins.com/SyndicationService.asmx/GetEntryCommentsRss?guid=38768b88-5093-4241-b2ba-b6fa5c45d4c3</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">1. Defined [DataContract] but forget [DataMember]
in DTO .You will got return DTO with all member be null or 0;<br />
if all  proprieties are datamember ,just need [Serializable], 
<br />
but the fields name may be end with  'k__backingfield' if you generate class
from service xml in client.  
<br />
to fix this, either add [DataMember] to classes, or use the classes in client side
also.<br /><br /><br />
2. DataMember use Enum type which first item value not 0,  and didn't initial 
the value. it will cause serialize/deserialize issue.<br />
for example, 
<br /><pre><span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">public</span><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">enum</span> SessionLOB <span style="color: Green; background-color: Transparent; font-family: Courier New; font-size: 11px">//Line
Of Business</span> { UnDefined <span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px">=</span> 1,
Auto <span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px">=</span> 4,
InstantRenter <span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px">=</span> 5,
StandardRenter <span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px">=</span> 32,
HomeOwner <span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px">=</span> 37
} ;</span></pre>and with MyDTO has properties lob<br /><pre><span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">public</span> SessionLOB
lob { get; set; }</span></pre><br />
if the lob was not initialed and not be set a value, you will get null DTO, because
it failed to deserialize 0 to SessionLOB  
<br /><p></p></body>
      <title>easy mistakes in WCF DataContract </title>
      <guid isPermaLink="false">http://blog.stoneskins.com/PermaLink,guid,38768b88-5093-4241-b2ba-b6fa5c45d4c3.aspx</guid>
      <link>http://blog.stoneskins.com/2012/03/16/easyMistakesInWCFDataContract.aspx</link>
      <pubDate>Fri, 16 Mar 2012 03:03:43 GMT</pubDate>
      <description>1. Defined [DataContract] but forget [DataMember] in DTO .You will got return DTO with all member be null or 0;&lt;br&gt;
if all&amp;nbsp; proprieties are datamember ,just need [Serializable], 
&lt;br&gt;
but the fields name may be end with&amp;nbsp; 'k__backingfield' if you generate class
from service xml in client.&amp;nbsp; 
&lt;br&gt;
to fix this, either add [DataMember] to classes, or use the classes in client side
also.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
2. DataMember use Enum type which first item value not 0,&amp;nbsp; and didn't initial&amp;nbsp;
the value. it will cause serialize/deserialize issue.&lt;br&gt;
for example, 
&lt;br&gt;
&lt;pre&gt;&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;public&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;enum&lt;/span&gt; SessionLOB &lt;span style="color: Green; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;//Line
Of Business&lt;/span&gt; { UnDefined &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;=&lt;/span&gt; 1,
Auto &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;=&lt;/span&gt; 4,
InstantRenter &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;=&lt;/span&gt; 5,
StandardRenter &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;=&lt;/span&gt; 32,
HomeOwner &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;=&lt;/span&gt; 37
} ;&lt;/span&gt;&lt;/pre&gt;and with MyDTO has properties lob&lt;br&gt;
&lt;pre&gt;&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;public&lt;/span&gt; SessionLOB
lob { get; set; }&lt;/span&gt;&lt;/pre&gt;
&lt;br&gt;
if the lob was not initialed and not be set a value, you will get null DTO, because
it failed to deserialize 0 to SessionLOB&amp;nbsp; 
&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;</description>
      <comments>http://blog.stoneskins.com/CommentView,guid,38768b88-5093-4241-b2ba-b6fa5c45d4c3.aspx</comments>
      <category>C#</category>
      <category>WCF</category>
    </item>
    <item>
      <trackback:ping>http://blog.stoneskins.com/Trackback.aspx?guid=8e123c21-24df-4d0a-a7a8-704e839e9634</trackback:ping>
      <pingback:server>http://blog.stoneskins.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.stoneskins.com/PermaLink,guid,8e123c21-24df-4d0a-a7a8-704e839e9634.aspx</pingback:target>
      <dc:creator>stoneskin</dc:creator>
      <wfw:comment>http://blog.stoneskins.com/CommentView,guid,8e123c21-24df-4d0a-a7a8-704e839e9634.aspx</wfw:comment>
      <wfw:commentRss>http://blog.stoneskins.com/SyndicationService.asmx/GetEntryCommentsRss?guid=8e123c21-24df-4d0a-a7a8-704e839e9634</wfw:commentRss>
      <slash:comments>4</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">My Ajax call replace a dropdown box, 
then call 
<br />
$('select').each(function () {<br />
              $(this).selectBox();<br />
            });<br /><br />
to update the jquery selectBox look and feel again.<br /><br />
but it caused the "setting is undefined: settings.menuTransition" error, 
<br /><br />
to fixed that need add 
<br /><br />
            $('select').each(function
() {<br />
               
$(this).selectBox('destroy');<br />
               
<br />
            });<br />
Before the Ajax Call, so the next time you Initial it .the dropdown will be function..<br /></body>
      <title>Fix the Jquery selectBox double init cause old selction not work issue</title>
      <guid isPermaLink="false">http://blog.stoneskins.com/PermaLink,guid,8e123c21-24df-4d0a-a7a8-704e839e9634.aspx</guid>
      <link>http://blog.stoneskins.com/2011/09/23/FixTheJquerySelectBoxDoubleInitCauseOldSelctionNotWorkIssue.aspx</link>
      <pubDate>Fri, 23 Sep 2011 17:25:15 GMT</pubDate>
      <description>My Ajax call replace a dropdown box,&amp;nbsp; then call &lt;br&gt;
$('select').each(function () {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(this).selectBox();&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br&gt;
&lt;br&gt;
to update the jquery selectBox look and feel again.&lt;br&gt;
&lt;br&gt;
but it caused the "setting is undefined: settings.menuTransition" error, 
&lt;br&gt;
&lt;br&gt;
to fixed that need add 
&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('select').each(function
() {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
$(this).selectBox('destroy');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br&gt;
Before the Ajax Call, so the next time you Initial it .the dropdown will be function..&lt;br&gt;</description>
      <comments>http://blog.stoneskins.com/CommentView,guid,8e123c21-24df-4d0a-a7a8-704e839e9634.aspx</comments>
      <category>JQuery</category>
    </item>
    <item>
      <trackback:ping>http://blog.stoneskins.com/Trackback.aspx?guid=895e08d2-e349-4582-a7c8-4ca6296791d0</trackback:ping>
      <pingback:server>http://blog.stoneskins.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.stoneskins.com/PermaLink,guid,895e08d2-e349-4582-a7c8-4ca6296791d0.aspx</pingback:target>
      <dc:creator>stoneskin</dc:creator>
      <wfw:comment>http://blog.stoneskins.com/CommentView,guid,895e08d2-e349-4582-a7c8-4ca6296791d0.aspx</wfw:comment>
      <wfw:commentRss>http://blog.stoneskins.com/SyndicationService.asmx/GetEntryCommentsRss?guid=895e08d2-e349-4582-a7c8-4ca6296791d0</wfw:commentRss>
      <slash:comments>5</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">check the JQuery Ajax:<br /><pre><span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px">$.ajax({
type: <span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px">"POST"</span>,
url: <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">this</span>.url,
data: form_data, beforeSend: <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">function</span>()
{ $('#ajaxDetails').addClass('progress'); }, error: <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">function</span>()
{ $('#status').text('Update failed—<span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">try</span> again.').slideDown('slow');
}, success: <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">function</span>()
{ $('#status').text('Update successful!'); }, complete: <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">function</span>()
{ $('#ajaxDetails').removeClass('progress'); setTimeout(<span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">function</span>()
{ $('#status').slideUp('slow'); }, 3000); } });</span></pre><br />
to get the from data:<br /><pre><span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">var</span> form_data <span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px">=</span> $(<span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px">"form"</span>).serialize(); <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">var</span> form_data_array <span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px">=</span> $(<span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px">"form"</span>).serializeArray();</span></pre>a
simple example:<br /><pre><span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px">$(document).ready(<span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">function</span>()
{ $('#submit').click(<span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">function</span> ()
{ <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">var</span><span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px">name</span><span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px">=</span> $('.uname').val(); <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">var</span> data <span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px">=</span> 'uname=' <span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px">+</span><span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px">name</span>;
$.ajax({ type:<span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px">"GET"</span>,
url:<span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px">"welcome.php"</span>,
data: data, success: <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">function</span> (html)
{ $('#<span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px">message</span>').html(html);
} }); <span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">return</span> false;
}); });<br /><br /><br />
and MVC3 Ajax<br /></span></pre><pre><span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px">@<span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">using</span> (Ajax.BeginForm( 
<br /><span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px">"ActionName"</span>, 
<br /><span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px">"ControllerName"</span>, 
<br /><span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px">new</span> AjaxOptions
{<br />
 UpdateTargetId <span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px">=</span><span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px">"modal-dialog"</span>, 
<br />
OnFailure="searchFailed", 
<br />
OnBegin <span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px">=</span><span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px">"Dialog.Updating()"</span>, 
<br />
OnSuccess <span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px">=</span><span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px">"Dialog.Update({title:'Select
Friends'})"</span><br />
})) { 
<br />
… &lt;input type=<span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px">"submit"</span> value=<span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px">"Next"</span> /&gt; 
<br />
} </span></pre><br /><br /><br /><br /><p></p></body>
      <title>JQuery Ajax and MVC3 Ajax</title>
      <guid isPermaLink="false">http://blog.stoneskins.com/PermaLink,guid,895e08d2-e349-4582-a7c8-4ca6296791d0.aspx</guid>
      <link>http://blog.stoneskins.com/2011/09/16/JQueryAjaxAndMVC3Ajax.aspx</link>
      <pubDate>Fri, 16 Sep 2011 04:44:31 GMT</pubDate>
      <description>check the JQuery Ajax:&lt;br&gt;
&lt;pre&gt;&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;$.ajax({
type: &lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"POST"&lt;/span&gt;,
url: &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;this&lt;/span&gt;.url,
data: form_data, beforeSend: &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;function&lt;/span&gt;()
{ $('#ajaxDetails').addClass('progress'); }, error: &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;function&lt;/span&gt;()
{ $('#status').text('Update failed—&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;try&lt;/span&gt; again.').slideDown('slow');
}, success: &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;function&lt;/span&gt;()
{ $('#status').text('Update successful!'); }, complete: &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;function&lt;/span&gt;()
{ $('#ajaxDetails').removeClass('progress'); setTimeout(&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;function&lt;/span&gt;()
{ $('#status').slideUp('slow'); }, 3000); } });&lt;/span&gt;&lt;/pre&gt;
&lt;br&gt;
to get the from data:&lt;br&gt;
&lt;pre&gt;&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;var&lt;/span&gt; form_data &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;=&lt;/span&gt; $(&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"form"&lt;/span&gt;).serialize(); &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;var&lt;/span&gt; form_data_array &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;=&lt;/span&gt; $(&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"form"&lt;/span&gt;).serializeArray();&lt;/span&gt;&lt;/pre&gt;a
simple example:&lt;br&gt;
&lt;pre&gt;&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;$(document).ready(&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;function&lt;/span&gt;()
{ $('#submit').click(&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;function&lt;/span&gt; ()
{ &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;var&lt;/span&gt; &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;name&lt;/span&gt; &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;=&lt;/span&gt; $('.uname').val(); &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;var&lt;/span&gt; data &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;=&lt;/span&gt; 'uname=' &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;+&lt;/span&gt; &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;name&lt;/span&gt;;
$.ajax({ type:&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"GET"&lt;/span&gt;,
url:&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"welcome.php"&lt;/span&gt;,
data: data, success: &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;function&lt;/span&gt; (html)
{ $('#&lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;message&lt;/span&gt;').html(html);
} }); &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;return&lt;/span&gt; false;
}); });&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
and MVC3 Ajax&lt;br&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;@&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;using&lt;/span&gt; (Ajax.BeginForm( 
&lt;br&gt;
&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"ActionName"&lt;/span&gt;, 
&lt;br&gt;
&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"ControllerName"&lt;/span&gt;, 
&lt;br&gt;
&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;new&lt;/span&gt; AjaxOptions
{&lt;br&gt;
&amp;nbsp;UpdateTargetId &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;=&lt;/span&gt; &lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"modal-dialog"&lt;/span&gt;, 
&lt;br&gt;
OnFailure="searchFailed", 
&lt;br&gt;
OnBegin &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;=&lt;/span&gt; &lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"Dialog.Updating()"&lt;/span&gt;, 
&lt;br&gt;
OnSuccess &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;=&lt;/span&gt; &lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"Dialog.Update({title:'Select
Friends'})"&lt;/span&gt; 
&lt;br&gt;
})) { 
&lt;br&gt;
… &amp;lt;input type=&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"submit"&lt;/span&gt; value=&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"Next"&lt;/span&gt; /&amp;gt; 
&lt;br&gt;
} &lt;/span&gt;&lt;/pre&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;</description>
      <comments>http://blog.stoneskins.com/CommentView,guid,895e08d2-e349-4582-a7c8-4ca6296791d0.aspx</comments>
      <category>JQuery</category>
      <category>MVC</category>
    </item>
    <item>
      <trackback:ping>http://blog.stoneskins.com/Trackback.aspx?guid=dba569a6-a722-4aec-b0fc-f659ba7bf66e</trackback:ping>
      <pingback:server>http://blog.stoneskins.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.stoneskins.com/PermaLink,guid,dba569a6-a722-4aec-b0fc-f659ba7bf66e.aspx</pingback:target>
      <dc:creator>stoneskin</dc:creator>
      <wfw:comment>http://blog.stoneskins.com/CommentView,guid,dba569a6-a722-4aec-b0fc-f659ba7bf66e.aspx</wfw:comment>
      <wfw:commentRss>http://blog.stoneskins.com/SyndicationService.asmx/GetEntryCommentsRss?guid=dba569a6-a722-4aec-b0fc-f659ba7bf66e</wfw:commentRss>
      <slash:comments>4</slash:comments>
      <title>My First MVC3 remote validation</title>
      <guid isPermaLink="false">http://blog.stoneskins.com/PermaLink,guid,dba569a6-a722-4aec-b0fc-f659ba7bf66e.aspx</guid>
      <link>http://blog.stoneskins.com/2011/09/10/MyFirstMVC3RemoteValidation.aspx</link>
      <pubDate>Sat, 10 Sep 2011 05:05:07 GMT</pubDate>
      <description>I created a new MVC project, and test the remote validation in the about page. &lt;br&gt;
&lt;br&gt;
1)Controller Home: 
&lt;br&gt;
&lt;pre&gt;&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;public&lt;/span&gt; ActionResult
ValidateTestName(&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;string&lt;/span&gt; testName)
{ &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;return&lt;/span&gt; Json(!testName.Equals(&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"test"&lt;/span&gt;),
JsonRequestBehavior.AllowGet); }&lt;/span&gt;&lt;/pre&gt;2)Model:&lt;br&gt;
&lt;pre&gt;&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;using&lt;/span&gt; System.ComponentModel.DataAnnotations; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;using&lt;/span&gt; System.Web.Mvc; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;namespace&lt;/span&gt; MvcApplication1.Models
{ &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;public&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;class&lt;/span&gt; AboutModel
{ [Required] [Remote(&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"ValidateTestName"&lt;/span&gt;, &lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"Home"&lt;/span&gt;,
ErrorMessage &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;=&lt;/span&gt; &lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"this
Name already be used."&lt;/span&gt;)] &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;public&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;string&lt;/span&gt; TestName
{ get; set; } [Required] [Range(20, 44)] &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;public&lt;/span&gt; &lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;int&lt;/span&gt; Age
{ get; set; } } }&lt;/span&gt;&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt; &lt;/span&gt;&lt;/pre&gt;3)View:&lt;br&gt;
In _Layout.cshtml:&lt;br&gt;
&lt;pre&gt;&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;
&lt;head&gt;
&lt;script src=&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"@Url.Content("
&lt;/span&gt;~/Scripts/jquery-1.5.1.&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;min&lt;/span&gt;.js&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;")"&lt;/span&gt; type=&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"text/javascript"&lt;/span&gt;&gt;&gt;
&lt;script src=&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier
New; font-size: 11px"&gt;"@Url.Content("&lt;/span&gt;~/Scripts/jquery.validate.js&lt;span style="color:
#666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;")"&lt;/span&gt;
type=&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier
New; font-size: 11px"&gt;"text/javascript"&lt;/span&gt;&gt;&gt;
&lt;script src=&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"@Url.Content("&gt;~/Scripts/jquery.validate.unobtrusive.js&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;")"&lt;/span&gt; type=&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"text/javascript"&lt;/span&gt;&gt;&lt;/script&gt;
&lt;/head&gt;&lt;/span&gt;&lt;/pre&gt;In About.cshtml&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;span style="color: Black; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;@model MvcApplication1.Models.AboutModel
@{
    ViewBag.Title &lt;span style="color: Red; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;=&lt;/span&gt; &lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"About Us"&lt;/span&gt;;
}

&lt;h2&gt;About&lt;/h2&gt;
&lt;p&gt;
     Put content here.
     @&lt;span style="color: Blue; background-color: Transparent; font-family: Courier New; font-size: 11px"&gt;using&lt;/span&gt; (Html.BeginForm())
     {
         @Html.EditorForModel();
                               
        &lt;input type=&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"submit"&lt;/span&gt; value=&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px"&gt;"Submit"&lt;/span&gt; /&gt;                      
     }
&lt;/p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br&gt;It is working perfect under FireFox 6:&lt;br&gt;&lt;p&gt;&lt;/p&gt;&lt;img src="http://blog.stoneskins.com/content/binary/MyFirstRemoteValidation.png" border="0"&gt;&lt;br&gt;&lt;br&gt;but not working in my IE9 :(...&lt;br&gt;I have &lt;a href="http://jquery.bassistance.de/validate/jquery-validation-1.8.1.zip"&gt;downloaded &lt;/a&gt;&lt;span class="comment-copy"&gt;&lt;a href="http://stackoverflow.com/questions/5571724/asp-net-mvc-3-remote-validation-problem"&gt;Jquery.Validation 1.8.1&lt;/a&gt; try to fix this issue, but looks still unlucky.&lt;br&gt;(Jquery.Validation site : http://bassistance.de/jquery-plugins/jquery-plugin-validation/)&lt;br&gt;&lt;br&gt;&lt;br&gt;but this &lt;a href="http://stackoverflow.com/questions/5571724/asp-net-mvc-3-remote-validation-problem"&gt;post in stack overflow&lt;/a&gt; said it tested in &lt;/span&gt; Chrome 10.0, IE9 and FireFox 4.0</description>
      <comments>http://blog.stoneskins.com/CommentView,guid,dba569a6-a722-4aec-b0fc-f659ba7bf66e.aspx</comments>
      <category>Asp.net</category>
      <category>MVC</category>
    </item>
    <item>
      <trackback:ping>http://blog.stoneskins.com/Trackback.aspx?guid=2da02bf7-dab4-4988-8607-a64ba7b66000</trackback:ping>
      <pingback:server>http://blog.stoneskins.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.stoneskins.com/PermaLink,guid,2da02bf7-dab4-4988-8607-a64ba7b66000.aspx</pingback:target>
      <dc:creator>stoneskin</dc:creator>
      <wfw:comment>http://blog.stoneskins.com/CommentView,guid,2da02bf7-dab4-4988-8607-a64ba7b66000.aspx</wfw:comment>
      <wfw:commentRss>http://blog.stoneskins.com/SyndicationService.asmx/GetEntryCommentsRss?guid=2da02bf7-dab4-4988-8607-a64ba7b66000</wfw:commentRss>
      <slash:comments>4</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <br />
        <a href="http://weblogs.asp.net/scottgu/archive/2010/12/30/asp-net-mvc-3-layouts-and-sections-with-razor.aspx">http://weblogs.asp.net/scottgu/archive/2010/12/30/asp-net-mvc-3-layouts-and-sections-with-razor.aspx </a>
        <br />
        <ul>
          <font>
            <li>
              <a href="http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx" target="_blank">Introducing
Razor (July 2nd)</a>
            </li>
            <li>
              <a href="http://weblogs.asp.net/scottgu/archive/2010/10/19/asp-net-mvc-3-new-model-directive-support-in-razor.aspx">New
@model keyword in Razor (Oct 19th)</a>
            </li>
            <li>
              <a href="http://weblogs.asp.net/scottgu/archive/2010/10/22/asp-net-mvc-3-layouts.aspx">Layouts
with Razor (Oct 22nd)</a>
            </li>
            <li>
              <a href="http://weblogs.asp.net/scottgu/archive/2010/11/12/asp-net-mvc-3-server-side-comments-with-razor.aspx">Server-Side
Comments with Razor (Nov 12th)</a>
            </li>
            <li>
              <a href="http://weblogs.asp.net/scottgu/archive/2010/12/15/asp-net-mvc-3-razor-s-and-lt-text-gt-syntax.aspx">Razor’s
@: and &lt;text&gt; syntax (Dec 15th)</a>
            </li>
            <li>
              <a href="http://weblogs.asp.net/scottgu/archive/2010/12/16/asp-net-mvc-3-implicit-and-explicit-code-nuggets-with-razor.aspx" target="_blank">Implicit
and Explicit code nuggets with Razor (Dec 16th)</a>
            </li>
            <li>
              <a href="http://weblogs.asp.net/scottgu/archive/2010/12/30/asp-net-mvc-3-layouts-and-sections-with-razor.aspx">Layouts
and Sections with Razor (Today)</a>
            </li>
          </font>
        </ul>
for other MVC stuff:<br /><br /><a href="http://weblogs.asp.net/scottgu/archive/tags/MVC/default.aspx">http://weblogs.asp.net/scottgu/archive/tags/MVC/default.aspx</a><br /></body>
      <title>scottGu's MVC3 Razor introducing</title>
      <guid isPermaLink="false">http://blog.stoneskins.com/PermaLink,guid,2da02bf7-dab4-4988-8607-a64ba7b66000.aspx</guid>
      <link>http://blog.stoneskins.com/2011/08/22/scottGusMVC3RazorIntroducing.aspx</link>
      <pubDate>Mon, 22 Aug 2011 19:46:07 GMT</pubDate>
      <description>&lt;br&gt;
&lt;a href="http://weblogs.asp.net/scottgu/archive/2010/12/30/asp-net-mvc-3-layouts-and-sections-with-razor.aspx"&gt;http://weblogs.asp.net/scottgu/archive/2010/12/30/asp-net-mvc-3-layouts-and-sections-with-razor.aspx &lt;/a&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;font&gt;
&lt;li&gt;
&lt;a href="http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx" target="_blank"&gt;Introducing
Razor (July 2nd)&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://weblogs.asp.net/scottgu/archive/2010/10/19/asp-net-mvc-3-new-model-directive-support-in-razor.aspx"&gt;New
@model keyword in Razor (Oct 19th)&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://weblogs.asp.net/scottgu/archive/2010/10/22/asp-net-mvc-3-layouts.aspx"&gt;Layouts
with Razor (Oct 22nd)&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://weblogs.asp.net/scottgu/archive/2010/11/12/asp-net-mvc-3-server-side-comments-with-razor.aspx"&gt;Server-Side
Comments with Razor (Nov 12th)&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://weblogs.asp.net/scottgu/archive/2010/12/15/asp-net-mvc-3-razor-s-and-lt-text-gt-syntax.aspx"&gt;Razor’s
@: and &amp;lt;text&amp;gt; syntax (Dec 15th)&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://weblogs.asp.net/scottgu/archive/2010/12/16/asp-net-mvc-3-implicit-and-explicit-code-nuggets-with-razor.aspx" target="_blank"&gt;Implicit
and Explicit code nuggets with Razor (Dec 16th)&lt;/a&gt; 
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://weblogs.asp.net/scottgu/archive/2010/12/30/asp-net-mvc-3-layouts-and-sections-with-razor.aspx"&gt;Layouts
and Sections with Razor (Today)&lt;/a&gt;
&lt;/li&gt;&lt;/font&gt;
&lt;/ul&gt;
for other MVC stuff:&lt;br&gt;
&lt;br&gt;
&lt;a href="http://weblogs.asp.net/scottgu/archive/tags/MVC/default.aspx"&gt;http://weblogs.asp.net/scottgu/archive/tags/MVC/default.aspx&lt;/a&gt;
&lt;br&gt;</description>
      <comments>http://blog.stoneskins.com/CommentView,guid,2da02bf7-dab4-4988-8607-a64ba7b66000.aspx</comments>
      <category>MVC</category>
    </item>
    <item>
      <trackback:ping>http://blog.stoneskins.com/Trackback.aspx?guid=171de132-91a4-43e6-8c01-98efdbca69cc</trackback:ping>
      <pingback:server>http://blog.stoneskins.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.stoneskins.com/PermaLink,guid,171de132-91a4-43e6-8c01-98efdbca69cc.aspx</pingback:target>
      <dc:creator>stoneskin</dc:creator>
      <wfw:comment>http://blog.stoneskins.com/CommentView,guid,171de132-91a4-43e6-8c01-98efdbca69cc.aspx</wfw:comment>
      <wfw:commentRss>http://blog.stoneskins.com/SyndicationService.asmx/GetEntryCommentsRss?guid=171de132-91a4-43e6-8c01-98efdbca69cc</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">http://fsymbols.com/computer/trademark/#windows<br /><br />
hold alt and input 0153 you will got ™<br />
0174 you will got ®<br /><br />
to put/replace them in string: 
<br />
str.Replace("&amp;#174;","\u00AE").Replace("&amp;#174", "\u00AE").<br />
                   
Replace("&amp;#0153;", "\u2122")<br /><br /><br />
some time you need use <span role="treeitem" class="nodeLabelBox repTarget ">&lt;<span class="nodeTag ">sup</span><span class="nodeBracket editable insertBefore ">&gt;</span><span class="nodeText editable "><span class="nodeTextEntity  ">&amp;reg;</span></span>&lt;/<span class="nodeTag ">sup</span>&gt;
in html<br /></span><p></p></body>
      <title>how to input Trademark </title>
      <guid isPermaLink="false">http://blog.stoneskins.com/PermaLink,guid,171de132-91a4-43e6-8c01-98efdbca69cc.aspx</guid>
      <link>http://blog.stoneskins.com/2011/08/16/howToInputTrademark.aspx</link>
      <pubDate>Tue, 16 Aug 2011 16:35:37 GMT</pubDate>
      <description>http://fsymbols.com/computer/trademark/#windows&lt;br&gt;
&lt;br&gt;
hold alt and input 0153 you will got ™&lt;br&gt;
0174 you will got ®&lt;br&gt;
&lt;br&gt;
to put/replace them in string: 
&lt;br&gt;
str.Replace("&amp;amp;#174;","\u00AE").Replace("&amp;amp;#174", "\u00AE").&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Replace("&amp;amp;#0153;", "\u2122")&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
some time you need use &lt;span role="treeitem" class="nodeLabelBox repTarget "&gt;&amp;lt;&lt;span class="nodeTag "&gt;sup&lt;/span&gt;&lt;span class="nodeBracket editable insertBefore "&gt;&amp;gt;&lt;/span&gt;&lt;span class="nodeText editable "&gt;&lt;span class="nodeTextEntity  "&gt;&amp;amp;reg;&lt;/span&gt;&lt;/span&gt;&amp;lt;/&lt;span class="nodeTag "&gt;sup&lt;/span&gt;&amp;gt;
in html&lt;br&gt;
&lt;/span&gt;
&lt;p&gt;
&lt;/p&gt;</description>
      <comments>http://blog.stoneskins.com/CommentView,guid,171de132-91a4-43e6-8c01-98efdbca69cc.aspx</comments>
      <category>WebDesign</category>
    </item>
    <item>
      <trackback:ping>http://blog.stoneskins.com/Trackback.aspx?guid=45f4df11-56f6-4620-b685-138671f37980</trackback:ping>
      <pingback:server>http://blog.stoneskins.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.stoneskins.com/PermaLink,guid,45f4df11-56f6-4620-b685-138671f37980.aspx</pingback:target>
      <dc:creator>stoneskin</dc:creator>
      <wfw:comment>http://blog.stoneskins.com/CommentView,guid,45f4df11-56f6-4620-b685-138671f37980.aspx</wfw:comment>
      <wfw:commentRss>http://blog.stoneskins.com/SyndicationService.asmx/GetEntryCommentsRss?guid=45f4df11-56f6-4620-b685-138671f37980</wfw:commentRss>
      <slash:comments>5</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">this file is made last year before I changed
job. 
<br /><br /><p></p><a href="http://blog.stoneskins.com/content/binary/Favorite%20Projects.docx">Favorite
Projects.docx (17.61 KB)</a></body>
      <title>my old projects list</title>
      <guid isPermaLink="false">http://blog.stoneskins.com/PermaLink,guid,45f4df11-56f6-4620-b685-138671f37980.aspx</guid>
      <link>http://blog.stoneskins.com/2011/08/16/myOldProjectsList.aspx</link>
      <pubDate>Tue, 16 Aug 2011 00:47:25 GMT</pubDate>
      <description>this file is made last year before I changed job. &lt;br&gt;
&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;a href="http://blog.stoneskins.com/content/binary/Favorite%20Projects.docx"&gt;Favorite
Projects.docx (17.61 KB)&lt;/a&gt;</description>
      <comments>http://blog.stoneskins.com/CommentView,guid,45f4df11-56f6-4620-b685-138671f37980.aspx</comments>
      <category>ProjectManagement</category>
    </item>
    <item>
      <trackback:ping>http://blog.stoneskins.com/Trackback.aspx?guid=9ea08e7a-5493-430e-be8b-8661165a571a</trackback:ping>
      <pingback:server>http://blog.stoneskins.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.stoneskins.com/PermaLink,guid,9ea08e7a-5493-430e-be8b-8661165a571a.aspx</pingback:target>
      <dc:creator>stoneskin</dc:creator>
      <wfw:comment>http://blog.stoneskins.com/CommentView,guid,9ea08e7a-5493-430e-be8b-8661165a571a.aspx</wfw:comment>
      <wfw:commentRss>http://blog.stoneskins.com/SyndicationService.asmx/GetEntryCommentsRss?guid=9ea08e7a-5493-430e-be8b-8661165a571a</wfw:commentRss>
      <slash:comments>21</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <div id="cnblogs_post_body">
          <a href="http://www.cnblogs.com/lori/archive/2011/07/18/2109817.html">http://www.cnblogs.com/lori/archive/2011/07/18/2109817.html</a>
          <br />
          <br />
          <p>
前提:数据底层,使用的是MVC架构,对于数据表中的状态及相关字段,采用了枚举型进行对应
</p>
          <p>
 
</p>
          <p>
1 序列中不包含任何元素 
<br />
  解决：将Single()改为DefaultOrSingle() 
</p>
          <p>
2 序列包含一个以上的元素 
<br />
  解决：很多情况都是原始数据的问题 
</p>
          <p>
3 不能在已使用的实体上添加新实体 
<br />
4 Duplicate key is already , 
<br />
  3,4的解决为：用  base._db.ExecuteCommand()进行SQL语句的重写，
</p>
          <p>
不要用LINQ自带的insert,就不会出现错误了 
</p>
          <p>
5  未将对象引用设置到对象的实例。 值不能为空。参数名: source。 
<br />
   解决：  this.iProduct_ProductFilesRepository.Insert(_entity.Product_ProductFile.Cast&lt;Entity.IDataEntity&gt;
().ToList());，当遇到将list实体类型换为接口list规范时，应该用.Cast&lt;接口类型&gt;().ToList() 
</p>
          <p>
6 查询参数不能为“System.Object”类型。 
<br />
解决：这是因为在LINQ的ExecuteCommand不理解空值,当我们传递的参数为 null 时，就会出现这个问题，解决方法是，在为实体加string.empty这个空值属性 
</p>
          <p>
7  Incorrect syntax near '@p0'. 
<br />
解决：查看我们的SQL代码，被编译成了什么，可能是多个括号之类的。如：delete from users where (userid={0}，这很明显是不对的，哈哈 
</p>
          <p>
8 不支持SQL的转化 
<br />
   解决1，看看是否用了枚举类型，如果用了，应该先把IQueryable进行ToList，得到真正的数据后才能进行判断 
<br />
   解决2,请看你的原始数据，很有可以是数据问题 
<br />
   解决3,请看程序代码的关联表查询，很可能是它没有找出数据的问题 
</p>
          <p>
9  未将对象引用设置到对象的实例。 
<br />
解决：查看数据库向数据实体赋值时，枚举类型的字段是否为null了，如果为null，就会出错 
</p>
          <p>
10    查询包含对不同数据上下文上所定义项的引用。 
<br />
解决：查看底层工厂建立是否返回datacontext有问题，是否为空了。 
</p>
          <p>
11    枚举在LINQ中引发的异常：不支持SQL转换 
<br />
    当枚举使用字符名称，没有数据，然它的数值存储在数据表中时，我们在返回数据时，必须在ToList()才行，否则就会出现这种问题 
<br />
    例如： 
<br />
     /// &lt;summary&gt; 
<br />
     /// 以下是一个积分类型的枚举，一种类型对应数据表中同样类型的一个数值 
<br />
     /// &lt;/summary&gt; 
<br />
   public enum PrestigeTypeCode 
<br />
    { 
<br />
           IAsk_Question, 
<br />
            IAsk_Answer, 
<br />
  } 
</p>
          <p>
  //表据表如下： 
<br />
ID    描述        数值   
枚举名称 
<br />
1   提问           1   
IAsk_Question 
<br />
2   回答           1   
IAsk_Answer 
</p>
          <p>
结论：当我们通过枚举去从数据库（SQLSERVer里）取数值时，必须要把结果集ToList()才行，如代码： 
<br />
int value = new PrestigeTypesRepository().GetPrestigeTypes().ToList().Where(item =&gt;
item.PrestigeTypeCode == prestigeTypeCode).Single().Amount; 
<br />
如果，枚举的值，在枚举元素里读上，就不用去tolist()了 
</p>
          <p>
12 不能将 Null 值赋给类型为 System.Int32 (不可为 null 的值类型)的成员 
<br />
解决:应该是数据的问题,Int类型的SQL表中出来了NULL值,或者是由于枚举类型转换失败的原因
</p>
        </div>
        <p>
        </p>
      </body>
      <title>说说在MVC开发中,遇到的错误及解决方法</title>
      <guid isPermaLink="false">http://blog.stoneskins.com/PermaLink,guid,9ea08e7a-5493-430e-be8b-8661165a571a.aspx</guid>
      <link>http://blog.stoneskins.com/2011/07/19/%e8%af%b4%e8%af%b4%e5%9c%a8MVC%e5%bc%80%e5%8f%91%e4%b8%ad%e9%81%87%e5%88%b0%e7%9a%84%e9%94%99%e8%af%af%e5%8f%8a%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95.aspx</link>
      <pubDate>Tue, 19 Jul 2011 04:27:49 GMT</pubDate>
      <description>&lt;div id="cnblogs_post_body"&gt;&lt;a href="http://www.cnblogs.com/lori/archive/2011/07/18/2109817.html"&gt;http://www.cnblogs.com/lori/archive/2011/07/18/2109817.html&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
&lt;p&gt;
前提:数据底层,使用的是MVC架构,对于数据表中的状态及相关字段,采用了枚举型进行对应
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
1 序列中不包含任何元素 
&lt;br&gt;
&amp;nbsp; 解决：将Single()改为DefaultOrSingle() 
&lt;/p&gt;
&lt;p&gt;
2 序列包含一个以上的元素 
&lt;br&gt;
&amp;nbsp; 解决：很多情况都是原始数据的问题 
&lt;/p&gt;
&lt;p&gt;
3 不能在已使用的实体上添加新实体 
&lt;br&gt;
4 Duplicate key is already , 
&lt;br&gt;
&amp;nbsp; 3,4的解决为：用&amp;nbsp; base._db.ExecuteCommand()进行SQL语句的重写，
&lt;/p&gt;
&lt;p&gt;
不要用LINQ自带的insert,就不会出现错误了 
&lt;/p&gt;
&lt;p&gt;
5&amp;nbsp; 未将对象引用设置到对象的实例。 值不能为空。参数名: source。 
&lt;br&gt;
&amp;nbsp;&amp;nbsp; 解决：&amp;nbsp; this.iProduct_ProductFilesRepository.Insert(_entity.Product_ProductFile.Cast&amp;lt;Entity.IDataEntity&amp;gt;
().ToList());，当遇到将list实体类型换为接口list规范时，应该用.Cast&amp;lt;接口类型&amp;gt;().ToList() 
&lt;/p&gt;
&lt;p&gt;
6 查询参数不能为“System.Object”类型。 
&lt;br&gt;
解决：这是因为在LINQ的ExecuteCommand不理解空值,当我们传递的参数为 null 时，就会出现这个问题，解决方法是，在为实体加string.empty这个空值属性 
&lt;/p&gt;
&lt;p&gt;
7&amp;nbsp; Incorrect syntax near '@p0'. 
&lt;br&gt;
解决：查看我们的SQL代码，被编译成了什么，可能是多个括号之类的。如：delete from users where (userid={0}，这很明显是不对的，哈哈 
&lt;/p&gt;
&lt;p&gt;
8 不支持SQL的转化 
&lt;br&gt;
&amp;nbsp;&amp;nbsp; 解决1，看看是否用了枚举类型，如果用了，应该先把IQueryable进行ToList，得到真正的数据后才能进行判断 
&lt;br&gt;
&amp;nbsp;&amp;nbsp; 解决2,请看你的原始数据，很有可以是数据问题 
&lt;br&gt;
&amp;nbsp;&amp;nbsp; 解决3,请看程序代码的关联表查询，很可能是它没有找出数据的问题 
&lt;/p&gt;
&lt;p&gt;
9&amp;nbsp; 未将对象引用设置到对象的实例。 
&lt;br&gt;
解决：查看数据库向数据实体赋值时，枚举类型的字段是否为null了，如果为null，就会出错 
&lt;/p&gt;
&lt;p&gt;
10&amp;nbsp;&amp;nbsp;&amp;nbsp; 查询包含对不同数据上下文上所定义项的引用。 
&lt;br&gt;
解决：查看底层工厂建立是否返回datacontext有问题，是否为空了。 
&lt;/p&gt;
&lt;p&gt;
11&amp;nbsp;&amp;nbsp;&amp;nbsp; 枚举在LINQ中引发的异常：不支持SQL转换 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 当枚举使用字符名称，没有数据，然它的数值存储在数据表中时，我们在返回数据时，必须在ToList()才行，否则就会出现这种问题 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 例如： 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;summary&amp;gt; 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// 以下是一个积分类型的枚举，一种类型对应数据表中同样类型的一个数值 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;/summary&amp;gt; 
&lt;br&gt;
&amp;nbsp;&amp;nbsp; public enum PrestigeTypeCode 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; { 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IAsk_Question, 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IAsk_Answer, 
&lt;br&gt;
&amp;nbsp; } 
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp; //表据表如下： 
&lt;br&gt;
ID&amp;nbsp;&amp;nbsp;&amp;nbsp; 描述&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 数值&amp;nbsp;&amp;nbsp;&amp;nbsp;
枚举名称 
&lt;br&gt;
1&amp;nbsp;&amp;nbsp; 提问&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;
IAsk_Question 
&lt;br&gt;
2&amp;nbsp;&amp;nbsp; 回答&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;
IAsk_Answer 
&lt;/p&gt;
&lt;p&gt;
结论：当我们通过枚举去从数据库（SQLSERVer里）取数值时，必须要把结果集ToList()才行，如代码： 
&lt;br&gt;
int value = new PrestigeTypesRepository().GetPrestigeTypes().ToList().Where(item =&amp;gt;
item.PrestigeTypeCode == prestigeTypeCode).Single().Amount; 
&lt;br&gt;
如果，枚举的值，在枚举元素里读上，就不用去tolist()了 
&lt;/p&gt;
&lt;p&gt;
12 不能将 Null 值赋给类型为 System.Int32 (不可为 null 的值类型)的成员 
&lt;br&gt;
解决:应该是数据的问题,Int类型的SQL表中出来了NULL值,或者是由于枚举类型转换失败的原因
&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;
&lt;/p&gt;</description>
      <comments>http://blog.stoneskins.com/CommentView,guid,9ea08e7a-5493-430e-be8b-8661165a571a.aspx</comments>
      <category>MVC</category>
    </item>
    <item>
      <trackback:ping>http://blog.stoneskins.com/Trackback.aspx?guid=b9bef2ae-460a-46d2-9399-9f05f89e609b</trackback:ping>
      <pingback:server>http://blog.stoneskins.com/pingback.aspx</pingback:server>
      <pingback:target>http://blog.stoneskins.com/PermaLink,guid,b9bef2ae-460a-46d2-9399-9f05f89e609b.aspx</pingback:target>
      <dc:creator>stoneskin</dc:creator>
      <wfw:comment>http://blog.stoneskins.com/CommentView,guid,b9bef2ae-460a-46d2-9399-9f05f89e609b.aspx</wfw:comment>
      <wfw:commentRss>http://blog.stoneskins.com/SyndicationService.asmx/GetEntryCommentsRss?guid=b9bef2ae-460a-46d2-9399-9f05f89e609b</wfw:commentRss>
      <slash:comments>17</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">1. if net.tcp not enable on the server,
you will see "The protocol 'net.tcp' is not supported." error message:<br /><p></p><img src="http://blog.stoneskins.com/content/binary/nettcpbind_not_supported.png" border="0" height="560" width="782" /><br /><br />
2. You need install and turn on the feature in Control panel\Programs and features:<br /><br /><img src="http://blog.stoneskins.com/content/binary/enable_tcp_step1.png" border="0" height="560" width="782" /><img src="http://blog.stoneskins.com/content/binary/enable_tcp_step2.png" border="0" height="560" width="782" /><br /><br />
3. then enable the protocols of your service:<br /><br /><img src="http://blog.stoneskins.com/content/binary/enable_tcp_step3.png" border="0" height="560" width="782" /><br /><br />
4. set up the binding port:<br /><br /><img src="http://blog.stoneskins.com/content/binary/enable_tcp_step4.png" border="0" height="560" width="782" /><br /><br />
5. done. it should be work, if not work, check those step again and the binding address
in you web.config file.<br />
I will post my service code and client code later.<br /></body>
      <title>Setup Windows Server 2008 to enable net.tcp for WCF</title>
      <guid isPermaLink="false">http://blog.stoneskins.com/PermaLink,guid,b9bef2ae-460a-46d2-9399-9f05f89e609b.aspx</guid>
      <link>http://blog.stoneskins.com/2011/05/25/SetupWindowsServer2008ToEnableNettcpForWCF.aspx</link>
      <pubDate>Wed, 25 May 2011 16:33:21 GMT</pubDate>
      <description>1. if net.tcp not enable on the server, you will see "The protocol 'net.tcp' is not supported." error message:&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img src="http://blog.stoneskins.com/content/binary/nettcpbind_not_supported.png" border="0" height="560" width="782"&gt;
&lt;br&gt;
&lt;br&gt;
2. You need install and turn on the feature in Control panel\Programs and features:&lt;br&gt;
&lt;br&gt;
&lt;img src="http://blog.stoneskins.com/content/binary/enable_tcp_step1.png" border="0" height="560" width="782"&gt;&lt;img src="http://blog.stoneskins.com/content/binary/enable_tcp_step2.png" border="0" height="560" width="782"&gt;
&lt;br&gt;
&lt;br&gt;
3. then enable the protocols of your service:&lt;br&gt;
&lt;br&gt;
&lt;img src="http://blog.stoneskins.com/content/binary/enable_tcp_step3.png" border="0" height="560" width="782"&gt;
&lt;br&gt;
&lt;br&gt;
4. set up the binding port:&lt;br&gt;
&lt;br&gt;
&lt;img src="http://blog.stoneskins.com/content/binary/enable_tcp_step4.png" border="0" height="560" width="782"&gt;
&lt;br&gt;
&lt;br&gt;
5. done. it should be work, if not work, check those step again and the binding address
in you web.config file.&lt;br&gt;
I will post my service code and client code later.&lt;br&gt;</description>
      <comments>http://blog.stoneskins.com/CommentView,guid,b9bef2ae-460a-46d2-9399-9f05f89e609b.aspx</comments>
      <category>WCF</category>
    </item>
  </channel>
</rss>
