例行,先謝謝
問題一:在.NET上開發的WPF開發的單機程序,數據庫SQLSERVER,數據庫采用本地連接,生成安裝包,自己安裝,運行,數據庫相關操作沒問題,提問,如果別人安裝該程序后數據庫怎么辦?我個人認為是生成數據庫文件引用到工程里(單機版),是這樣嗎?請解釋一下
問題二:同樣程序安裝包,安裝到其他機器,一運行就提示關閉程序,系統日志內容如下
再謝謝了,兩個日志記錄,一個是程序本身錯誤,一個是.NET Runtime錯誤
?日志名稱:??????????Application來源:????????????Application?Error日期:????????????2012/8/10?星期五?13:31:26事件?ID:?????????1000任務類別:??????????(100)級別:????????????錯誤關鍵字:???????????經典用戶:????????????暫缺計算機:???????????WIN-PC758G0DTKO描述:錯誤應用程序名稱:?CoordinatePositioningSystem.exe,版本:?1.0.0.0,時間戳:?0x502387f0錯誤模塊名稱:?KERNELBASE.dll,版本:?6.1.7601.17651,時間戳:?0x4e211319異常代碼:?0xe0434352錯誤偏移量:?0x0000b9bc錯誤進程?ID:?0x1870錯誤應用程序啟動時間:?0x01cd76b9629111b7錯誤應用程序路徑:?xx\CoordinatePositioningSystem.exe錯誤模塊路徑:?C:\Windows\syswow64\KERNELBASE.dll報告?ID:?a07536fd-e2ac-11e1-8d47-64315088df7d
?
?日志名稱:??????????Application來源:????????????.NET?Runtime日期:????????????2012/8/10?星期五?13:31:26事件?ID:?????????1026任務類別:??????????無級別:????????????錯誤關鍵字:???????????經典用戶:????????????暫缺計算機:?????????xx描述:應用程序:?CoordinatePositioningSystem.exeFramework?版本:?v4.0.30319說明:?由于未經處理的異常,進程終止。異常信息:?System.Windows.Markup.XamlParseException堆棧:???在?System.Windows.Markup.XamlReader.RewrapException(System.Exception,?System.Xaml.IXamlLineInfo,?System.Uri)???在?System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader,?System.Xaml.IXamlObjectWriterFactory,?Boolean,?System.Object,?System.Xaml.XamlObjectWriterSettings,?System.Uri)???在?System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader,?Boolean,?System.Object,?System.Xaml.Permissions.XamlAccessLevel,?System.Uri)???在?System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream,?System.Windows.Markup.ParserContext,?System.Object,?Boolean)???在?System.Windows.Application.LoadBamlStreamWithSyncInfo(System.IO.Stream,?System.Windows.Markup.ParserContext)???在?System.Windows.Application.LoadComponent(System.Uri,?Boolean)???在?System.Windows.Application.DoStartup()???在?System.Windows.Application.<.ctor>b__1(System.Object)???在?System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate,?System.Object,?Int32)???在?MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object,?System.Delegate,?System.Object,?Int32,?System.Delegate)???在?System.Windows.Threading.DispatcherOperation.InvokeImpl()???在?System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)???在?System.Threading.ExecutionContext.runTryCode(System.Object)???在?System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode,?CleanupCode,?System.Object)???在?System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext,?System.Threading.ContextCallback,?System.Object)???在?System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,?System.Threading.ContextCallback,?System.Object,?Boolean)???在?System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,?System.Threading.ContextCallback,?System.Object)???在?System.Windows.Threading.DispatcherOperation.Invoke()???在?System.Windows.Threading.Dispatcher.ProcessQueue()???在?System.Windows.Threading.Dispatcher.WndProcHook(IntPtr,?Int32,?IntPtr,?IntPtr,?Boolean?ByRef)???在?MS.Win32.HwndWrapper.WndProc(IntPtr,?Int32,?IntPtr,?IntPtr,?Boolean?ByRef)???在?MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)???在?System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate,?System.Object,?Int32)???在?MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object,?System.Delegate,?System.Object,?Int32,?System.Delegate)???在?System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority,?System.TimeSpan,?System.Delegate,?System.Object,?Int32)???在?MS.Win32.HwndSubclass.SubclassWndProc(IntPtr,?Int32,?IntPtr,?IntPtr)???在?MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG?ByRef)???在?System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)???在?System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)???在?System.Windows.Application.RunDispatcher(System.Object)???在?System.Windows.Application.RunInternal(System.Windows.Window)???在?System.Windows.Application.Run(System.Windows.Window)???在?System.Windows.Application.Run()???在?CoordinatePositioningSystem.App.Main()
1 回答

料青山看我應如是
TA貢獻1772條經驗 獲得超8個贊
問題1:?生成數據庫文件引用到工程 需要機器具有SQL Server Express版本,除非你SQL Server Compact版本,不需要機器安裝引擎;或者你安裝后可以修改配置文件
問題2:首先需要確定安裝的機器環境是否符合WPF的運行要求,看錯誤好像是這個問題;另外WPF使用的圖標分辨率太高的話也不行
- 1 回答
- 0 關注
- 559 瀏覽
添加回答
舉報
0/150
提交
取消