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

Class not registered exception when attempting to use library #65

Open
Strahan201 opened this issue Jun 7, 2024 · 0 comments
Open

Class not registered exception when attempting to use library #65

Strahan201 opened this issue Jun 7, 2024 · 0 comments

Comments

@Strahan201
Copy link

Strahan201 commented Jun 7, 2024

Hi!

I found this library and was happy to see how easy it would make adding a rule for my app. I did:

if (FirewallManager.Instance.Rules.Any(x => x.Name.Matches("GameManager"))) return;

When I run it, I'm getting:

System.Runtime.InteropServices.COMException
  HResult=0x80040154
  Message=Retrieving the COM class factory for component with CLSID {9C27C8DA-189B-4DDE-89F7-8B39A316782C} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
  Source=mscorlib
  StackTrace:
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at WindowsFirewallHelper.COMTypeResolver.CreateInstance[T]() in C:\Users\s_fal\Documents\Personal\Open-Source Projects\WindowsFirewallHelper\WindowsFirewallHelper\COMTypeResolver.cs:line 71

Any idea what's going on? Thanks!

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

No branches or pull requests

1 participant