On a .NET Framework WebAPI service, using Raygun and NLog. When an exception happens, Raygun tracks the correct version of the executing assembly. But when the error is reported via NLog Raygun target, it only says Could not find value for entry assembly and version type File
.
What I already tried to fix this:
- update all packages
- set
RaygunWebApiClient.ApplicationVersion
inWebApiConfig.Register
, did not work out - set
<target ApplicationVersion="1.1.1.1" />
in nlog.config, this actually works, but its a fixed string, not the current assembly version. - set
<target UseExecutingAssemblyVersion="true" />
in nlog.config, did not work - set AssemblyVersion, FileVersion and Version in .csproj for all (.NET Standard) sub projects, did not work out
Not sure, what else could help. When I call Assembly.GetExecutingAssembly().GetName().Version
at the place, where Logger.Error
is called, it returns the correct version (but it is still not recorded).