Detected NonComVisibleBaseClass; How to fix it?

My class comes from System.Web.Security.MembershipUser I get this error when submitting a form. ASPPDF is used in the popup form, and the application did not have this problem before implementing the custom attributes of MembershipProvider. Please note that this is only a debugging error. It seems to work when I am not debugging. Does anyone know how I can fix this?

NonComVisibleBaseClass Message Detected. A QueryInterface query was requested with a default IDispatch interface query for the COM visible class "XyAmpUser". However, since this class does not have an explicit interface by default and is derived from the invisible COM class "System.Web.Security.MembershipUser", the call to QueryInterface will fail. This is done to prohibit a visible base class that does not contain COM code using COM version control rules.

Thank you ~ ck in San Diego

+5
source share
2 answers

I recently discovered this error in a completely unrelated scenario with yours.

  • Go to Debug-> Exceptions ...
  • " "
  • NonComVisibleBaseClass Thrown.
  • [Ok]

, .

+2

, : COM, .

2 : 1- " " 2- , .

0

All Articles