AdguardForWindows icon indicating copy to clipboard operation
AdguardForWindows copied to clipboard

AdGuard installs correctly but does not load because of a .NET error

Open sanjayen opened this issue 2 years ago • 20 comments

AdGuard version

7.16.4542.0

Browser version

Firefox

OS version

Windows 11 Pro 23H2

What filters do you have enabled?

No response

What Stealth Mode options do you have enabled?

No response

Support ticket ID

No response

Issue Details

Steps to reproduce:

  1. Download Adguard installer from https://adguard.com/en/download.html?os=windows
  2. Execute the installer so that it downloads the application and installs completely
  3. AdGuard should load the first time.

Actual Behavior

AdGuard did not load either after installation or even after clicking on the desktop shortcut. I even rebooted the laptop to verify if that resolves the issue. Going through event log shows these two errors;

Application: Adguard.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.UnauthorizedAccessException at System.IO.__Error.WinIOError(Int32, System.String) at System.IO.Directory.InternalCreateDirectory(System.String, System.String, System.Object, Boolean) at System.IO.Directory.InternalCreateDirectoryHelper(System.String, Boolean) at MfgsObi4kRJG4FsKipF.pdLVFa67f2(System.String, MfgsObi4kRJG4FsKipF) at Adguard.Global.Settings.Locations.get_LogDirectoryLocation() at Adguard.Global.Settings.Locations.d7pPjcMKc4jcle59wWNA() at Adguard.Global.Settings.Locations.get_AgentLogDirectory() at sj01S5UqMLHQYGQxP7BI.GJLtnHVIGdg(sj01S5UqMLHQYGQxP7BI) at Adguard.App.FPJYiV6KFBy() at Adguard.App.n811fZ8YvKXlLxeUMUS7() at Adguard.App..cctor()

Exception Info: System.TypeInitializationException at Adguard.App.Main()

and

Faulting application name: Adguard.exe, version: 7.16.4542.0, time stamp: 0x6586f5d1 Faulting module name: KERNELBASE.dll, version: 10.0.22621.2792, time stamp: 0x3091b6fb Exception code: 0xe0434352 Fault offset: 0x000000000006567c Faulting process ID: 0x0x5B9C Faulting application start time: 0x0x1DA447B6C7C9C49 Faulting application path: C:\Program Files\AdGuard\Adguard.exe Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll Report ID: f55ca1b2-8dc7-4dbd-a4b3-86281c5200d9 Faulting package full name: Faulting package-relative application ID:

Expected Behavior

No response

Screenshots

No response

Additional Information

No response

sanjayen avatar Jan 11 '24 10:01 sanjayen

@sanjayen Hi and sorry for a huge delay.

  1. Please, remove the app via advanced uninstaller and install the latest Beta build then check if it works
  2. Check whether there is adguard.exe process in Task Manager and if so, kill the process then try to launch AdGuard again
  3. Do you have any programs affecting network traffic? It could be antivirus/firewall/vpn

Aydinv13 avatar Jan 25 '24 12:01 Aydinv13

@sanjayen any update?

Aydinv13 avatar Feb 02 '24 10:02 Aydinv13

@Aydinv13 apologies but have been caught up in work. Will try this over the weekend and revert.

sanjayen avatar Feb 02 '24 11:02 sanjayen

@Aydinv13 same error like earlier

Application: Adguard.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.UnauthorizedAccessException at System.IO.__Error.WinIOError(Int32, System.String) at System.IO.Directory.InternalCreateDirectory(System.String, System.String, System.Object, Boolean) at System.IO.Directory.InternalCreateDirectoryHelper(System.String, Boolean) at Lc35JkNcFrP8iRoq5wM.stgcg2QUY7(System.String, Lc35JkNcFrP8iRoq5wM) at Adguard.Global.Settings.Locations.get_AgentLogDirectory() at u66Sl8meb2vf5U0CuQmg.jsYnqTXf64S(u66Sl8meb2vf5U0CuQmg) at Adguard.App.RkiRMxKxur5() at Adguard.App.QFPp65eRefZWuZf2a1YT() at Adguard.App..cctor()

Exception Info: System.TypeInitializationException at Adguard.App.Main()

and

Faulting application name: Adguard.exe, version: 7.17.4580.0, time stamp: 0x65b1345d Faulting module name: KERNELBASE.dll, version: 10.0.22621.3085, time stamp: 0x98257e11 Exception code: 0xe0434352 Fault offset: 0x0000000000064d8c Faulting process ID: 0x0x3A80 Faulting application start time: 0x0x1DA55EEBC913933 Faulting application path: C:\Program Files\AdGuard\Adguard.exe Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll Report ID: e07a98b2-c7d9-4584-9e6b-271ed844e5ff Faulting package full name: Faulting package-relative application ID:

sanjayen avatar Feb 02 '24 15:02 sanjayen

@sanjayen please collect the recent logs from %tmp%/adguard(4 recent logs) and %programdata%/adguard (entire Logs folder)

Aydinv13 avatar Feb 12 '24 11:02 Aydinv13

@Aydinv13 give me till this weekend to get this done.

sanjayen avatar Feb 15 '24 15:02 sanjayen

@sanjayen sorry for another ping, but could you try out the new Nightly build and grab the logs if it still persists please.

Aydinv13 avatar Mar 19 '24 11:03 Aydinv13

Let's keep this topic closed until we get new data.

Aydinv13 avatar Apr 05 '24 08:04 Aydinv13

@Aydinv13 Apologies for the delay as was busy at work.

Downloaded the nightly again today from the link shared earlier but no luck as AdGuard interface does not load. Uninstall also gave a problem this time.

Sharing the log files from Temp and ProgramData folders.

AdGuard-Temp-logs.zip

AdGuard-ProgramData-Logs.zip

sanjayen avatar Apr 06 '24 02:04 sanjayen

@Aydinv13 I installed the latest AdGuard version and it still crashes. Any way I can get it working?

sanjayen avatar Apr 16 '24 14:04 sanjayen

@sanjayen could you create a new folder in %programdata%/Adguard\Logs and name it "agent" then restart your PC.

Aydinv13 avatar Apr 27 '24 10:04 Aydinv13

@Aydinv13 that did the trick and the interface loaded. A couple of more things

  1. I am an admin on the machine but %ProgramData%/AdGuard did not allow me to open up the folder. I had to explicetely add my user ID to gain access to the folder.
  2. I am unable to ON the AdGuard service. It sticks to OFF and RED by stating "An error occured while using the AdGuard service"

What should I check next to make the service work?

sanjayen avatar Apr 27 '24 11:04 sanjayen

Also, I am unable to reinstall the certificate. The error states - Object reference not set to an instance of an object.

sanjayen avatar Apr 27 '24 11:04 sanjayen

Follow the steps please:

  • If you have any programs affecting network traffic please try to turn them off
  • In case it doesn't help please try to get access to %programdata%/Adguard folder and send the logs again
  • Try to remove %programdata%/Adguard (Stop the AdGuard app before) and launch again

Aydinv13 avatar Apr 27 '24 12:04 Aydinv13

@Aydinv13 I can think of Windows Firewall and YogaDNS which are working with network traffic. Sharing the log files from ProgramData again.

Do let me know if there is something else that I can do to make it work. AdGuard-ProgramData-Logs.zip

sanjayen avatar Apr 27 '24 12:04 sanjayen

@sanjayen seem that some application doesn't allow AdGuard to create files in Program Data. Could you disable the apps that can access control on your system one by one and check if it works. It could be the above mentioned applications as well.

Aydinv13 avatar May 14 '24 14:05 Aydinv13

Will do @Aydinv13 and let you know

sanjayen avatar May 14 '24 14:05 sanjayen

@sanjayen , any news?

adbuker avatar Jun 13 '24 15:06 adbuker

No sorry, have been busy at work. Will try this weekend as have a few days off. Will reply back.

sanjayen avatar Jun 13 '24 15:06 sanjayen

@sanjayen sorry for ping, but is there any news about the problem

Danila-Arg avatar Jun 17 '24 07:06 Danila-Arg