LogViewPlus Support

IP Address Plugin Issues

https://www.logviewplus.com/forum/Topic2284.aspx

By Jack0101 - 4 Nov 2024

Hello

I'm getting an issue when trying to use the IP Address Plugin ,the plugin fails to load with this error. 


Any ideas ?
Using the latest version of log view plus also tried to load the plugin from program data
By LogViewPlus Support - 4 Nov 2024

Hi Jack - thanks for reporting this issue.

Have you replaced Clearcove.LogViewer.Common.dll with the version shipped with your LogViewPlus install?  We recommend replacing Clearcove.LogViewer.Common.dll and Clearcove.LogViewer.Common.xml with the files included with your LogViewPlus installation. A version of these files is included with the sample code to ensure the samples build correctly, but this version may be out of date. These files can be found in the installation directory %LocalAppData%\LogViewPlus.

Hope that helps,

Toby
By Jack0101 - 6 Nov 2024

Hello 

I've copied that across into the Plugins\Sql directory but the application seems to refuse to start.
You mentioned replacing that file but the plugin doesn't seem to have a file named that ? The files included in the plugin download are: 





Thanks

Jack
By LogViewPlus Support - 6 Nov 2024

I just tested it locally and it appears to be ok.  Are you running the latest version avilable from our Add-Ons page?  What version of LogViewPlus are you using?

You are correct that the IPAddress Add-On does not require Clearcove.LogViewer.Common.dll file to be in the directory.  Apologies for the confusion.  Some add-ons and examples can ship with an extra file which may cause confusion.

The dependencies for the IPAddress assembly are:



You appear to have these files.  Do you have .Net Core installed?  It looks like a minimum version of 2.0 is reqired by MaxMind.Db.  You can check your .Net installations with the powershell script:

# Function to get distinct .NET Framework versions from the registry
function Get-DistinctDotNetFrameworkVersions {
$FrameworkKey = "HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP"
Get-ChildItem -Path $FrameworkKey -Recurse |
Get-ItemProperty -Name Version, Install -ErrorAction SilentlyContinue |
Where-Object { $_.Version -match "^\d" -and $_.Install -eq 1 } |
Select-Object @{Name="Full Version";Expression={$_.Version}} -Unique
}

# Function to get distinct .NET Core / .NET 5+ runtime versions
function Get-DistinctDotNetCoreRuntimes {
if (Test-Path "$env:ProgramFiles\dotnet\shared\Microsoft.NETCore.App") {
Get-ChildItem "$env:ProgramFiles\dotnet\shared\Microsoft.NETCore.App" |
Select-Object @{Name="Full Version";Expression={$_.Name}} -Unique
} else {
Write-Output "No .NET Core / .NET 5+ runtimes found."
}
}

# Display distinct .NET Framework versions
Write-Output "`nDistinct .NET Framework Versions Installed:"
Get-DistinctDotNetFrameworkVersions | ForEach-Object { "Version $($_.'Full Version')" }

# Display distinct .NET Core / .NET 5+ runtime versions
Write-Output "`nDistinct .NET Core / .NET 5+ Runtime Versions Installed:"
Get-DistinctDotNetCoreRuntimes | ForEach-Object { "Version $($_.'Full Version')" }

Also, do you have any other plug-ins running which may be interfering with the assemblies being loaded?  Possibly another add-on referencing .Net Core assemblies.