Announcements
Hi,
I am working on up-gradation project in which after extending the elements I am building the application foundation module on which I am getting the following error."Method 'GetDeploymentLocation' is internal and can be called only from within the same module or assembly.", I am also attaching the screenshot.
It means that you can't call this method from your code. You have to resolve your business requirement some other way.
And if you get compiler errors from standard code, you can ignore them. Normally you don't need to build the standard packages at all. On the other hand, having compiler errors in the standard packages will prevent you from updating cross references, since it's part of the compiler process. But each dev system has a functioning binary of ApplicationFoundation, so once you have your own packages / models compiled, you can use the system.
I also tried to compile ApplicationFoundation package in my dev system (10.0.13) and it succeeded without errors. Even though I can see this same code in DocumentViewer class, and it's calling an internal method of ApplicationPlatform package..
Hi Muhammad Bilal,
Since it's MS standard class, you have something wrong with the MS codebase or models are not built properly.
Could you, please, check file K:\AosService\PackagesLocalDirectory\ApplicationPlatform\Descriptor\ApplicationPlatform.xml contain element
<InternalsVisibleTo> with inner element ApplicationFoundation? If yes, try to re-build ApplicationPlatform first and after re-build ApplicationFoundation again.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 426 Super User 2026 Season 1
Subra 371
Martin Dráb 279 Most Valuable Professional