Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: 請問為何常常出現"組態錯誤"....謝謝

450 views
Skip to first unread message

璉璉

unread,
Mar 29, 2005, 6:43:33 AM3/29/05
to
ASP.NET 內用 ADO.NET 比較好吧...

請檢查你的 A_Insure_TEST\bin 目錄下,有沒有 Interop.ADODB.dll

==> 本文由 "牧葉 <@discussions.microsoft.com>" 發表
> 請問各位前輩,
> 同樣的程式為什麼有時候就可以跑有時候就會出現組態錯誤?
> 以下是錯誤訊息..
>
> 組態錯誤
> 描述: 處理服務此要求所需的組態檔時發生錯誤。請檢視下列的特定錯誤詳細資訊,並適當修改您的組態檔。
> 剖析器錯誤訊息: 拒絕存取: 'Interop.ADODB'。
> 原始程式錯誤:
>
> 行 196: <add assembly="System.EnterpriseServices, Version=1.0.5000.0,
> Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
> 行 197: <add assembly="System.Web.Mobile, Version=1.0.5000.0,
> Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
> 行 198: <add assembly="*"/>
> 行 199: </assemblies>
> 行 200: </compilation>
>
> 原始程式檔: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config
> 行: 198
> 組件載入追蹤: 下列資訊在確定為何無法載入組件 'Interop.ADODB' 時是有幫助的。
>
> === Pre-bind state information ===
> LOG: DisplayName = Interop.ADODB
> (Partial)
> LOG: Appbase = file:///c:/inetpub/wwwroot/A_Insure_TEST
> LOG: Initial PrivatePath = bin
> Calling assembly : (Unknown).
> ===
> LOG: Policy not being applied to reference at this time (private, custom,
> partial, or location-based assembly bind).
> LOG: Post-policy reference: Interop.ADODB
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/a_insure_test/352e2aff/c6927047/Interop.ADODB.DLL.
> LOG: Attempting download of new URL
> file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
> Files/a_insure_test/352e2aff/c6927047/Interop.ADODB/Interop.ADODB.DLL.
> LOG: Attempting download of new URL
> file:///c:/inetpub/wwwroot/A_Insure_TEST/bin/Interop.ADODB.DLL.
> LOG: Policy not being applied to reference at this time (private, custom,
> partial, or location-based assembly bind).
> LOG: Post-policy reference: Interop.ADODB, Version=2.7.0.0, Culture=neutral,
> PublicKeyToken=null
>

--
水海科技系統研發驗證工作室 ASP.NET Web News Reader 0.1.0 Beta
新聞群組 RSS網誌發布測試中 http://tlcheng.no-ip.com/News/rss2.aspx
網站地圖 http://tlcheng.no-ip.com/wwwmap.htm
流域防洪/水資源運用/徐昇網/玫瑰圖/語音通訊 文章與程式
Basic/Fortran/Windows API/.Net/輔助說明檔 原始碼、文章與討論
--
ASPNET News http://tlcheng.no-ip.com/News/ | http://tlcheng.twbbs.org/News/

James

unread,
Mar 29, 2005, 9:27:03 AM3/29/05
to
Dear 牧葉:
我的經驗上是因為你在Reference 參考此ADODB時,是設定在Compiler時複製此DLL檔到本機,
而此時ADODB.DLL並未被釋放,因此會發生這樣的錯誤。

我的解決方法是將此DLL檔先用手動的方式複製到此專案的 \Bin 資料夾內,
然後重新參考此位置的DLL檔,重點在參考後在該DLL檔,如你的Interop.ADODB,
按滑鼠右鍵,在屬性的地方有個複製本機將其設定為False即可。

以上是小弟的一些經驗談,供您參考囉!
希望可以解決你的問題,謝謝~


"牧葉" 來函:

0 new messages