NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 63 64 65 66 67 … 100 Next »
EPG Update via command line nscripthelper failing .net error

 
  • 0 Vote(s) - 0 Average
EPG Update via command line nscripthelper failing .net error
spe109
Offline

Junior Member

UK
Posts: 9
Threads: 2
Joined: Oct 2020
#1
2021-04-03, 09:47 AM
Hi,
I'm having a problem with the command line update, I think this has started since the last release, I have Version: 5.1.1.210329  installed.

Running
"C:\program files\nextpvr\nscripthelper.dll" -updateepg

Outputs this and nothing seems to be written to the logs...
Unhandled Exception: System.TypeLoadException: Could not load type 'System.Object' from assembly 'System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' because the parent does not exist.



Checking the .net versions I have
dotnet --list-runtimes
Microsoft.AspNetCore.All 2.1.24 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.26 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.24 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.26 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.24 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.26 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 3.1.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]


Am I missing a particular version?
Thanks
Graham
Offline

Posting Freak

UK
Posts: 4,056
Threads: 102
Joined: Dec 2005
#2
2021-04-03, 10:17 AM (This post was last modified: 2021-04-03, 10:19 AM by Graham.)
(2021-04-03, 09:47 AM)spe109 Wrote: Running
"C:\program files\nextpvr\nscripthelper.dll" -updateepg

For the avoidance of doubt ... Are you running ...

dotnet "c:\program files\nextpvr\nscripthelper.dll" -updateepg

beginning with a dotnet command?  Thanks.

https://github.com/sub3/NextPVR/wiki/nscripthelper
spe109
Offline

Junior Member

UK
Posts: 9
Threads: 2
Joined: Oct 2020
#3
2021-04-03, 10:27 AM
Sorry, in my script I do run dotnet "C:\program files...", in my testing I have been just attempting to run the arguments part from the dotnet command which I realise is now wrong.

However, when I run the full command I am now getting this error...
Could not resolve CoreCLR path. For more details, enable tracing by setting COREHOST_TRACE environment variable to 1

I have done what the error suggests and set the env variable. I'll just have a look through the output it produces, it is lengthy.
Thanks.
spe109
Offline

Junior Member

UK
Posts: 9
Threads: 2
Joined: Oct 2020
#4
2021-04-03, 12:14 PM (This post was last modified: 2021-04-03, 12:22 PM by spe109.)
I've looked at the trace file and it showed up the following:-

Library Microsoft.Data.Sqlite/3.1.0 does not exist

Library Microsoft.NETCore.Platforms/3.1.0 does not exist

Library SQLitePCLRaw.lib.e_sqlite3/2.0.2 does not exist

Library System.Memory/4.5.3 does not exist



I wasn't sure were these come from and after a little messing around decided to rename the NScriptHelper.deps.json file. When I ran my command after this it all just worked and the EPG updated.



I notice in the release notes "Fixed issue with NScriptHelper.deps.json being missing", I don't know what this means, could this have broken my instance?



I've attached the lengthy output in case it is of any help in debugging.

Thanks
Graham
Offline

Posting Freak

UK
Posts: 4,056
Threads: 102
Joined: Dec 2005
#5
2021-04-03, 12:40 PM
(2021-04-03, 12:14 PM)spe109 Wrote: I've attached the lengthy output in case it is of any help in debugging.

The forum software silently ignores attachments larger than 2 MB.
spe109
Offline

Junior Member

UK
Posts: 9
Threads: 2
Joined: Oct 2020
#6
2021-04-03, 01:01 PM (This post was last modified: 2021-04-03, 01:02 PM by spe109.)
Try adding logs again...Failed.

Tracing enabled @ Sat Apr 3 11:38:46 2021 GMT
--- Invoked dotnet [version: 5.0.4, commit hash: f27d33729518f5aa478aa818b7b4f54a4d50bef1] main = {
dotnet
C:\program files\nextpvr\nscripthelper.dll
-pin:0000
-server:192.168.31.4:8866
-updateepg
}
Reading fx resolver directory=[C:\Program Files\dotnet\host\fxr]
Considering fxr version=[2.1.26]...
Considering fxr version=[3.1.13]...
Considering fxr version=[5.0.2]...
Considering fxr version=[5.0.4]...
Detected latest fxr version=[C:\Program Files\dotnet\host\fxr\5.0.4]...
Resolved fxr [C:\Program Files\dotnet\host\fxr\5.0.4\hostfxr.dll]...
Loaded library from C:\Program Files\dotnet\host\fxr\5.0.4\hostfxr.dll
Invoking fx resolver [C:\Program Files\dotnet\host\fxr\5.0.4\hostfxr.dll] hostfxr_main_startupinfo
Host path: [C:\Program Files\dotnet\dotnet.exe]
Dotnet path: [C:\Program Files\dotnet\]
App path: [C:\Program Files\dotnet\dotnet.dll]
Tracing enabled @ Sat Apr 3 11:38:46 2021 GMT
--- Invoked hostfxr_main_startupinfo [commit hash: f27d33729518f5aa478aa818b7b4f54a4d50bef1]
Checking if CoreCLR path exists=[C:\Program Files\dotnet\coreclr.dll]
--- Executing in muxer mode...
Using the provided arguments to determine the application to execute.
Using dotnet root path [C:\Program Files\dotnet\]
App runtimeconfig.json from [C:\program files\nextpvr\nscripthelper.dll]
Runtime config is cfg=C:\program files\nextpvr\nscripthelper.runtimeconfig.json dev=C:\program files\nextpvr\nscripthelper.runtimeconfig.dev.json
Attempting to read runtime config: C:\program files\nextpvr\nscripthelper.runtimeconfig.json
Attempting to read dev runtime config: C:\program files\nextpvr\nscripthelper.runtimeconfig.dev.json
Runtime config [C:\program files\nextpvr\nscripthelper.runtimeconfig.json] is valid=[1]
Executing as a self-contained app as per config file [C:\program files\nextpvr\nscripthelper.runtimeconfig.json]
--- Resolving hostpolicy.dll version from deps json [C:\program files\nextpvr\nscripthelper.deps.json]
Resolved version from dependency manifest file [C:\program files\nextpvr\nscripthelper.deps.json]
Dependency manifest C:\program files\nextpvr\nscripthelper.deps.json does not contain an entry for runtime.win-x64.Microsoft.NETCore.DotNetHostPolicy
The expected hostpolicy.dll directory is [C:\program files\nextpvr\]
Loaded library from C:\program files\nextpvr\hostpolicy.dll
Tracing enabled @ Sat Apr 3 11:38:46 2021 GMT
Reading from host interface version: [0x16041101:248] to initialize policy version: [0x16041101:240]
spe109
Offline

Junior Member

UK
Posts: 9
Threads: 2
Joined: Oct 2020
#7
2021-04-03, 01:03 PM
--- Invoked hostpolicy [commit hash: 774fc3d6a9659077864171d095f46b1ea19bb51d] [runtime.win-x64.Microsoft.NETCore.DotNetHostPolicy,3.1.9,runtimes/win-x64/native][x64] corehost_main = {
dotnet
C:\program files\nextpvr\nscripthelper.dll
-pin:0000
-server:192.168.31.4:8866
-updateepg
}
Deps file:
-- arguments_t: host_path='C:\Program Files\dotnet\dotnet.exe' app_root='C:\program files\nextpvr\' deps='C:\program files\nextpvr\nscripthelper.deps.json' core_svc='C:\Program Files (x86)\coreservicing' mgd_app='C:\program files\nextpvr\nscripthelper.dll'
-- arguments_t: dotnet shared store: ''
Using C:\program files\nextpvr\nscripthelper.deps.json deps file
Loading deps file... C:\program files\nextpvr\nscripthelper.deps.json as framework dependent=[0]
Adding runtime asset lib/netstandard2.0/Microsoft.Data.Sqlite.dll assemblyVersion=3.1.0.0 fileVersion=3.100.19.56505 from Microsoft.Data.Sqlite.Core/3.1.0
Adding runtime asset lib/netstandard2.0/Microsoft.Win32.SystemEvents.dll assemblyVersion=4.0.2.0 fileVersion=4.700.19.56404 from Microsoft.Win32.SystemEvents/4.7.0
Adding runtime asset NScriptHelper.dll assemblyVersion= fileVersion= from NScriptHelper/1.0.0
Adding runtime asset NUtility.dll assemblyVersion= fileVersion= from NUtility/5.0.0
Adding runtime asset lib/netcoreapp3.0/SQLitePCLRaw.batteries_v2.dll assemblyVersion=2.0.2.669 fileVersion=2.0.2.669 from SQLitePCLRaw.bundle_e_sqlite3/2.0.2
Adding runtime asset lib/netcoreapp3.0/SQLitePCLRaw.nativelibrary.dll assemblyVersion=2.0.2.669 fileVersion=2.0.2.669 from SQLitePCLRaw.bundle_e_sqlite3/2.0.2
Adding runtime asset lib/netstandard2.0/SQLitePCLRaw.core.dll assemblyVersion=2.0.2.669 fileVersion=2.0.2.669 from SQLitePCLRaw.core/2.0.2
Adding runtime asset lib/netstandard2.0/SQLitePCLRaw.provider.dynamic_cdecl.dll assemblyVersion=2.0.2.669 fileVersion=2.0.2.669 from SQLitePCLRaw.provider.dynamic_cdecl/2.0.2
Adding runtime asset lib/netstandard2.0/System.Drawing.Common.dll assemblyVersion=4.0.0.1 fileVersion=4.6.26919.2 from System.Drawing.Common/4.7.0
Reconciling library Microsoft.Data.Sqlite.Core/3.1.0
Parsed runtime deps entry 0 for asset name: Microsoft.Data.Sqlite from package: Microsoft.Data.Sqlite.Core, library version: 3.1.0, relpath: lib/netstandard2.0/Microsoft.Data.Sqlite.dll, assemblyVersion 3.1.0.0, fileVersion 3.100.19.56505
Reconciling library Microsoft.Data.Sqlite/3.1.0
Library Microsoft.Data.Sqlite/3.1.0 does not exist
Reconciling library Microsoft.NETCore.Platforms/3.1.0
Library Microsoft.NETCore.Platforms/3.1.0 does not exist
Reconciling library Microsoft.Win32.SystemEvents/4.7.0
Parsed runtime deps entry 1 for asset name: Microsoft.Win32.SystemEvents from package: Microsoft.Win32.SystemEvents, library version: 4.7.0, relpath: lib/netstandard2.0/Microsoft.Win32.SystemEvents.dll, assemblyVersion 4.0.2.0, fileVersion 4.700.19.56404
Reconciling library NScriptHelper/1.0.0
Parsed runtime deps entry 2 for asset name: NScriptHelper from project: NScriptHelper, library version: 1.0.0, relpath: NScriptHelper.dll, assemblyVersion , fileVersion
Reconciling library NUtility/5.0.0
Parsed runtime deps entry 3 for asset name: NUtility from project: NUtility, library version: 5.0.0, relpath: NUtility.dll, assemblyVersion , fileVersion
Reconciling library SQLitePCLRaw.bundle_e_sqlite3/2.0.2
Parsed runtime deps entry 4 for asset name: SQLitePCLRaw.batteries_v2 from package: SQLitePCLRaw.bundle_e_sqlite3, library version: 2.0.2, relpath: lib/netcoreapp3.0/SQLitePCLRaw.batteries_v2.dll, assemblyVersion 2.0.2.669, fileVersion 2.0.2.669
Parsed runtime deps entry 5 for asset name: SQLitePCLRaw.nativelibrary from package: SQLitePCLRaw.bundle_e_sqlite3, library version: 2.0.2, relpath: lib/netcoreapp3.0/SQLitePCLRaw.nativelibrary.dll, assemblyVersion 2.0.2.669, fileVersion 2.0.2.669
Reconciling library SQLitePCLRaw.core/2.0.2
Parsed runtime deps entry 6 for asset name: SQLitePCLRaw.core from package: SQLitePCLRaw.core, library version: 2.0.2, relpath: lib/netstandard2.0/SQLitePCLRaw.core.dll, assemblyVersion 2.0.2.669, fileVersion 2.0.2.669
Reconciling library SQLitePCLRaw.lib.e_sqlite3/2.0.2
Library SQLitePCLRaw.lib.e_sqlite3/2.0.2 does not exist
Reconciling library SQLitePCLRaw.provider.dynamic_cdecl/2.0.2
Parsed runtime deps entry 7 for asset name: SQLitePCLRaw.provider.dynamic_cdecl from package: SQLitePCLRaw.provider.dynamic_cdecl, library version: 2.0.2, relpath: lib/netstandard2.0/SQLitePCLRaw.provider.dynamic_cdecl.dll, assemblyVersion 2.0.2.669, fileVersion 2.0.2.669
Reconciling library System.Drawing.Common/4.7.0
Parsed runtime deps entry 8 for asset name: System.Drawing.Common from package: System.Drawing.Common, library version: 4.7.0, relpath: lib/netstandard2.0/System.Drawing.Common.dll, assemblyVersion 4.0.0.1, fileVersion 4.6.26919.2
Reconciling library System.Memory/4.5.3
Library System.Memory/4.5.3 does not exist
The rid fallback graph is: {
}
-- Listing probe configurations...
probe_config_t: probe=[] deps-dir-probe=[1]
Adding tpa entry: C:\program files\nextpvr\nscripthelper.dll, AssemblyVersion: , FileVersion:
Processing TPA for deps entry [Microsoft.Data.Sqlite.Core, 3.1.0, lib/netstandard2.0/Microsoft.Data.Sqlite.dll]
Considering entry [Microsoft.Data.Sqlite.Core/3.1.0/lib/netstandard2.0/Microsoft.Data.Sqlite.dll], probe dir [], probe fx level:0, entry fx level:0
Local path query exists C:\program files\nextpvr\Microsoft.Data.Sqlite.dll
Probed deps dir and matched 'C:\program files\nextpvr\Microsoft.Data.Sqlite.dll'
Adding tpa entry: C:\program files\nextpvr\Microsoft.Data.Sqlite.dll, AssemblyVersion: 3.1.0.0, FileVersion: 3.100.19.56505
Processing TPA for deps entry [Microsoft.Win32.SystemEvents, 4.7.0, lib/netstandard2.0/Microsoft.Win32.SystemEvents.dll]
Considering entry [Microsoft.Win32.SystemEvents/4.7.0/lib/netstandard2.0/Microsoft.Win32.SystemEvents.dll], probe dir [], probe fx level:0, entry fx level:0
Local path query exists C:\program files\nextpvr\Microsoft.Win32.SystemEvents.dll
Probed deps dir and matched 'C:\program files\nextpvr\Microsoft.Win32.SystemEvents.dll'
Adding tpa entry: C:\program files\nextpvr\Microsoft.Win32.SystemEvents.dll, AssemblyVersion: 4.0.2.0, FileVersion: 4.700.19.56404
Processing TPA for deps entry [NScriptHelper, 1.0.0, NScriptHelper.dll]
Considering entry [NScriptHelper/1.0.0/NScriptHelper.dll], probe dir [], probe fx level:0, entry fx level:0
Local path query exists C:\program files\nextpvr\NScriptHelper.dll
Probed deps dir and matched 'C:\program files\nextpvr\NScriptHelper.dll'
Adding tpa entry: C:\program files\nextpvr\NScriptHelper.dll, AssemblyVersion: , FileVersion:
Processing TPA for deps entry [NUtility, 5.0.0, NUtility.dll]
Considering entry [NUtility/5.0.0/NUtility.dll], probe dir [], probe fx level:0, entry fx level:0
Local path query exists C:\program files\nextpvr\NUtility.dll
Probed deps dir and matched 'C:\program files\nextpvr\NUtility.dll'
Adding tpa entry: C:\program files\nextpvr\NUtility.dll, AssemblyVersion: , FileVersion:
Processing TPA for deps entry [SQLitePCLRaw.bundle_e_sqlite3, 2.0.2, lib/netcoreapp3.0/SQLitePCLRaw.batteries_v2.dll]
Considering entry [SQLitePCLRaw.bundle_e_sqlite3/2.0.2/lib/netcoreapp3.0/SQLitePCLRaw.batteries_v2.dll], probe dir [], probe fx level:0, entry fx level:0
Local path query exists C:\program files\nextpvr\SQLitePCLRaw.batteries_v2.dll
Probed deps dir and matched 'C:\program files\nextpvr\SQLitePCLRaw.batteries_v2.dll'
Adding tpa entry: C:\program files\nextpvr\SQLitePCLRaw.batteries_v2.dll, AssemblyVersion: 2.0.2.669, FileVersion: 2.0.2.669
Processing TPA for deps entry [SQLitePCLRaw.bundle_e_sqlite3, 2.0.2, lib/netcoreapp3.0/SQLitePCLRaw.nativelibrary.dll]
Considering entry [SQLitePCLRaw.bundle_e_sqlite3/2.0.2/lib/netcoreapp3.0/SQLitePCLRaw.nativelibrary.dll], probe dir [], probe fx level:0, entry fx level:0
Local path query exists C:\program files\nextpvr\SQLitePCLRaw.nativelibrary.dll
Probed deps dir and matched 'C:\program files\nextpvr\SQLitePCLRaw.nativelibrary.dll'
Adding tpa entry: C:\program files\nextpvr\SQLitePCLRaw.nativelibrary.dll, AssemblyVersion: 2.0.2.669, FileVersion: 2.0.2.669
Processing TPA for deps entry [SQLitePCLRaw.core, 2.0.2, lib/netstandard2.0/SQLitePCLRaw.core.dll]
Considering entry [SQLitePCLRaw.core/2.0.2/lib/netstandard2.0/SQLitePCLRaw.core.dll], probe dir [], probe fx level:0, entry fx level:0
Local path query exists C:\program files\nextpvr\SQLitePCLRaw.core.dll
Probed deps dir and matched 'C:\program files\nextpvr\SQLitePCLRaw.core.dll'
Adding tpa entry: C:\program files\nextpvr\SQLitePCLRaw.core.dll, AssemblyVersion: 2.0.2.669, FileVersion: 2.0.2.669
Processing TPA for deps entry [SQLitePCLRaw.provider.dynamic_cdecl, 2.0.2, lib/netstandard2.0/SQLitePCLRaw.provider.dynamic_cdecl.dll]
Considering entry [SQLitePCLRaw.provider.dynamic_cdecl/2.0.2/lib/netstandard2.0/SQLitePCLRaw.provider.dynamic_cdecl.dll], probe dir [], probe fx level:0, entry fx level:0
Local path query exists C:\program files\nextpvr\SQLitePCLRaw.provider.dynamic_cdecl.dll
Probed deps dir and matched 'C:\program files\nextpvr\SQLitePCLRaw.provider.dynamic_cdecl.dll'
Adding tpa entry: C:\program files\nextpvr\SQLitePCLRaw.provider.dynamic_cdecl.dll, AssemblyVersion: 2.0.2.669, FileVersion: 2.0.2.669
Processing TPA for deps entry [System.Drawing.Common, 4.7.0, lib/netstandard2.0/System.Drawing.Common.dll]
Considering entry [System.Drawing.Common/4.7.0/lib/netstandard2.0/System.Drawing.Common.dll], probe dir [], probe fx level:0, entry fx level:0
Local path query exists C:\program files\nextpvr\System.Drawing.Common.dll
Probed deps dir and matched 'C:\program files\nextpvr\System.Drawing.Common.dll'
Adding tpa entry: C:\program files\nextpvr\System.Drawing.Common.dll, AssemblyVersion: 4.0.0.1, FileVersion: 4.6.26919.2
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#8
2021-04-03, 01:31 PM (This post was last modified: 2021-04-12, 11:43 PM by mvallevand.)
In 5.1.1 the instructions changed. First there is a NScripthelper.exe but it looks like it needs more work, since it is missing NScriptHelper.runtimeconfig.json

Use this information to create the NScriptHelper.runtimeconfig.json

Code:
{
  "runtimeOptions": {
    "tfm": "netcoreapp3.1",
    "framework": {
      "name": "Microsoft.NETCore.App",
      "version": "3.1.0"
    }
  }
}

Martin
spe109
Offline

Junior Member

UK
Posts: 9
Threads: 2
Joined: Oct 2020
#9
2021-04-03, 03:41 PM
Thank you.

Putting in that new file NScripthelper.runtimeconfig.json and restoring the original NScriptHelper.deps.json and the command line load worked fine
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  error: No tuner was available for the requested channel jzk 3 157 2025-04-19, 03:30 PM
Last Post: mvallevand
  Schedulesdirect will not update.. shortputt 8 406 2025-04-11, 07:39 PM
Last Post: BrettB
  Video image error on software kellanphil 1 163 2025-02-28, 04:11 AM
Last Post: sub
  EPG Script Error? RedDevilJoe 4 302 2025-02-01, 01:16 AM
Last Post: RedDevilJoe
  No standby after update to Version 7 Escape7 163 8,731 2025-01-04, 05:27 PM
Last Post: sub
  nscripthelper in V7.0.0.241105 PRBUK 3 357 2024-12-17, 10:42 PM
Last Post: mvallevand
  Automate Update Channels on Specific IPTV Device or Group of Devices taylormia 33 2,624 2024-11-15, 02:48 AM
Last Post: taylormia
  TV Guide Showing Duplicate Channels After IPTV Update Channels taylormia 27 1,770 2024-11-10, 12:24 AM
Last Post: sub
  Help regarding channel name update info mellman 5 518 2024-11-03, 05:46 PM
Last Post: mvallevand
  NEW Update Brucek2839 2 447 2024-11-01, 06:28 PM
Last Post: Brucek2839

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode