c# - 我在 Visual Studio 2017 中构建的窗体应用程序 (c#) 安装后崩溃
问题描述
我有我在 Visual Studio 2017 中构建的窗口窗体应用程序。安装程序设置是使用 Visual Studio 中的安装程序创建的。每当我安装并运行应用程序时,它都会崩溃。当我查看 Windows 事件查看器时,我得到了这个
Faulting application name: PosAccounting-Sage50-US.exe, version: 4.3.5.0, time stamp: 0xc3042173
Faulting module name: clr.dll, version: 4.8.4150.0, time stamp: 0x5e176ddd
Exception code: 0xc00000fd
Fault offset: 0x004d4c2a
Faulting process id: 0x2b50
Faulting application start time: 0x01d6159eefbbf7f1
Faulting application path: C:\Program Files (x86)\POS Accounting\POS-
Accounting-Setup\PosAccounting-Sage50-US.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Report Id: 5114194f-1bfe-40a0-bb07-46919a936011
Faulting package full name:
Faulting package-relative application ID:
在信息中:
Fault bucket 2100928511447470437, type 1
Event Name: APPCRASH
Response: Not available
Cab Id: 0
Problem signature:
P1: PosAccounting-Sage50-US.exe
P2: 4.3.5.0
P3: c3042173
P4: clr.dll
P5: 4.8.4150.0
P6: 5e176ddd
P7: c00000fd
P8: 004d4c2a
P9:
P10:
Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER8022.tmp.dmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER85C1.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER85D1.tmp.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER85DF.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER85FF.tmp.txt
These files may be available here:
\\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_PosAccounting-Sa_267e585ade93a8e1ed83cd68c79c7116dddbd66_8523bba8_0a198f07
Analysis symbol:
Rechecking for solution: 0
Report Id: 5114194f-1bfe-40a0-bb07-46919a936011
Report Status: 268435456
Hashed bucket: b0dbf3a0b3be42bdcd27ff5997511165
Cab Guid: 0
之前也有一些 .net 框架错误,但我修复了这些错误。奇怪的是我在 bin/debug 或 bin/release 中构建的开发运行完美。但不知道为什么安装它不起作用。
我也从命令提示符运行 Fuslogvw.exe 来检查程序集失败日志并得到了这个
我将日志放在下面的一个文件中
*** Assembly Binder Log Entry (4/18/2020 @ 10:02:24 PM) ***
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\Program Files (x86)\POS Accounting\POS-Accounting-Setup\PosAccounting-Sage50-US.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: DisplayName = Sage.Collaboration, Version=2020.2.0.219, Culture=neutral, PublicKeyToken=d06c16dde04d83e4
(Fully-specified)
LOG: Appbase = file:///C:/Program Files (x86)/POS Accounting/POS-Accounting-Setup/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = PosAccounting-Sage50-US.exe
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Program Files (x86)\POS
Accounting\POS-Accounting-Setup\PosAccounting-Sage50-US.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/POS Accounting/POS-Accounting-Setup/Sage.Collaboration.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/POS Accounting/POS-Accounting-Setup/Sage.Collaboration/Sage.Collaboration.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/POS Accounting/POS-Accounting-Setup/Sage.Collaboration.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/POS Accounting/POS-Accounting-Setup/Sage.Collaboration/Sage.Collaboration.EXE.
LOG: All probing URLs attempted and failed.
*** Assembly Binder Log Entry (4/18/2020 @ 10:02:24 PM) ***
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\Program Files (x86)\POS Accounting\POS-Accounting-Setup\PosAccounting-Sage50-US.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: DisplayName = Sage.Collaboration, Version=2020.2.0.219, Culture=neutral, PublicKeyToken=d06c16dde04d83e4
(Fully-specified)
LOG: Appbase = file:///C:/Program Files (x86)/POS Accounting/POS-Accounting-Setup/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = PosAccounting-Sage50-US.exe
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Program Files (x86)\POS Accounting\POS-Accounting-Setup\PosAccounting-Sage50-US.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/POS Accounting/POS-Accounting-Setup/Sage.Collaboration.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/POS Accounting/POS-Accounting-Setup/Sage.Collaboration/Sage.Collaboration.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/POS Accounting/POS-Accounting-Setup/Sage.Collaboration.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/POS Accounting/POS-Accounting-Setup/Sage.Collaboration/Sage.Collaboration.EXE.
LOG: All probing URLs attempted and failed.
解决方案
推荐阅读
- python - 合并三个numpy数组,保持最大值
- c# - C#:根据类型参数在泛型方法中使用类中的不同字段
- c++ - 在 stm32 上使用调试器 swo
- confluence - 如何通过 REST API 设置空间的类别?
- c# - 当同一组合框中的文本更改时如何填充组合框项目
- xamarin.forms - Xamarin 使用用户证书形成 android
- docusignapi - DocuSign 是否使用最新的 TLS 密码套件?
- database - Symfony 4 / Webpack Encore - 从数据库中动态恢复和应用 CSS 样式
- reactjs - 当在测验中选择选项时警报引导在 React JS 中不起作用
- java - 从命令行创建 AVD 失败;消息说找不到 java.se.ee