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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Business logic visual studio project deployment error.

(0) ShareShare
ReportReport
Posted on by

Hello there,

I need some help with deploying reports that depend on business logic project to an environment.

A little background on the current steps,

  1. We are on AX 2012 R2 CU7 with Kernel version at 6.2.1000.9753 and Application version: 6.2.1000.4051
  2. All depending objects  (SSRS report, SSRS report project, business logic project and SRSDrillThroughCommon) are on the same layer
  3. I do not have any problem during the build or deployment of the model.
  4. After deploying the model, I am able to successfully compile and generate full CIL without any errors.
  5. While publishing of the report that has dependent BLL and SRSDrillThroughCommon fails.

 In order for me to successfully deploy the report, I have to load all dependent projects in visual studio and then compile. After this step I am able to deploy the report. However I am trying to avoid this in production environment. Please advise if I have to change my deployment strategy or is there a way I can compile the business logic project separately using AXBuild.

  1.  Using Get-AXReport cmdlet I can see both dependent projects business logic and SRSDrillThroughCommon.
  2. While using Publish-AXReport cmdlet, first I get a warning message that "Parts of the report deployment failed because one or more business logic assemblies was not available. Make sure all referenced business logic assemblies exist in the Microsoft Dynamics AX client application Object Tree <AOT>.", then it fails with the following error message. "Publish-AXReport : System.Web.Services.Protocols.SoapException: Error while loading code module: 'SalesInvoiceReport.BusinessLogic, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. Details: Could not load file or assembly 'SalesInvoiceReport.BusinessLogic, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."
  3. After inspect the business logic visual studio project in the AOT, I don't see any dll reference in under "Project output", typically after compiling the project from visual studio environment I will see the SalesInvoiceReport.BusinessLogic.dll here. But this project does get generated when I compile the project from the AOT.
  4. I am able to deploy a report, that has similar business logic project reference, but with the dll in the project out. 

I greatly appreciate any suggestions/ insights into the visual studio project compilations within AOT. I am even looking for an option to force the compile on a single project.

 

Thank you,

 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Daniel Weichsel Profile Picture
    on at

    Hello Murali,

    When you compile the Visual Studio project, ensure that you are in the same layer as the project content.  If you are in another layer, the project output is NOT generated.  Either run the client in the proper layer or use the /layer switch with recent versions of axbuild.exe.  Axbuild does not allow for individual node compiles, but the client can do this in a scriptable way by using an autorun XML file.

  • Community Member Profile Picture
    on at

    Thank you Daniel, that makes sense. Yes this solved the problem. But I don't see an option on AXBuild.exe to include the layer information, is this part of CU7 or later versions?

  • Daniel Weichsel Profile Picture
    on at

    It was added in a kernel update some time after R2 CU7, but it's still not documented in the command line help of axbuild.

    A blogger named Navid mentions the update here, but you may consider just installing the latest available kernel:

    axbytes.blogspot.com/.../phantom-objects-in-usr-layer-after.html

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans