You are here

Running WebGrab++ with .Net Core runtime instead of Mono

8 posts / 0 new
Last post
awiouy
Offline
Joined: 3 weeks
Last seen: 2 days
Running WebGrab++ with .Net Core runtime instead of Mono

Hello,

Would it be possible to run WebGrab++ with .Net Core runtime instead of Mono under Linux?

I have managed to WebGrab++ 2.1.5 with .Net Core runtime 2.1.0, by creating the following WebGrab+Plus.runtimeconfig.json file:

{
"runtimeOptions": {
"tfm": "netcoreapp2.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "2.0.0"
},
"configProperties": {
"System.Globalization.Invariant": true
}
}
}

WebGrab++ however fails do download files, with the following message:

Could not load type 'System.Net.Configuration.SettingsSection' from assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

Any idea of how to fix this?

Thank you for your work, thank you for your help.
Anton Voyl

Blackbear199
Offline
Joined: 2 years
Last seen: 2 hours

did you copy the .dll files to the same directory as WebGrab+Plus.exe?
this error is because webgrab cannot find them.

awiouy
Offline
Joined: 3 weeks
Last seen: 2 days

The .dll files are in the same directory as the .exe
Should I set a path, via a variable?

Blackbear199
Offline
Joined: 2 years
Last seen: 2 hours

try it.
normally when webgrab runs (via mono) it looks in the same directory as the webgrab.exe for the dll files.

so for example i run it with sh file on my NAS..

#!/bin/bash

cd /raid/NAS_WebGrab

/raid/module/mono/sys/bin/mono WebGrab+Plus.exe "$(pwd)"

exit

so i first cd to my webgrab directory
then i run it via mono(i need to use the full path to its binary in my case as its installed as a module and the binary isnt in the normal directories like /usr/bin,usr/sbin,ect)

"$(pwd)"
this tells webgrab to use the current working directory(raid/NAS_WebGrab) to look for the webgrab++config.xml and ini files.
but i guess the main point is i am also running webgrab from this same directory.

so if your running it from a different one it may be looking there for the dll's

awiouy
Offline
Joined: 3 weeks
Last seen: 2 days

I do the same with Mono, and it runs fine.
But now I try to run with .Net Core (dotnet), which is leaner and faster than Mono

Blackbear199
Offline
Joined: 2 years
Last seen: 2 hours

so setting the path didnt help?
personally i dont think your going to gain much(if anything) using .net core as the bottle neck for webgrab is with download speed from the specific site the ini is using.

awiouy
Offline
Joined: 3 weeks
Last seen: 2 days

My gain would lie in maintenance and build time (I maintain Mono for LibreELEC, which is not easy), and also in storage space (.Net Core takes a fourth of the space of Mono, due to the way that addons are packaged).

I would welcome a release of WebGrab+Plus for .Net Core runtime.
However, I have no idea what this entails.

Blackbear199
Offline
Joined: 2 years
Last seen: 2 hours

so it appears this error is dotnet related.
from what i read u cannot run applications compiled to be run with mono with dotnet.

i did find this..

https://github.com/TheAngryByrd/dotnet-mono

maybe it will of some use.

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl