Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sanjayen opened this issue Jan 11, 2024 · 20 comments
Closed

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

sanjayen opened this issue Jan 11, 2024 · 20 comments

Comments

@sanjayen
Copy link

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

@Aydinv13
Copy link

@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
Copy link

Aydinv13 commented Feb 2, 2024

@sanjayen any update?

@sanjayen
Copy link
Author

sanjayen commented Feb 2, 2024

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

@sanjayen
Copy link
Author

sanjayen commented Feb 2, 2024

@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:

@Aydinv13
Copy link

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

@sanjayen
Copy link
Author

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

@Aydinv13
Copy link

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

@Aydinv13
Copy link

Aydinv13 commented Apr 5, 2024

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

@sanjayen
Copy link
Author

sanjayen commented Apr 6, 2024

@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
Copy link
Author

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

@Aydinv13
Copy link

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

@sanjayen
Copy link
Author

@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
Copy link
Author

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

@Aydinv13
Copy link

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

@sanjayen
Copy link
Author

@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

@Aydinv13
Copy link

@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.

@sanjayen
Copy link
Author

Will do @Aydinv13 and let you know

@adguard-bot adguard-bot assigned Danila-Arg and unassigned adbuker Jun 11, 2024
@adbuker
Copy link

adbuker commented Jun 13, 2024

@sanjayen , any news?

@sanjayen
Copy link
Author

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

@Danila-Arg
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants