測驗安裝
出現程式的組件中發生了未經處理的例外。如果單擊繼續應用程式將忽略此錯誤并嘗試繼續
有關呼叫實時(JIT)除錯而不是此對話框的詳細資訊,
請參見此訊息的結尾。
************** 例外文本 **************
System.UnauthorizedAccessException: 對路徑“C:\DingTu.DevForm.exe.Config”的訪問被拒絕。
在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
在 System.Xml.XmlDocument.Save(String filename)
在 DingTu.DevForm.InitDB.btn_TestConnection_Click(Object sender, EventArgs e)
在 System.Windows.Forms.Control.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
在 System.Windows.Forms.Button.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** 已加載的程式集 **************
mscorlib
程式集版本:4.0.0.0
Win32 版本:4.7.3324.0 built by: NET472REL1LAST_C
基本代碼:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
DingTu.DevForm
程式集版本:3.0.0.0
Win32 版本:3.0.0
基本代碼:file:///C:/DingTu.DevForm.exe
----------------------------------------
DingTu.Utilities
程式集版本:1.0.0.0
Win32 版本:1.0.0.0
基本代碼:file:///C:/DingTu.Utilities.DLL
----------------------------------------
System.Windows.Forms
程式集版本:4.0.0.0
Win32 版本:4.7.3324.0 built by: NET472REL1LAST_C
基本代碼:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
程式集版本:4.0.0.0
Win32 版本:4.7.3353.0 built by: NET472REL1LAST_B
基本代碼:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
程式集版本:4.0.0.0
Win32 版本:4.7.3056.0 built by: NET472REL1
基本代碼:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
DingTu.BLL
程式集版本:1.0.0.0
Win32 版本:1.0.0.0
基本代碼:file:///C:/DingTu.BLL.DLL
----------------------------------------
DingTu.Model
程式集版本:1.0.0.0
Win32 版本:1.0.0.0
基本代碼:file:///C:/DingTu.Model.DLL
----------------------------------------
DevExpress.BonusSkins.v13.2
程式集版本:13.2.8.0
Win32 版本:13.2.8.0
基本代碼:file:///C:/DevExpress.BonusSkins.v13.2.DLL
----------------------------------------
DevExpress.Utils.v13.2
程式集版本:13.2.8.0
Win32 版本:13.2.8.0
基本代碼:file:///C:/DevExpress.Utils.v13.2.DLL
----------------------------------------
DingTu.DAL
程式集版本:1.0.0.0
Win32 版本:1.0.0.0
基本代碼:file:///C:/DingTu.DAL.DLL
----------------------------------------
System.Configuration
程式集版本:4.0.0.0
Win32 版本:4.7.3056.0 built by: NET472REL1
基本代碼:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
程式集版本:4.0.0.0
Win32 版本:4.7.3324.0 built by: NET472REL1LAST_C
基本代碼:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
程式集版本:4.0.0.0
Win32 版本:4.7.3056.0 built by: NET472REL1
基本代碼:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data
程式集版本:4.0.0.0
Win32 版本:4.7.3260.0 built by: NET472REL1LAST_C
基本代碼:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Numerics
程式集版本:4.0.0.0
Win32 版本:4.7.3056.0 built by: NET472REL1
基本代碼:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Data.OracleClient
程式集版本:4.0.0.0
Win32 版本:4.7.3056.0 built by: NET472REL1
基本代碼:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data.OracleClient/v4.0_4.0.0.0__b77a5c561934e089/System.Data.OracleClient.dll
----------------------------------------
mscorlib.resources
程式集版本:4.0.0.0
Win32 版本:4.7.3056.0 built by: NET472REL1
基本代碼:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Windows.Forms.resources
程式集版本:4.0.0.0
Win32 版本:4.7.3056.0 built by: NET472REL1
基本代碼:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
Accessibility
程式集版本:4.0.0.0
Win32 版本:4.7.3056.0 built by: NET472REL1
基本代碼:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
************** JIT 除錯 **************
要啟用實時(JIT)除錯,
該應用程式或計算機的 .config 檔案(machine.config)的 system.windows.forms 節中必須設定
jitDebugging 值。
編譯應用程式時還必須啟用
除錯。
例如:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
啟用 JIT 除錯后,任何未經處理的例外
都將被發送到在此計算機上注冊的 JIT 除錯程式,
而不是由此對話框處理。
這個該如何處理
uj5u.com熱心網友回復:
例外不都拋出來了,對路徑“C:\DingTu.DevForm.exe.Config”的訪問被拒絕。系統用戶是管理員嗎?給安裝目錄檔案夾USER Everyone 所有權限,如果不想這么麻煩,換個打包工具試試比如Advanced Installeruj5u.com熱心網友回復:
在xp系統里,可以訪問C盤,如果是win7或以后的系統,都是不允許訪問C盤的,我的檔案可以正常訪問。
要么,以管理員身份運行程式
uj5u.com熱心網友回復:
有用,解決了,果然是檔案沒權限
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/55382.html
標籤:VB.NET
下一篇:如何運行屏保程式?
