【问题标题】:Why NBug HostApplicationVersion shows an incorrect version of the application?为什么 N Bug HostApplicationVersion 显示的应用程序版本不正确?
【发布时间】:2020-10-14 20:17:30
【问题描述】:

我收到崩溃报告,但 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>

【问题讨论】:

    标签: nbug


    【解决方案1】:

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

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

    【讨论】:

    • 我使用的是 NuGet 包版本 1.2.2。没有这样的设置。
    • 那么这可能是由于某种形式的动态加载正在进行(我假设为 ASP.NET)。您唯一的选择是编译和使用来自 GitHub 的最新代码并自己设置该字段。
    猜你喜欢
    • 1970-01-01
    • 2015-07-15
    • 1970-01-01
    • 1970-01-01
    • 2011-08-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多