web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Method is Internal and can only be called from same module or assembly.

(0) ShareShare
ReportReport
Posted on by 110

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. MethdInternal.png 

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at
    [deleted]
  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    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..

  • Verified answer
    Sergei Minozhenko Profile Picture
    23,097 on at

    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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 426 Super User 2026 Season 1

#2
Subra Profile Picture

Subra 371

#3
Martin Dráb Profile Picture

Martin Dráb 279 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans