DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

ClientResourceSettings - Failed to Get XXX Through Reflection

 6 Replies
 1 Subscribed to this topic
 30 Subscribed to this forum
Sort:
Author
Messages
Growing Member
Posts: 69
Growing Member

Hello,
I'm facing with strage warnings:
[CODE]
2025-12-02 13:32:09,052 [EURONTB-xqLBEMc][Thread:49][WARN] DotNetNuke.Web.Client.ClientResourceSettings - Failed to Get Portal Setting Through Reflection
System.Reflection.AmbiguousMatchException: Ambiguous match found.
   at System.RuntimeType.GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)
   at System.Type.GetMethod(String name, BindingFlags bindingAttr)
   at DotNetNuke.Web.Client.ClientResourceSettings.GetPortalSettingThroughReflection(Nullable`1 portalId, String settingKey) in I:\DNN\10.1.0\DNN Platform\DotNetNuke.Web.Client\ClientResourceSettings.cs:line 204
2025-12-02 13:32:09,056 [WARN] DotNetNuke.Web.Client.ClientResourceSettings - Failed to Get Portal ID Through Reflection
System.NullReferenceException: Object reference not set to an instance of an object.
   at DotNetNuke.Web.Client.ClientResourceSettings.GetPortalIdThroughReflection() in I:\DNN\10.1.0\DNN Platform\DotNetNuke.Web.Client\ClientResourceSettings.cs:line 233
2025-12-02 13:32:09,058 [WARN] DotNetNuke.Web.Client.ClientResourceSettings - Failed to Get Portal ID Through Reflection
[CODE]

Advices?

Thanks
S.

Veteran Member
Posts: 349
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
I would first upgrade to latest version and then if this happens again I would try to pinpoint how to make it happen. The code tries to get portal settings when an HTTPContext exists without using reflection, but my guess is that this is somehow triggered only by something that does not have an HTTPContext such as a scheduled task. You could try disabling all scheduled tasks and turning them back on one by one until it happens or something like that.
Growing Member
Posts: 69
Growing Member
A quick update: updating to 10.2.1 have the same warning
Growing Member
Posts: 69
Growing Member
It seems that the bug was closed recently: https://github.com/dnnsof...Platform/issues/6909

HTH
Veteran Member
Posts: 349
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
Yes, a fix has been submitted in https://github.com/dnnsof...n.Platform/pull/6911 and that will get released in DNN v10.2.2
Growing Member
Posts: 69
Growing Member
Is this a crashing bug?
Veteran Member
Posts: 349
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
Make sure to test that in https://github.com/dnnsof...ases/tag/v10.2.2-rc1 which it is in release-candidate stage.

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved