You are here

Object reference not set to an instance of an object.

43 posts / 0 new
Last post
Graburrz
Offline
Donator
Joined: 7 years
Last seen: 1 week
Object reference not set to an instance of an object.

The other day I suddenly started getting this error code running a grab on my PC running Windows 10:

[Critical]
Object reference not set to an instance of an object.
[Critical]
at  . ..ctor(String )
at  .—. (String[] )
[Critical] Unhandled Exception
[Critical] For detailed info, see log file C:\Users\admin\AppData\Local\WebGrab+Plus\WebGrab++.log.txt
[Critical] Execution stopped

When I ran the exact same config that's been working properly for many months on my Windows 7 system running the same Webgrab++ v3.3.0.0, the process proceeded properly without complaint. In the past similar errors on both systems were resolved by updating Webgrab++. But I see v3.3.0.0 is listed as the latest stable build.

I'm stumped. Does anyone have any idea what might be going on here?

mat8861
Offline
WG++ Team memberDonator
Joined: 8 years
Last seen: 6 min

Suggest you install dotnet and wg++ 5.0.1.1 that runs very smooth, anyway that error comes as already mentioned in FAQ due to dns or network problem, corrupted config. use the sample in misc folder, rename it then add license data and channels, see if it's ok.

Graburrz
Offline
Donator
Joined: 7 years
Last seen: 1 week

Well I started with adding a few channels to the example config. That processed fine. Then I added back all my previous settings one by one, testing each addition before adding the next. Ended up with my original config working just fine. The Gods must be crazy, a little too high, just toying with us, or all of the above.

mat8861
Offline
WG++ Team memberDonator
Joined: 8 years
Last seen: 6 min

that's really a mystery. Anyway most of the times is due to wrong editor, remote editing and connection.

Graburrz
Offline
Donator
Joined: 7 years
Last seen: 1 week

I gave up trying to brainstorm explanations for such mysteries way, way back after a failed night of trying to fix a friend's PC who knew zip about PCs. He thanked me for my efforts, and said maybe it'll fix itself overnight. Lo and behold the darned thing booted up and worked fine the next day! But thanks for getting me to try that 'example' approach matt. I did manage to learn a few things in the process. :D

manyplay
Offline
manyplay's picture
Donator
Joined: 7 years
Last seen: 2 months

Getting the same error since updating to 5.1 build 2

Win 11 64 bit (latest updates 23/08/20)

No channel into renamed new installed demo WebGrab++.config.xml inserted

just added my license data:

WebGrab+Plus/w MDB & REX Postprocess -- version V5.1.0.0 -- build 2

Jan van Straaten
Francis De Paemeleere

thanks to Paul Weterings, Mat8861, Blackbear199 and all the contributing users
--------------------------------------------------------------------------------

Job started at 20/08/2023 14:04:49
Checking License ..
For License request/update data, see WGLicense.log.txt
Job finished at 20/08/2023 14:04:51 done in 2s

Object reference not set to an instance of an object.

at  . ..ctor(String)
at  .‥. (String[])
Unhandled Exception
For detailed info, see log file C:\Users\Administrator\AppData\Local\WebGrab+Plus\WebGrab++.log.txt
Execution stopped

with channels inside the result is the same no channel is handled.

i would be helpful to get a line number (at ...) or something else to identify an issue...

NET 7.0 Runtime (v7.0.10) must be installed also after WG++ installation MANUALLY to get WG++ working first time...

mat8861
Offline
WG++ Team memberDonator
Joined: 8 years
Last seen: 6 min

post your webgrab_log and config please (without license)

manyplay
Offline
manyplay's picture
Donator
Joined: 7 years
Last seen: 2 months

hmm - Nothing changed and another try hours later with one inserted channel...
One Change - Debug on!


[ ] WebGrab+Plus/w MDB & REX Postprocess -- version V5.1.0.0 -- build 2
[ ]
[ ] Jan van Straaten
[ ] Francis De Paemeleere
[ ]
[ ] thanks to Paul Weterings, Mat8861, Blackbear199 and all the contributing users
[ ] --------------------------------------------------------------------------------
[ ]
[ ] Job started at 20/08/2023 19:17:58
[ Debug ]
[ Debug ] Running on: Microsoft Windows NT 10.0.22000.0
[ Debug ] Environment: 7.0.10
[ Debug ]
[ Debug ] Loading timezone data
[ Debug ] Embedded timezones source: WG.common.timezone.timezonesdata.txt
[ Debug ] Reading config file: C:\Users\xyz\AppData\Local\WebGrab+Plus\WebGrab++.config.xml
[ Info ] Checking License ..
[ Info ] For License request/update data, see WGLicense.log.txt
[ Debug ]
[ Info ] found: C:\Users\xyz\AppData\Local\WebGrab+Plus\siteini.pack\Germany\klack.de.ini -- Revision 04
[ Info ] encrypted in 'new (V3)' mode
[ Info ] input file C:\Users\xyz\AppData\Local\WebGrab+Plus\guide.xml not found ... created a new one ...
[ Info ]
[ Info ]
[ Info ] i=index .=same c=change g=gab r=replace n=new
[ Info ]
[ Info ]
[ Info ] Group (0) :
[ Info ] update requested for - 1 - out of - 1 - channels for 2 day(s)
[ Debug ]
[ Info ] ( 1/1 ) KLACK.DE -- chan. (xmltv_id=Das Erste) -- mode Force
[ Info ]
[ Info ] Summary for update of Das Erste
[ Info ] missing shows added 0
[ Info ] changed shows updated 0
[ Info ] new shows added 58
[ Info ] unchanged shows inspected 0
[ Info ] total after update 58

[ Info ] elapstime / updated show 0.21 seconds
[ Debug ]
[ Debug ] 58 shows in 1 channels
[ Debug ] 0 updated shows
[ Debug ] 58 new shows added
[ Info ]
[ Info ]
[ ] Job finished at 20/08/2023 19:18:11 done in 12s

Cant explain why...

Seemes like its working now - fingers crossed! ;O)

mat8861
Offline
WG++ Team memberDonator
Joined: 8 years
Last seen: 6 min

post your webgrab_log and config please (without license) please. DO not copy paste

mat8861
Offline
WG++ Team memberDonator
Joined: 8 years
Last seen: 6 min

The explanation is network problem (usually dns) or configuration problem

rime777
Offline
Donator
Joined: 5 years
Last seen: 1 month

I am also getting same error, it start before couple of day after working for couple of year. I sometimes run multiple time same file and it run normaly, then randomly stop.

Job started at 17/09/2023 22:27:27
Checking License ..
For License request/update data, see WGLicense.log.txt
Job finished at 17/09/2023 22:27:37 done in 10s

Object reference not set to an instance of an object.

at  . ..ctor(String )
at  .?.?(String[] )
Unhandled Exception
For detailed info, see log file D:\epg\azuriranje\trt1\WebGrab++.log.txt
Execution stopped

nikost74
Offline
Donator
Joined: 5 years
Last seen: 4 months

I am getting the same issue on Linux environment. Doesn't matter which version I use (5.1.0, 5.1.1 5.1.3 etc). Are there any issues with the license server check?

** EDIT **
I can only run the script "run.net.sh" from the ".wg++" folder as user "root". Is this the normal behavior to expect?

Graburrz
Offline
Donator
Joined: 7 years
Last seen: 1 week

This is happening for me again too. And again, only on my Windows 10 system. The same config runs on my Windows 7 system fine. Ghosts in the machine or something. Hopefully it'll sort itself out in a few hours again.

nikost74
Offline
Donator
Joined: 5 years
Last seen: 4 months

What happens if you run wg++ with administrator rights? I.e. in Windows right click on cmd/terminal "Run as admin.." and then run wg++ from its root folder.

Graburrz
Offline
Donator
Joined: 7 years
Last seen: 1 week

Same

nikost74
Offline
Donator
Joined: 5 years
Last seen: 4 months

What happens if you edit the "WebGrab++.config.xml" file and force it to update your license? You add the "f" at the end of the license line.

Attachments: 
mat8861
Offline
WG++ Team memberDonator
Joined: 8 years
Last seen: 6 min

To run latest version is obviously install first dotnet. Then if you still have
[Critical]
at . ..ctor(String )
at .—. (String[] )
It could be a network issue, usually DNS or antivirus/firewall or a corrupted config (always use notepad++ and if you transfer set binary mode in winscp)
In linux also give permission 775

nikost74
Offline
Donator
Joined: 5 years
Last seen: 4 months
mat8861 wrote:

To run latest version is obviously install first dotnet. Then if you still have
[Critical]
at . ..ctor(String )
at .—. (String[] )
It could be a network issue, usually DNS or antivirus/firewall or a corrupted config (always use notepad++ and if you transfer set binary mode in winscp)

Do you mean the "WebGrab++.config.xml" or any other file(s)?

mat8861
Offline
WG++ Team memberDonator
Joined: 8 years
Last seen: 6 min

Yes WebGrab++.config.xml as well encrypted need to be transferred in binary mode

nikost74
Offline
Donator
Joined: 5 years
Last seen: 4 months

In this case you also mean inside the "siteini.pack". If so what is the suggested procedure to update siteini site if i use subversion checkout from github page?
Should I manually update it and use the builtin scripts under linux?

Graburrz
Offline
Donator
Joined: 7 years
Last seen: 1 week
nikost74 wrote:

What happens if you edit the "WebGrab++.config.xml" file and force it to update your license? You add the "f" at the end of the license line.

I have that line disabled by default. Deleted the working one, enabled forced one and ran the grab from an admin command prompt again as you suggested. Still fails. The folks who run WG+ must be aware of this. I can only guess they have no idea why this happens either. It just magically starting working for me last time, but has persisted today. I'm running my grab from my Win7 PC.

Running v3.3.0.0 on both systems

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 6 min

try update ca certificates.
on ubuntu it has a webhook that also updates mono's also.

i know its been mentioned that one of the main causes of this error is dns.
check your license log as see if its being updated.

webgrab sends a ping to bing.com to check for internet connection,if that fails it causes the error also.

Edit:
i forgot your using windows,guess this wouldnt apply to you.least the update certificates part.

Graburrz
Offline
Donator
Joined: 7 years
Last seen: 1 week

3:20 AM It just up and started working again on my W10 PC. Could swear I caught a quick glimpse of something creepy floating under the door right as I was sitting down. Those damned gremlins love setting up shop in all kinds of modern machinery and screwing with the gears.

Graburrz
Offline
Donator
Joined: 7 years
Last seen: 1 week

DUP

nikost74
Offline
Donator
Joined: 5 years
Last seen: 4 months

I still haven't received any answer regarding why I have to run the webgrabplus grabber application as user root under Linux?
My distro is Arch Linux.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 6 min

command line running or via crond?
using docker?

if by command line then you have a permission problem.
docker,do a search.lots posts here about need run by root

Graburrz
Offline
Donator
Joined: 7 years
Last seen: 1 week
nikost74 wrote:

I still haven't received any answer regarding why I have to run the webgrabplus grabber application as user root under Linux?
My distro is Arch Linux.

Hey nikost. Did webgrab start working for you too today. Is a puzzlement!

nikost74
Offline
Donator
Joined: 5 years
Last seen: 4 months

It has been working for me all the time, it's just that I noticed that I got the same error messages as people in this thread from the time that wg++ app was updated to work with dotnet7.
But it seems that my issue is that I need to run the application as user 'root' and everything works fine.

mat8861
Offline
WG++ Team memberDonator
Joined: 8 years
Last seen: 6 min

What permission do you have on/.wg++/ ? you should have 755, obviously you should also verify the owner is the user and not root.

nikost74
Offline
Donator
Joined: 5 years
Last seen: 4 months

Owner is a normal user and folder flag is set to 755. Same result, I am getting this error like this thread, but as user root it works flawless.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 6 min

do ls -l on your bin.net directory.

nikost74
Offline
Donator
Joined: 5 years
Last seen: 4 months

-rwxr-xr-x 1 nit nit 321424 13 okt 10.54 Azure.Core.dll
-rwxr-xr-x 1 nit nit 171440 13 okt 10.54 Azure.Storage.Common.dll
-rwxr-xr-x 1 nit nit 789408 13 okt 10.54 Azure.Storage.Files.Shares.dll
-rwxr-xr-x 1 nit nit 86864 13 okt 10.54 changelog.txt
-rwxr-xr-x 1 nit nit 14720 13 okt 10.54 Microsoft.Bcl.AsyncInterfaces.dll
-rwxr-xr-x 1 nit nit 636416 13 okt 10.54 Newtonsoft.Json.dll
-rwxr-xr-x 1 nit nit 315 13 okt 10.54 openssl.cnf
-rwxr-xr-x 1 nit nit 2412 13 okt 10.54 SiteIni.Pack.Update.sh
-rwxr-xr-x 1 nit nit 29296 13 okt 10.54 System.IO.Hashing.dll
-rwxr-xr-x 1 nit nit 21368 13 okt 10.54 System.Memory.Data.dll
-rwxr-xr-x 1 nit nit 71623 13 okt 10.54 WebGrab+Plus.deps.json
-rwxr-xr-x 1 nit nit 554496 13 okt 10.54 WebGrab+Plus.dll
-rwxr-xr-x 1 nit nit 253 13 okt 10.54 WebGrab+Plus.runtimeconfig.json
-rwxr-xr-x 1 nit nit 16896 13 okt 10.54 WG.azure.dll
-rwxr-xr-x 1 nit nit 7680 13 okt 10.54 WG.common.logger.dll
-rwxr-xr-x 1 nit nit 200192 13 okt 10.54 WG.common.timezone.dll
-rwxr-xr-x 1 nit nit 64512 13 okt 10.54 WG.common.xmltv.dll
-rwxr-xr-x 1 nit nit 31744 13 okt 10.54 WG.donators.dll

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 6 min

that looks ok,how did u extract install webgrab.
once i had the same thing happen as you on my wsl ubuntu.
i was lazy and extracted the tar.tz on my windows maching and copied the files to my wsl home directory.
i chmod _x the files but need run as root or same error as you.
i deleted everything and copied the tar.gz to wsl home directory and extracted it there and it worked as normal user.

nikost74
Offline
Donator
Joined: 5 years
Last seen: 4 months

I have a small RPI3 with manjaro-arm installed with "aarch64" and kernel "6.1.54-1-MANJARO-ARM-RPI".
Also the dotnet installed:
$ dotnet --info
.NET SDK:
Version: 7.0.401
Commit: eb26aacfec

Runtime Environment:
OS Name: manjaro-arm
OS Version:
OS Platform: Linux
RID: linux-arm64
Base Path: /usr/share/dotnet/sdk/7.0.401/

Host:
Version: 7.0.11
Architecture: arm64
Commit: ecb34f85ec

.NET SDKs installed:
7.0.401 [/usr/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.NETCore.App 7.0.11 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
DOTNET_ROOT [/usr/share/dotnet]

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

I am trying to dig for more information myself, but it might be related to the current version of dotnet, folders and their permissions/owners etc.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 6 min

first you dont need the sdk
sdk is for compiling,ect

https://dotnet.microsoft.com/en-us/download/dotnet/7.0

all you need is the .NET runtime(not .NET Desktop runtime)
.NET Desktop runtime ==> used for gui applications
.NET runtime ==========> used for console applications(webgrab is a console app)

if you got lots disk space the u could leave sdk installed.
you will just have wasted space with stuff you will never use.

everyone seems to install sdk when the runtime is all thats needed.

how did you install dotnet
there are many differnt ways(search linux dotnet install)
i use the scripted way myself.

nikost74
Offline
Donator
Joined: 5 years
Last seen: 4 months

Yes I know about the SDK, i am using it for other projects that I develop myself.
From the AUR website search !aur dotnet-runtime-bin

Installed packages:
dotnet-host-bin 7.0.11.sdk401-1
dotnet-runtime-bin 7.0.11.sdk401-1
dotnet-sdk-bin 7.0.11.sdk401-1
dotnet-targeting-pack-bin 7.0.11.sdk401-1

Please note, this issue came with the migration to dotnet v7.0. It was running fine before as any other user inside this Linux OS RPI3 machine.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 6 min

interesting.
had another look in my wsl install.
i dont know why but for some reason i installed dotnet in my /home/user directory.
on my nas i use a chroot and its in /opt
i always insall it in /opt

on my nas it really doent matter as soon as i start chroot its root access.
some odd reason i put it in my home folder on wsl,i forget why.

Edit:
i know why.
as i said above i used the scripted install method.
read the link below,scripted uses a non admin install.
since dotnet is in my user folder it could also explain why it works without root access.
it shouldnt matter where its installed as users should have access to it.
did you check your dotnet install location ownership.
you didnt happen to be sudo'd when u installed it?

https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-man...

nikost74
Offline
Donator
Joined: 5 years
Last seen: 4 months

It's all part of the Arch Linux AUR package install method. It will install it and let the given folder locations have their usual rights, in this case:

lrwxrwxrwx 1 root root 24 13 okt 16.14 dotnet -> /usr/share/dotnet/dotnet

$ ls -al /usr/share/ | grep dotnet
drwxr-xr-x 8 root root 4096 13 okt 16.37 dotnet

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 6 min

no idea what to suggest.
i moved my dotnet folder to /opt,took root ownership of all folder/files with chown
it works fine for me a no root user.
i even tried giving root ownership of the WGLicense.log.txt to try trigger the error.
after wg ran ownership changed back to my non root user.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 8 years
Last seen: 6 min

check the file owner/permissions of your WGLicense.log.txt
maybe it has wrong ownership/permissions.
better yet delete it and let wg create a new one using non root user.

say..
it had root:root and 755
non root user wouldnt have write permission,just read/execute.
that would give the error your getting as license check would fail.

nikost74
Offline
Donator
Joined: 5 years
Last seen: 4 months

It's still the same issue, only with user "root" works.

ocsnetworks
Offline
Donator
Joined: 2 years
Last seen: 4 days

I started having this same issue today...
I already have my DNS set to 8.8.8.8
I also tried 1.1.1.1 same issue.

I upgraded to the BETA 5.1.4.0
Got a message stating I had no internet, but actually did.

Nothing seemed to work.

I read somewhere that bing.com was being pinged...
So I manually pinged the address, showed the ip address, but no responses.
I pinged 8.8.8.8 with responses.
Well I know I have internet at this point.

So I finally changed my hosts file "Running Windows on my End"
8.8.8.8 bing.com

Problem resolved....

I wonder if bing.com or any other site is blocking ping requests....
I was able to ping bing.com from my home computer, but not the server... Different ip addresses...

This is my fix to resolve my issue, however you could use any pingable ip address....
Not sure what the best fix for WebGrab+Plus could be to fix this in future releases.

mat8861
Offline
WG++ Team memberDonator
Joined: 8 years
Last seen: 6 min

These error we know has 2 cause, the network or error in the WebGrab++.config.xml.
first issue can be solved (in particular on vps linux servers) changing the hosts file to point to google 8.8.8.8 and 8.8.4.4, you can also add opendns 208.67.222.222 , then it should work.
For the config we added an example in misc folder, in there you can type your data and add few channels for test, best is to use notepad++ or a linux editor.
A third factor that sometimes occurs, is file transfer, many users transfer files and siteini.pack with winscp or similar, we know that if the transfer mode is not set to binary, it breaks xml and encryption of the siteini's.
Anyway good that you solved.

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