function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Imran MohammedImran Mohammed 

Getting Installed Managed class is not visible error



I am trying to reference one of managed apex class in new VF page as

<apex:page controller="Namespace.ABC" tabStyle="XXX">

//other stuff here



My class is defined as 

public with sharing class ABC





I even checked that the version settings include the Package which this Managed class belongs to.

Any help on this will be highly appreciated.


Is the class in the package and the page is being created an org with the package installed?


If so, pages created in a subscriber org can only refer to classes from the package that are marked as global.  Your class is public, which means it can only be used/referenced by code/pages in the package - not from outside the package.  

Imran MohammedImran Mohammed

Thanks for your answer.


Yes the class is in the managed package and the page is created in the same org.

This means as the class is public it cannot be accessed outside the package.


If you don't mind, can you tell me why is this limitation imposed?