<?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>Horn Network &#187; 錯誤處理</title>
	<atom:link href="http://klcin.tw/net/category/error-handle/feed" rel="self" type="application/rss+xml" />
	<link>http://klcin.tw/net</link>
	<description>Horn Network (.NET, ASP.NET, C#, VB.NET, JavaScript, Ubuntu, Android ...)</description>
	<lastBuildDate>Fri, 04 Mar 2011 07:25:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>安裝 .Net Framework 4 發生 0xc80003f3 錯誤</title>
		<link>http://klcin.tw/net/%e5%ae%89%e8%a3%9d-net-framework-4-%e7%99%bc%e7%94%9f-0xc80003f3-%e9%8c%af%e8%aa%a4</link>
		<comments>http://klcin.tw/net/%e5%ae%89%e8%a3%9d-net-framework-4-%e7%99%bc%e7%94%9f-0xc80003f3-%e9%8c%af%e8%aa%a4#comments</comments>
		<pubDate>Wed, 02 Mar 2011 04:08:56 +0000</pubDate>
		<dc:creator>klcintw</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[錯誤處理]]></category>

		<guid isPermaLink="false">http://klcin.tw/net/%e5%ae%89%e8%a3%9d-net-framework-4-%e7%99%bc%e7%94%9f-0xc80003f3-%e9%8c%af%e8%aa%a4</guid>
		<description><![CDATA[OS：Windows 7 建批次檔，內容如下。執行後再重新安裝。 regsvr32 MSXML3.dll /s net stop wuauserv cd /d %windir%\SoftwareDistribution rd /s /q DataStore net start wuauserv regsvr32 softpub.dll regsvr32 mssip32.dll 參考資料： error &#8211; .Net Framework 4 installation did not succeed: HRESULT 0xC80003F3 &#8211; Server Fault Error code: 0xc80003f3 &#8211; Microsoft Answers]]></description>
			<content:encoded><![CDATA[<p>OS：Windows 7</p>
<p><a href="http://klcin.tw/net/wp-content/uploads/2011/03/snap232.png" rel="lightbox"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="snap232" border="0" alt="snap232" src="http://klcin.tw/net/wp-content/uploads/2011/03/snap232_thumb.png" width="504" height="264" /></a></p>
<p>建批次檔，內容如下。執行後再重新安裝。</p>
<blockquote><p>regsvr32 MSXML3.dll /s      <br />net stop wuauserv       <br />cd /d %windir%\SoftwareDistribution       <br />rd /s /q DataStore       <br />net start wuauserv       <br />regsvr32 softpub.dll       <br />regsvr32 mssip32.dll</p>
</blockquote>
<h4>參考資料：</h4>
<ul>
<li><a href="http://serverfault.com/questions/192080/net-framework-4-installation-did-not-succeed-hresult-0xc80003f3" target="_blank">error &#8211; .Net Framework 4 installation did not succeed: HRESULT 0xC80003F3 &#8211; Server Fault</a> </li>
<li><a href="http://answers.microsoft.com/en-us/protect/forum/protect_start/error-code-0xc80003f3/27315515-db99-428e-a424-f5d1508f7ba1" target="_blank">Error code: 0xc80003f3 &#8211; Microsoft Answers</a> </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://klcin.tw/net/%e5%ae%89%e8%a3%9d-net-framework-4-%e7%99%bc%e7%94%9f-0xc80003f3-%e9%8c%af%e8%aa%a4/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android Market 安裝某些軟體發生：Unknown reason -18</title>
		<link>http://klcin.tw/net/android-market-unknown-reason-18</link>
		<comments>http://klcin.tw/net/android-market-unknown-reason-18#comments</comments>
		<pubDate>Sat, 26 Feb 2011 03:01:21 +0000</pubDate>
		<dc:creator>klcintw</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[錯誤處理]]></category>

		<guid isPermaLink="false">http://klcin.tw/net/android-market-unknown-reason-18</guid>
		<description><![CDATA[應該是某些軟體只能安裝在手機，但某些原因被裝到SD卡所造成的。 你可以試試： unmount SD 卡，安裝成功後再 mount 回來。 將軟體移回手機再更新，或移除再更新。 或是手機設定為強迫安裝到 SD 卡，如曾設過 adb shell pm setInstallLocation 2 可以切換成 0:自動，安裝成功後再切換。 參考資料： app2sd « 二三街角 installation error unknown reason -18 &#8211; Android @ MoDaCo]]></description>
			<content:encoded><![CDATA[<p>應該是某些軟體只能安裝在手機，但某些原因被裝到SD卡所造成的。</p>
<p>你可以試試：</p>
<ol>
<li>unmount SD 卡，安裝成功後再 mount 回來。 </li>
<li>將軟體移回手機再更新，或移除再更新。</li>
<li>或是手機設定為強迫安裝到 SD 卡，如曾設過      <br />adb shell pm setInstallLocation 2       <br />可以切換成 0:自動，安裝成功後再切換。 </li>
</ol>
<p>參考資料：</p>
<li><a href="http://blog.23corner.com/tag/app2sd/" target="_blank">app2sd « 二三街角</a> </li>
<li><a href="http://android.modaco.com/content/advent-vega-vega-modaco-com/327398/installation-error-unknown-reason-18/" target="_blank">installation error unknown reason -18 &#8211; Android @ MoDaCo</a>
</p>
</li>
]]></content:encoded>
			<wfw:commentRss>http://klcin.tw/net/android-market-unknown-reason-18/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ORA-12154: TNS: 無法解析指定的連線 ID</title>
		<link>http://klcin.tw/net/ora-12154-tns-%e7%84%a1%e6%b3%95%e8%a7%a3%e6%9e%90%e6%8c%87%e5%ae%9a%e7%9a%84%e9%80%a3%e7%b7%9a-id</link>
		<comments>http://klcin.tw/net/ora-12154-tns-%e7%84%a1%e6%b3%95%e8%a7%a3%e6%9e%90%e6%8c%87%e5%ae%9a%e7%9a%84%e9%80%a3%e7%b7%9a-id#comments</comments>
		<pubDate>Tue, 15 Dec 2009 09:22:27 +0000</pubDate>
		<dc:creator>klcintw</dc:creator>
				<category><![CDATA[ASP.NET 2.0]]></category>
		<category><![CDATA[IIS7]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Windows7]]></category>
		<category><![CDATA[錯誤處理]]></category>

		<guid isPermaLink="false">http://klcin.tw/net/ora-12154-tns-%e7%84%a1%e6%b3%95%e8%a7%a3%e6%9e%90%e6%8c%87%e5%ae%9a%e7%9a%84%e9%80%a3%e7%b7%9a-id</guid>
		<description><![CDATA[ORA-12154]]></description>
			<content:encoded><![CDATA[<p>環境：Microsoft Windows 7 Ultimate x86, IIS7, ASP.NET 2.0</p>
<p>錯誤：將原本正常的 ASP.NET 2.0 程式建置到 Windows 7 的機器上，發生 ORA-12154 錯誤。</p>
<ul>
<li>ORA-12154: TNS: 無法解析指定的連線 ID </li>
<li>ORA-12154: TNS: could not resolve the connect identifier specified </li>
<li>ORA-12154: TNS: 无法处理服务名 </li>
</ul>
<p>嘗試：</p>
<ul>
<li>用 TNSPING {myTNS} 正常 </li>
<li>修改或移除 web.config 的 <code>&lt;identity impersonate=&quot;true&quot; userName=&quot;user&quot; password=&quot;pass&quot;/&gt; </code>都沒作用。 </li>
<li>參考＜<a href="http://blog.miniasp.com/post/2009/08/Solve-ASPNET-cannot-connect-Oracle-DB-using-Development-Server.aspx" target="_blank">解決 ASP.NET 跑在 x64 機器上無法連接 Oracle DB 的問題</a>＞       <br />將連線字串 <code>User ID=user;Password=pass;Data Source=<font color="#ff0000">myTSN</font>;</code>       <br />改成 <code>User ID=user;Password=pass;Data Source=<font color="#ff0000">(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=???)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=???)))</font></code> 居然沒有錯誤！       <br />所以，連線是正常的，只是找不到 TNS 的定義。 </li>
<li>最後找到＜<a href="http://forums.asp.net/p/1054934/1498691.aspx" target="_blank">Oracle Developer Tools ORA-12154: TNS:could not resolve service name &#8211; ASP.NET Forums</a>＞       <br />在 <code>HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_ODACHome1</code> 加上 <code>TNS_ADMIN</code> 字串 <code>C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN</code> 就OK了！       <br />&#160;
</p>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://klcin.tw/net/ora-12154-tns-%e7%84%a1%e6%b3%95%e8%a7%a3%e6%9e%90%e6%8c%87%e5%ae%9a%e7%9a%84%e9%80%a3%e7%b7%9a-id/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[錯誤處理]LOG: Policy not being applied to reference at this time&#8230;</title>
		<link>http://klcin.tw/net/policy-not-being-applied-to-reference-at-this-time</link>
		<comments>http://klcin.tw/net/policy-not-being-applied-to-reference-at-this-time#comments</comments>
		<pubDate>Tue, 12 Aug 2008 09:21:58 +0000</pubDate>
		<dc:creator>klcintw</dc:creator>
				<category><![CDATA[錯誤處理]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Index Service]]></category>

		<guid isPermaLink="false">http://klcin.tw/net/%e9%8c%af%e8%aa%a4%e8%99%95%e7%90%86log-policy-not-being-applied-to-reference-at-this-time</guid>
		<description><![CDATA[錯誤訊息： LOG: Policy not being applied to reference at this time … …LOG: Post-policy reference: … 狀況： 剛建置完成的網站開啟後不久就發生錯誤，表示找不到或無法存取某個DLL（每次都不一定）。 解決方法： 停用索引服務或將 Temporary ASP.NET 目錄排除在索引中。 C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files 參考資料： KB-ASP.NET 1.1發生DLL Access is denied錯誤 &#8211; 黑暗執行緒 MSDN &#8211; PRB：在執行索引服務時修改程式碼發生拒絕存取的錯誤]]></description>
			<content:encoded><![CDATA[<h3>錯誤訊息：</h3>
<blockquote><p>LOG: Policy not being applied to reference at this time …<br /> …<br />LOG: Post-policy reference: …</p>
</blockquote>
<h3>狀況：</h3>
<p>剛建置完成的網站開啟後不久就發生錯誤，表示找不到或無法存取某個DLL（每次都不一定）。</p>
<h3>解決方法：</h3>
<p>停用索引服務或將 Temporary ASP.NET 目錄排除在索引中。</p>
<p><a href="http://klcin.tw/net/wp-content/uploads/2008/08/snap016.png"><img title="" style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="167" alt="" src="http://klcin.tw/net/wp-content/uploads/2008/08/snap016-thumb.png" width="404" border="0" /></a> </p>
<p>C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files    <br />C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files</p>
<h4>參考資料：</h4>
<ul>
<li><a href="http://blog.darkthread.net/blogs/darkthreadtw/archive/2008/06/12/asp-net-1-1-utility-access-denied-error.aspx">KB-ASP.NET 1.1發生DLL Access is denied錯誤 &#8211; 黑暗執行緒</a> </li>
<li>MSDN &#8211; <a href="http://support.microsoft.com/kb/329065">PRB：在執行索引服務時修改程式碼發生拒絕存取的錯誤</a> </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://klcin.tw/net/policy-not-being-applied-to-reference-at-this-time/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[錯誤處理]Web Deployment Project</title>
		<link>http://klcin.tw/net/web-deployment-project</link>
		<comments>http://klcin.tw/net/web-deployment-project#comments</comments>
		<pubDate>Tue, 12 Aug 2008 08:35:49 +0000</pubDate>
		<dc:creator>klcintw</dc:creator>
				<category><![CDATA[Visual Studio 2005]]></category>
		<category><![CDATA[錯誤處理]]></category>
		<category><![CDATA[VS2005]]></category>

		<guid isPermaLink="false">http://klcin.tw/net/web-deployment-project-%e9%8c%af%e8%aa%a4%e8%99%95%e7%90%86</guid>
		<description><![CDATA[環境：WIN2003＋Visual Studio 2005＋Web Deployment Project aspnet_merge.exe&#34; 以返回碼 1 結束。 錯誤訊息： &#34;aspnet_merge.exe&#34; 以返回碼 1 結束。 An error occurred when merging assemblies: ILMerge.Merge: ERROR!!: Duplicate type &#8216;DataService&#8217; found in assembly &#8216;App_Web_i7eijh5q&#8217;. 解決方法： 變更專案建置輸出的詳細等級 工具＼選項＼專案和方案＼建置並執行＼MSBuild 專案建置輸出詳細等級 改為「詳細」 重新建置後就能看到詳細的錯誤訊息，應該是類別名稱重複。 修改重複的型別名稱即可。 索引在陣列的界限之外 錯誤訊息： An error occurred when merging assemblies: 索引在陣列的界限之外。 解決方法： 可能 Web Service 的 [WebMethod(Description = &#34;中文&#34;)] 有中文字 可能 [...]]]></description>
			<content:encoded><![CDATA[</p>
<p>環境：WIN2003＋Visual Studio 2005＋Web Deployment Project</p>
<h2>aspnet_merge.exe&quot; 以返回碼 1 結束。</h2>
<h3>錯誤訊息：</h3>
<blockquote><p>&quot;aspnet_merge.exe&quot; 以返回碼 1 結束。      <br />An error occurred when merging assemblies: ILMerge.Merge: ERROR!!: Duplicate type &#8216;DataService&#8217; found in assembly &#8216;App_Web_i7eijh5q&#8217;.</p>
</blockquote>
<h3>解決方法：</h3>
<ol>
<li>變更專案建置輸出的詳細等級      <br />工具＼選項＼專案和方案＼建置並執行＼MSBuild 專案建置輸出詳細等級       <br />改為「詳細」       <br /><a href="http://klcin.tw/net/wp-content/uploads/2008/08/snap008.png"><img title="" style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="221" alt="" src="http://klcin.tw/net/wp-content/uploads/2008/08/snap008-thumb.png" width="404" border="0" /></a> </li>
<li>重新建置後就能看到詳細的錯誤訊息，應該是類別名稱重複。      <br /><a href="http://klcin.tw/net/wp-content/uploads/2008/08/snap009.png"><img title="" style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="111" alt="" src="http://klcin.tw/net/wp-content/uploads/2008/08/snap009-thumb.png" width="404" border="0" /></a> </li>
<li>修改重複的型別名稱即可。 </li>
</ol>
<h2></h2>
</p>
</p>
<h3>索引在陣列的界限之外</h3>
<h3>錯誤訊息：</h3>
<blockquote><p>An error occurred when merging assemblies: 索引在陣列的界限之外。</p>
</blockquote>
<h3>解決方法：</h3>
<ul>
<li>可能 Web Service 的 [WebMethod(Description = &quot;中文&quot;)] 有中文字 </li>
<li>可能 AssemblyInfo.cs 有中文字 </li>
</ul>
<h4>參考資料：</h4>
<ul>
<li><a title="http://www.51cto.com/art/200711/61320.htm" href="http://www.51cto.com/art/200711/61320.htm">http://www.51cto.com/art/200711/61320.htm</a>       </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://klcin.tw/net/web-deployment-project/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

