1

我收到崩溃报告,但 HostApplicationVersion 未显示我的应用程序的版本。似乎显示的是 NBug 本身的版本,而我的应用程序的版本是 2.12.4.0。

<Report xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <GeneralInfo>
    <CLRVersion>4.0.30319.42000</CLRVersion>
    <DateTime>10/14/2020 6:17:46 PM</DateTime>
    <ExceptionMessage>Object reference not set to an instance of an object.</ExceptionMessage>
    <ExceptionType>System.NullReferenceException</ExceptionType>
    <HostApplication>HotBotVPN.exe</HostApplication>
    <HostApplicationVersion>1.2.*</HostApplicationVersion>
    <NBugVersion>1.2.1.0</NBugVersion>
    <TargetSite>...</TargetSite>
  </GeneralInfo>
</Report>
4

1 回答 1

0

你可能需要设置这个:https ://github.com/soygul/NBug/blob/master/NBug/Settings.cs#L391

我猜你正在动态加载 N Bug 程序集,这可能会导致这种情况。

于 2020-10-15T07:56:34.020 回答