<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>นพ ภิญโญวาณิชกะ &#187; .Net (vb , c#)</title>
	<atom:link href="http://www.nop.in.th/category/net-vb-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nop.in.th</link>
	<description>Nop Pinyowanichaka &#124; ก้าวสั้นๆ ในวันเบาๆ ของผม</description>
	<lastBuildDate>Wed, 14 Jul 2010 01:54:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>MD5 ใน C# ให้มีค่าเท่ากับ MD5 ใน PHP</title>
		<link>http://www.nop.in.th/net-vb-c/md5-in-csharp-same-as-php/</link>
		<comments>http://www.nop.in.th/net-vb-c/md5-in-csharp-same-as-php/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 04:38:45 +0000</pubDate>
		<dc:creator>นพ</dc:creator>
				<category><![CDATA[.Net (vb , c#)]]></category>
		<category><![CDATA[md5]]></category>

		<guid isPermaLink="false">http://www.nop.in.th/?p=336</guid>
		<description><![CDATA[ต้องเขียนการเข้ารหัส MD5 ด้วย C# แต่เนื่องจากว่าหลังจากที่เขียนแบบปกติแล้ว Return Result กลับมาไม่ตรงกัน ลอง Search ๆ ในเน็ตดูแล้ว ปรากฏว่า มันต้องเอามาเขียนใหม่ให้เป็นแบบนี้ 1 2 3 4 5 6 7 8 9 public string MD5Hash&#40;string txtPassword&#41; &#123; System.Security.Cryptography.MD5 md5 = System.Security.Cryptography.MD5CryptoServiceProvider.Create&#40;&#41;; byte&#91;&#93; dataMd5 = md5.ComputeHash&#40;Encoding.Default.GetBytes&#40;txtPassword&#41;&#41;; StringBuilder sb = new StringBuilder&#40;&#41;; for &#40;int i = 0; i &#60; dataMd5.Length; i++&#41; sb.AppendFormat&#40;&#34;{0:x2}&#34;, dataMd5&#91;i&#93;&#41;; return sb.ToString&#40;&#41;; &#125; [...]]]></description>
			<content:encoded><![CDATA[<p>ต้องเขียนการเข้ารหัส MD5 ด้วย C# แต่เนื่องจากว่าหลังจากที่เขียนแบบปกติแล้ว Return Result กลับมาไม่ตรงกัน ลอง Search ๆ ในเน็ตดูแล้ว ปรากฏว่า มันต้องเอามาเขียนใหม่ให้เป็นแบบนี้</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;">        <span style="color: #0600FF;">public</span> <span style="color: #FF0000;">string</span> MD5Hash<span style="color: #000000;">&#40;</span><span style="color: #FF0000;">string</span> txtPassword<span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #000000;">System.<span style="color: #0000FF;">Security</span>.<span style="color: #0000FF;">Cryptography</span></span>.<span style="color: #0000FF;">MD5</span> md5 <span style="color: #008000;">=</span> <span style="color: #000000;">System.<span style="color: #0000FF;">Security</span>.<span style="color: #0000FF;">Cryptography</span></span>.<span style="color: #0000FF;">MD5CryptoServiceProvider</span>.<span style="color: #0000FF;">Create</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #FF0000;">byte</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> dataMd5 <span style="color: #008000;">=</span> md5.<span style="color: #0000FF;">ComputeHash</span><span style="color: #000000;">&#40;</span>Encoding.<span style="color: #0600FF;">Default</span>.<span style="color: #0000FF;">GetBytes</span><span style="color: #000000;">&#40;</span>txtPassword<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            StringBuilder sb <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> StringBuilder<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #FF0000;">int</span> i <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span> i <span style="color: #008000;">&lt;</span> dataMd5.<span style="color: #0000FF;">Length</span><span style="color: #008000;">;</span> i<span style="color: #008000;">++</span><span style="color: #000000;">&#41;</span>
                sb.<span style="color: #0000FF;">AppendFormat</span><span style="color: #000000;">&#40;</span><span style="color: #666666;">&quot;{0:x2}&quot;</span>, dataMd5<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF;">return</span> sb.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>
จึงจะ Return Result มาเทียบเท่ากับ PHP ในการเขียน MD5 เลยทีเดียว</p>
<p>ปล. ผมจำแหล่งที่มาไม่ได้ แต่จำได้ว่าไปลอกเค้ามาอีกทีครับ ขออภัยที่ไม่ได้เครดิต</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nop.in.th/net-vb-c/md5-in-csharp-same-as-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ทำ Folder ให้เป็น Drive</title>
		<link>http://www.nop.in.th/best-software/folder-to-drive/</link>
		<comments>http://www.nop.in.th/best-software/folder-to-drive/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 04:29:55 +0000</pubDate>
		<dc:creator>นพ</dc:creator>
				<category><![CDATA[.Net (vb , c#)]]></category>
		<category><![CDATA[Software น่าสนใจ]]></category>

		<guid isPermaLink="false">http://www.nop.in.th/best-software/%e0%b8%97%e0%b8%b3-folder-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99-drive/</guid>
		<description><![CDATA[บางครั้ง Folder ที่เราใช้ บ่อยเราอาจจะแยกเป็น Drive เอาไว้ต่างหาก แต่ไม่อยากที่จะไปแบ่ง Partition ให้มันวุ่นวาย หรือ อาจจะทำเพื่อใช้โปรแกรมบางตัวเป็นครั้งคราว (พวกที่เคยเขียนไว้เก่าๆ ที่เรียกๆตรงๆ ไปที่ Drive นั้นๆเลย) การแก้ปัญหาแบบไม่ต้องใช้ Software แบบนี้ก็อาจจะเป็นการ Map Drive เข้าไปในเครื่องตัวเอง เช่น Map Share Folder &#8220;My Software&#8221; เป็น Drive Z เป็นต้น แต่มันมี โปรแกรม ตัวนึงสำหรับการทำแบบนี้ (โดยไม่ต้องไป Map Drive Network) โปรแกรมมีชื่อว่า Visual Subst กับสโลแกน virtual drives in effect หน้าตาโปรแกรมเป็นแบบนี้ ลองโหลดมาลองใช้งานกันดูครับ หน้าตาโปรแกรมก็แบบตรงไปตรงมา ใช้งานง่ายลองโหลดมาดูมาชมกันครับ]]></description>
			<content:encoded><![CDATA[<p>บางครั้ง Folder ที่เราใช้ บ่อยเราอาจจะแยกเป็น Drive เอาไว้ต่างหาก แต่ไม่อยากที่จะไปแบ่ง Partition ให้มันวุ่นวาย หรือ อาจจะทำเพื่อใช้โปรแกรมบางตัวเป็นครั้งคราว (พวกที่เคยเขียนไว้เก่าๆ ที่เรียกๆตรงๆ ไปที่ Drive นั้นๆเลย) การแก้ปัญหาแบบไม่ต้องใช้ Software แบบนี้ก็อาจจะเป็นการ Map Drive เข้าไปในเครื่องตัวเอง เช่น Map Share Folder &#8220;My Software&#8221; เป็น Drive Z เป็นต้น</p>
<p>แต่มันมี โปรแกรม ตัวนึงสำหรับการทำแบบนี้ (โดยไม่ต้องไป Map Drive Network) โปรแกรมมีชื่อว่า <a href="http://www.ntwind.com/software/utilities/visual-subst.html" target="_blank"><strong>Visual Subst</strong></a> กับสโลแกน virtual drives in effect</p>
<p>หน้าตาโปรแกรมเป็นแบบนี้</p>
<p><a href="http://www.nop.in.th/wp-content/uploads/2008/08/visualsubst.jpg" rel='lytebox[folder-to-drive]'><img class="alignnone size-medium wp-image-257" title="visualsubst" src="http://www.nop.in.th/wp-content/uploads/2008/08/visualsubst-400x307.jpg" alt="" width="400" height="307" /></a></p>
<p>ลองโหลดมาลองใช้งานกันดูครับ</p>
<p>หน้าตาโปรแกรมก็แบบตรงไปตรงมา ใช้งานง่ายลองโหลดมาดูมาชมกันครับ</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nop.in.th/best-software/folder-to-drive/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>&#8220;Unable to start debugging on the web server.  The web server is not configured correctly.&#8221;</title>
		<link>http://www.nop.in.th/net-vb-c/unable-to-start-debugging-on-the-web-server-the-web-server-is-not-configured-correctly/</link>
		<comments>http://www.nop.in.th/net-vb-c/unable-to-start-debugging-on-the-web-server-the-web-server-is-not-configured-correctly/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 10:47:49 +0000</pubDate>
		<dc:creator>นพ</dc:creator>
				<category><![CDATA[.Net (vb , c#)]]></category>

		<guid isPermaLink="false">http://www.nop.in.th/?p=225</guid>
		<description><![CDATA[&#8220;Unable to start debugging on the web server.  The web server is not configured correctly.  See help for common configuration errors.  Running the web page outside of the debugger may provide further information.&#8221; เมื่อพยายามจะ Run ASP.Net แบบมีการ Debug ก็ดันขึ้น Message Error ขึ้นมาดังข้างบน ปัญหานี้ผมเคยเจอหลายต่อหลายครั้ง แม้จว่าจะรู้ว่ามันเกิดขึ้นเพราะ ไม่ได้ Register .Net Framework ใน IIS แต่ไม่ทราบสาเหตุที่มันเกิดขึ้นจริงๆ วันนี้เลยแวะไปอ่าน Greatfriends.biz ของคุณ KSM [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #a52a2a;">&#8220;Unable to start debugging on the web server.  The web server is not configured correctly.  See help for common configuration errors.  Running the web page outside of the debugger may provide further information.&#8221;</span></p>
<p>เมื่อพยายามจะ Run ASP.Net แบบมีการ Debug ก็ดันขึ้น Message Error ขึ้นมาดังข้างบน ปัญหานี้ผมเคยเจอหลายต่อหลายครั้ง แม้จว่าจะรู้ว่ามันเกิดขึ้นเพราะ ไม่ได้ Register .Net Framework ใน IIS แต่ไม่ทราบสาเหตุที่มันเกิดขึ้นจริงๆ</p>
<p>วันนี้เลยแวะไปอ่าน <a href="http://www.greatfriends.biz/webboards/msg.asp?b=SURREALIST&amp;id=41123">Greatfriends.biz ของคุณ KSM</a> ตอบไว้ค่อนข้างชัดเจน เพราะว่า ผม ลง Visual Studio 2005 ก่อน ทำการลง ISS เลยขึ้น Message ดังข้างบน</p>
<p><span id="more-225"></span></p>
<p><strong>วิธีการแก้ไข</strong></p>
<p>ให้ไปที่ Start &gt; Run &gt; พิมพ์ cmd (เข้า Command Dos นั่นเอง)</p>
<p>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727&gt;aspnet_regiis.exe -i</p>
<p>ตัว v2.0.50727 มัีนแล้วแต่ Version ของ .Net Framework ของคุณนะครับ</p>
<p>จากนั้นมันก้อจะ Install จะขึ้นข้อความดังกล่าวหลังจากลงเสร็จแล้ว</p>
<p style="padding-left: 30px;">Start installing ASP.NET (2.0.50727).<br />
&#8230;&#8230;.<br />
Finished installing ASP.NET (2.0.50727).</p>
<p style="padding-left: 30px;">
<p>แต่เมื่อลงเสร็จแล้ว ก็ยังขึ้น Error อีก</p>
<p>Debugging Failed Because Integrated Windows Authentication Is Not Enabled</p>
<p>อันนี้ไปอ่านต่อใน Microsoft พบวิธีการแก้ไขดังนี้</p>
<p><a href="http://www.nop.in.th/wp-content/uploads/2008/07/intergrated-windows2.png" rel='lytebox[unable-to-start-debugging-on-the-web-server-the-web-server-is-not-configured-correctly]'><img class="alignnone size-medium wp-image-227" title="intergrated-windows2" src="http://www.nop.in.th/wp-content/uploads/2008/07/intergrated-windows2-400x361.png" alt="" width="400" height="361" /></a></p>
<ol>
<li>เข้า IIS คลิกขวาที่ Folder Website ไปที่ Property</li>
<li>เลือก Tab Directory Security</li>
<li>คลิกที่ปุ่ม Edit</li>
<li>เลือกถูกข้างหน้า Integrated Windows authentication</li>
</ol>
<p>จากนั้น ก็กดปุ่ม OK แค่นี้ก็สามารถแก้ปัญหาจาก Error ดังกล่าวได้แล้วครับ</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nop.in.th/net-vb-c/unable-to-start-debugging-on-the-web-server-the-web-server-is-not-configured-correctly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>เขียน Web Service ด้วย VS2005 ขึ้น Error Parser Error Message: Could not load type ‘_Default’</title>
		<link>http://www.nop.in.th/net-vb-c/error-parser-error-message-could-not-load-type-_default/</link>
		<comments>http://www.nop.in.th/net-vb-c/error-parser-error-message-could-not-load-type-_default/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 07:09:05 +0000</pubDate>
		<dc:creator>นพ</dc:creator>
				<category><![CDATA[.Net (vb , c#)]]></category>

		<guid isPermaLink="false">http://www.nop.in.th/?p=196</guid>
		<description><![CDATA[เขียน Web Service ด้วย Visual Studio 2005 แล้ว Upload ขึ้น Server ด้วย FTP แล้ว ลองเรียกหน้าที่เขียนดูจะพบ Error Error Parser Error Message: Could not load type ‘_Default’ ลอง Search ดูจาก Google เช่นเคย พบทางแก้ไขปัญหาก็คือ ให้ทำการเปลี่ยน Version .Net Framwork จาก 1.2xx เป็น 2.0xx เท่านั้นก็สามารถแก้ไขปัญหาได้ เข้าไปแก้ ที่ IIS ตรง Tab ASP.Net นะครับ ดังรูป อ่านจาก CoderLab แล้วลองทำตาม Work !!! ครับ]]></description>
			<content:encoded><![CDATA[<p>เขียน Web Service ด้วย Visual Studio 2005 แล้ว Upload ขึ้น Server ด้วย FTP แล้ว ลองเรียกหน้าที่เขียนดูจะพบ Error</p>
<p style="padding-left: 30px;"><strong>Error Parser Error Message: Could not load type ‘_Default’</strong></p>
<p>ลอง Search ดูจาก Google เช่นเคย พบทางแก้ไขปัญหาก็คือ ให้ทำการเปลี่ยน Version .Net Framwork จาก 1.2xx เป็น 2.0xx เท่านั้นก็สามารถแก้ไขปัญหาได้ เข้าไปแก้ ที่ IIS ตรง Tab ASP.Net นะครับ ดังรูป</p>
<p><a href="http://www.nop.in.th/wp-content/uploads/2008/07/asp-net-error-code-behind.png" rel='lytebox[error-parser-error-message-could-not-load-type-_default]'><img class="alignnone size-medium wp-image-197" title="asp-net-error-code-behind" src="http://www.nop.in.th/wp-content/uploads/2008/07/asp-net-error-code-behind-400x387.png" alt="" width="400" height="387" /></a></p>
<p>อ่านจาก <a href="http://blog.coderlab.us/2006/12/20/parser-error-message-could-not-load-type-_default/#comment-12052" target="_blank">CoderLab</a> แล้วลองทำตาม Work !!! ครับ</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nop.in.th/net-vb-c/error-parser-error-message-could-not-load-type-_default/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>จัดการ Host File ใน Pocket PC ง่ายๆ ด้วย Pocket Host !!!</title>
		<link>http://www.nop.in.th/net-vb-c/host-file-in-pocket-pc/</link>
		<comments>http://www.nop.in.th/net-vb-c/host-file-in-pocket-pc/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 15:42:05 +0000</pubDate>
		<dc:creator>นพ</dc:creator>
				<category><![CDATA[.Net (vb , c#)]]></category>

		<guid isPermaLink="false">http://www.nop.in.th/?p=188</guid>
		<description><![CDATA[เมื่อต้องทำ Pocket PC Project แบบ Consume Web Service ตรงโน้นตรงนี้ ช่วงนี้เลยเก็บเล็กเก็บน้อยเรื่องนี้มาได้เยอะหน่อย หลายคนคงรู้กันดีว่า ใน windows หรือ linux ต่างมี host file ของตัวเอง คือ dns ย่อมๆ ของเราเอง สำหรับการ Map Domain กะ IP ภายในเครื่อง แต่แล้วก็สงสัยว่า อ้าวแล้ว Pocket PC มีหรือเปล่า เพราะว่า ทุกวันนี้มี Server ตัวนึง ต้องทำการ Map Ip อย่างที่ว่าอยู่เป็นปกตินี่แหละ ไอ้ครั้นจะไปเปิด Domain แล้วชี้ไปเลย ก็ไม่มีสิทธิทำขนาดนั้น เลยต้องหา วิธีการให้ Pocket มี Host file แทน ลอง Search [...]]]></description>
			<content:encoded><![CDATA[<p>เมื่อต้องทำ Pocket PC Project แบบ Consume Web Service ตรงโน้นตรงนี้ ช่วงนี้เลยเก็บเล็กเก็บน้อยเรื่องนี้มาได้เยอะหน่อย หลายคนคงรู้กันดีว่า ใน windows หรือ linux ต่างมี host file ของตัวเอง คือ dns ย่อมๆ ของเราเอง สำหรับการ Map Domain กะ IP ภายในเครื่อง แต่แล้วก็สงสัยว่า อ้าวแล้ว Pocket PC มีหรือเปล่า เพราะว่า ทุกวันนี้มี Server ตัวนึง ต้องทำการ Map Ip อย่างที่ว่าอยู่เป็นปกตินี่แหละ ไอ้ครั้นจะไปเปิด Domain แล้วชี้ไปเลย ก็ไม่มีสิทธิทำขนาดนั้น เลยต้องหา วิธีการให้ Pocket มี Host file แทน ลอง Search จาก Google อีกเช่นเคย เค้าให้ไปแก้ใน Registry ของมัน ค่อนข้าง Hardcore เลยทีเดียว ตามไปอ่านได้ที่นี่<br />
<a href="http://windowsmobilepro.blogspot.com/2006/04/etchosts-file-equivalent-in-windows.html" target="_blank">Lao K</a></p>
<p>หรือ สำหรับวิธีที่ง่ายกว่านั้น ก็มีโปรแกรมสำหรับจัดการพวกนี้เป็น Third Party ชื่อ <strong>Pocket Host</strong> ลองโหลดไปเล่นถ้าใครสนใจครับ Work!! 100%</p>
<p><a href="http://www.nop.in.th/wp-content/uploads/2008/07/hosts15.zip">hosts15</a> (เอามา host ไว้เอง เพราะว่าจะโหลดจาก Handango ได้วุ่นวายไปหน่อย)</p>
<p> <a href="http://www.nop.in.th/wp-content/uploads/2008/07/ppc-host1.png" rel='lytebox[host-file-in-pocket-pc]'><img class="alignnone size-full wp-image-193" title="ppc-host1" src="http://www.nop.in.th/wp-content/uploads/2008/07/ppc-host1.png" alt="" width="240" height="321" /></a></p>
<p>หน้าตาเป็นแบบนี้หลังลงโปรแกรมแล้ว ใช้งานง่าย บริหารสะดวกครับ</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nop.in.th/net-vb-c/host-file-in-pocket-pc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pocket Pc Emulator ของ VS2005 ออกเน็ตไม่ได้ ฟ้อง &#8220;Could not establish connection to network&#8221;</title>
		<link>http://www.nop.in.th/net-vb-c/pocket-pc-emulator-network-error/</link>
		<comments>http://www.nop.in.th/net-vb-c/pocket-pc-emulator-network-error/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 15:20:35 +0000</pubDate>
		<dc:creator>นพ</dc:creator>
				<category><![CDATA[.Net (vb , c#)]]></category>
		<category><![CDATA[PocketPC]]></category>

		<guid isPermaLink="false">http://www.nop.in.th/?p=185</guid>
		<description><![CDATA[คงสงสัยว่า (หรือเราสงสัยคนเดียว) ทำไมต้องเอา Pocket Pc ออกเน็ตด้วยล่ะ ในเมื่อ Internet Explorer ก็มี หน้าต่างออกใหญ่โต ทำไมต้องไปเล่นใน Pocket PC ด้วย แถมยังเป็น Emulator อีกต่างหาก ช้าไปใหญ่เลย แต่เรื่องของเรื่องก็คือว่า ต้องการ ทดลอง Consume Webservice ผ่าน Pocket Pc Emulator นี่สิ เมื่อออกเน็ตไม่ได้  เข้าเครื่อง แม่ ก็ไม่ได้ ถ้าพยายามจะเข้า Internet จะฟ้อง Error &#8220;Could not establish connection to network&#8221; ซึ่งเมื่อเอาไป Search ใน Google แล้ว ก็พบว่าเป็นปัญหาที่หลากหลายจริงๆ มีคนเป็นกันเยอะ แต่ที่แก้ได้ ผมเอามาจาก Mr. Ryan ซึ่งตอบว่า ให้ลง [...]]]></description>
			<content:encoded><![CDATA[<p>คงสงสัยว่า (หรือเราสงสัยคนเดียว) ทำไมต้องเอา Pocket Pc ออกเน็ตด้วยล่ะ ในเมื่อ Internet Explorer ก็มี หน้าต่างออกใหญ่โต ทำไมต้องไปเล่นใน Pocket PC ด้วย แถมยังเป็น Emulator อีกต่างหาก ช้าไปใหญ่เลย แต่เรื่องของเรื่องก็คือว่า ต้องการ ทดลอง Consume Webservice ผ่าน Pocket Pc Emulator นี่สิ เมื่อออกเน็ตไม่ได้  เข้าเครื่อง แม่ ก็ไม่ได้ ถ้าพยายามจะเข้า Internet จะฟ้อง Error  <strong>&#8220;Could not establish connection to network&#8221;</strong> ซึ่งเมื่อเอาไป Search ใน Google แล้ว ก็พบว่าเป็นปัญหาที่หลากหลายจริงๆ มีคนเป็นกันเยอะ แต่ที่แก้ได้ ผมเอามาจาก <a href="http://www.c-sharpcorner.com/UploadFile/danish.hameed/ppcdatabinding11112005074350AM/ppcdatabinding.aspx" target="_blank">Mr. Ryan</a> ซึ่งตอบว่า ให้ลง Active Sync ก่อน (แค่เนี๊ยย) แต่แค่นั้นยังไม่จบครับ ลงเสร็จแล้ว เวลาจะต่อกับ Emulator นั้นต้องไปที่  Visual Studio 2005 ในเมนู Tools&gt;Device Emulator Manager โดยเมื่อคลิกแล้วจะมีหน้าตาอย่างนี้</p>
<p><a href="http://www.nop.in.th/wp-content/uploads/2008/07/ppc-device-manager.png" rel='lytebox[pocket-pc-emulator-network-error]'><img class="alignnone size-full wp-image-186" title="ppc-device-manager" src="http://www.nop.in.th/wp-content/uploads/2008/07/ppc-device-manager.png" alt="" width="420" height="300" /></a></p>
<p>ของผมเลือกเป็น Pocket PC 2003 SE เมื่อเลือกแล้วให้กด Connect</p>
<p>เมื่อกด Connect แล้ว ให้เลือก Menu Cradle ตัว Pocket PC Emulator จะทำการ Sync เข้ากับ ActiveSync ในเครื่องของเรา หลังจากนั้นก็เหมือน Pocket Pc ของจริงเลยครับ ใช้งานได้เท่านั้น แค่นี้ก้อสามารถ Consume Webservice ด้วย Pocket PC Emulator ได้แล้วครับ</p>
<p>เป็นอันจบการทำงาน ^^ ไม่ต้องทำอะไรกัน ลอง Se<br />
We are unable to establish a connection with the webservice.We get an error like&#8221;Could not establish connection to network.&#8221;Could you please help with this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nop.in.th/net-vb-c/pocket-pc-emulator-network-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;One or more errors encountered while loading the designer&#8221;</title>
		<link>http://www.nop.in.th/net-vb-c/one-or-more-errors-encountered-while-loading-the-designer/</link>
		<comments>http://www.nop.in.th/net-vb-c/one-or-more-errors-encountered-while-loading-the-designer/#comments</comments>
		<pubDate>Thu, 24 May 2007 10:18:45 +0000</pubDate>
		<dc:creator>pixelbar</dc:creator>
				<category><![CDATA[.Net (vb , c#)]]></category>

		<guid isPermaLink="false">http://www.nop.in.th/?p=114</guid>
		<description><![CDATA[แก้ปัญหา Visual Studio 2005 Error: Solution &#8220;One or more errors encountered while loading the designer&#8221; บางครั้งเราเปิดงานเก่าของเราใน Visual Studio 2005 ไม่ว่าจะเป็น VB.Net หรือ C# จะพบว่า ไม่สามารถเปิด Form ได้ และมี Error &#8220;One or more errors encountered while loading the designer&#8221; เกิดขึ้น ซึ่งถือเป็นอุบัติภัยที่เสียหายอย่างร้ายแรง เลยมีข้อสงสัยว่าเกิดอะไรขึ้น CODE ก็ไม่ได้แก้อะไรสักหน่อย ทำไมเป็นอย่างนั้น &#8220;One or more errors encountered while loading the designer&#8221; ช่างเป็นประโยคที่บาดจิตใจโดยไม่รู้จะแก้ไขยังไงดี ผมเลยไป [...]]]></description>
			<content:encoded><![CDATA[<h2>แก้ปัญหา Visual Studio 2005 Error: Solution &#8220;One or more errors encountered while loading the designer&#8221;</h2>
<p>บางครั้งเราเปิดงานเก่าของเราใน Visual Studio 2005  ไม่ว่าจะเป็น VB.Net หรือ C# จะพบว่า ไม่สามารถเปิด Form ได้ และมี Error  &#8220;One or more errors encountered while loading the designer&#8221; เกิดขึ้น ซึ่งถือเป็นอุบัติภัยที่เสียหายอย่างร้ายแรง เลยมีข้อสงสัยว่าเกิดอะไรขึ้น CODE ก็ไม่ได้แก้อะไรสักหน่อย ทำไมเป็นอย่างนั้น</p>
<p><strong>&#8220;One or more errors encountered while loading the designer&#8221;</strong></p>
<p>ช่างเป็นประโยคที่บาดจิตใจโดยไม่รู้จะแก้ไขยังไงดี ผมเลยไป Search ใน Google (จริงๆ ผมก็ไม่ได้ใช้ .Net หรอกครับ แต่น้องๆ พี่ๆ ที่ Office เค้าใช้กัน) พบว่ามันมีวิธีแก้ที่ได้ผลจริงอยู่  โดยวิธีการแก้ไขง่ายแสนง่าย<span id="more-80"></span></p>
<p>1. ปิด Visual Studio ทั้งหมดก่อน</p>
<p>2. ไปที่ Folder ที่ Project File เราเก็บไว้ ในภาพผมเก็บไว้ที่ Drive D Folder Test  ให้ทำการคลิกขวาที่ Folder ไปที่ Property ดังภาพ</p>
<p><img src="http://www.nop.in.th/wp-content/uploads/2007/05/vbnet-error-01.gif" alt="One or more errors encountered 01" /></p>
<p>3. คลิกที่ ปุ่ม Advance</p>
<p>4. เอาเครื่องหมายถูกหน้า For fast searching, allow Indexing Service to index this folder ออก ดังภาพ</p>
<p><a href="http://www.nop.in.th/wp-content/uploads/2007/05/vbnet-error-02.gif" title="One or more errors encountered 02" rel='lytebox[one-or-more-errors-encountered-while-loading-the-designer]'><img src="http://www.nop.in.th/wp-content/uploads/2007/05/vbnet-error-02.gif" alt="One or more errors encountered 02" /></a></p>
<p>5. เปิด Project เจ้าปัญหาขึ้นมาใหม่ จากนั้น Rebuid จากนั้นออกอีกครั้ง แล้วเข้าใหม่ ปัญหาเจ้ากรรมจะหายไปครับ</p>
<p>ผมอ้างอิงมาจากที่นี่นะครับ</p>
<p>http://geekswithblogs.net/Patware/archive/2006/10/18/94460.aspx</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nop.in.th/net-vb-c/one-or-more-errors-encountered-while-loading-the-designer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
