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)

Crashes and errors in Visual Studio 2010 with SSRS Reporting in AX 2012

(1) ShareShare
ReportReport
Posted on by

Hi Everyone,

I am a developer who has been working with SSRS for about three years now. Most of my work is provided through ReportsManager or embedded in desktop applications using a ReportViewer control. I have been working with AX 2012 reports pretty heavily for about six months now and I keep running into problems. I have voiced my issues internally, but the looks I get lead me to believe that others think that I am just making excuses. If it is possible I need to see if I can troubleshoot these issues on my own. Otherwise, I am just going to have to deal with an unstable development environment. 

Kernel version: 6.2.1000.6189
Application version: 6.2.1000.4051

When building/rebuilding a report project I randomly get one of these three results:

  • Successful rebuild
  • Error message
  • Fatal exception and Visual Studio crash

I say the result is random because Visual Studio could crash, then I could rebuild without making changes and get an error, then I could rebuild again without changes and it would be successful. Or sometimes I could have a successful build and do it again and it will die.

Error message

The error message that shows up pretty frequently is this:

System.InvalidOperationException: Object is currently in use elsewhere.

and

Invoke validation method 'Validation' failed

Their appearance is random. They can appear and disappear in subsequent runs without making changes to the report definition.

Fatal crashes

This one is great. Occasionally when saving changes to the report design or rebuilding the project I will get a message that says "Microsoft Visual Studio has encountered a problem and needs to close." I have no idea what causes this, but my progress is almost never lost. Visual Studio resurrects itself and all of my recent additions are still there.

Validation

Prior to taking new datasources to reports I test them using jobs so that I can be sure that they are returning data and that they are returning the correct data. Typically, I create an instance of the dataprovider, an instance of the contract, and a table buffer of the same type that is named in the attribute of the getter function. I then roll through the table buffer using a while select and dump the contents into an infolog.

Visual Studio seems to act like it is setup properly. I can select the configuration that I want to target, open up Visual Studio, view the application explorer, and the AOT materializes with all of the customizations made to it so far.

Additional strange things

I cannot deploy reports from Visual Studio.

If I attempt it I get the following message. It is the same message regardless of whether I run Visual Studio in standard or as administrator.

An error occurred : The specified directory service attribute or value does not exist.


If User Account Control (UAC) is enabled on the machine, close the application, right-click the application, and then click Run as administrator.


The deployment was aborted. You do not have privileges to deploy to server: ********. For deployment, you must have administrative rights to the SQL Server Reporting Services (SSRS) server. Contact your administrator to deploy. 

You should note that if I open a browser and navigate to the development environment SSRS folder settings that my <domain>/<username> is listed as have the following roles {Browser, Content Manager, DynamicsAXBrowser, My Reports, Publisher, Report Builder}.

Since I can't deploy from Visual Studio, in the 1/3 chance that a report actually builds I publish it by creating a RDP connection to the development environment, then I open up AX management shell, and publish the report using "Publish-AxReport -ReportName <reportname>".

Wrapping it up

  1. Am I the only who is experiencing symptoms like these? Please bump this thread if these things happen to you, too.
  2. Is there something from what I have posted here that might indicate the potential cause for the instability?
  3. What should I try next?

Roll the dice...

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hello,

    For the report deployment from Visual Studio, I had the same error message. To solve this issue I suggest you check your visual studio template and make sure Microsoft Dynamics AX template is installed first. Then open your project file and deploy from there. Hope this helps.

  • Community Member Profile Picture
    on at

    Thanks. I think that the AX template is installed, but I gave it a second look anyway since something isn't working right. Something assumed to be in good working order must not be.

    So this is what I see:

    In the 'New Project' dialog in Visual Studio 2010, there is a node titled 'Microsoft Dynamics AX' under installed templates and the items in the list view associated with that node are 'Report Model' and 'EP Web Application'.

    In the 'Add-in Manager' dialog there are no entries.

    In the 'Extension Manager' dialog there are no entries.

    I have worked with the understanding that the AX Template was installed because of the visibility of the project types listed in the 'New Project' dialog. Is this what you were referring to or was it something else?

  • Community Member Profile Picture
    on at

    Yes. Have you then tried deploying your report from VS? If this doesn't solve the issue then it might be something with configuration setup. Take a look at this link.

    technet.microsoft.com/.../dd309644.aspx

  • Community Member Profile Picture
    on at

    The reporting services mode is Native. I am able to navigate to the URL of the web service and also visit the report pages.

    The only noticeable difference that I found from the TechNet article to our current configuration is the version. The TechNet's SQL Server is developer edition 11.0.2100.60 while ours is standard edition 11.0.3349.0.

    The configuration manager states that the report service is started. The reports that have been published run.

    By the way, I just want to state that publishing reports from the AX Management Shell is consistently successful. The part of development that is unstable is the editing, saving, and rebuilding the report definitions in VS2010. I included the statement about deploying from VS2010 in my original post because I wasn't sure if it could be an important piece of the puzzle.

  • Community Member Profile Picture
    on at

    Every time you make changes on the report in VS  do you redeploy it using AX Management Shell? I'm having issue with this myself. In my case, I would delete the specific reports that I've deployed previously and redeploy it so that the changes show up.

  • Umesh Pandit Profile Picture
    9,315 User Group Leader on at

    Hi Frazier,

    For UAC, Try these options and update your finding!

    http://msdynamicsaxtips.blogspot.in/2013/10/how-to-open-visual-studio-with-specific.html

  • Community Member Profile Picture
    on at

    Very nice article!

    Unfortunately, it did not stop VS from crashing the first time it tried to build the SalesInvoice report. VS closed and then I reopened it and the next time SalesInvoice rebuilt successfully.

    The interesting thing about your article is that you could use it to create VS shortcuts to the environment you are targeting. Up until now I have been using the AX Configuration Utility to select the configuration I am targeting just prior to opening VS.

  • venkatesh vadlamani Profile Picture
    3,180 on at

    Report deployment needs absolute admin previleges on the reporting server

    If C$ share is not possible for reporting server the deployment doent happen.

  • Community Member Profile Picture
    on at

    Great suggestion. I have not thought to try this yet. I know that my account is listed as admin on the report server. When entered "\\<reportserver>\C$" in Windows Explorer the folders materialized. Is this evidence that I have absolute admin privileges on the reportserver?

  • venkatesh vadlamani Profile Picture
    3,180 on at

    C$ enabled means your account has admin privileges in the C drive (Hoping the Bin folders of SSRS are in C drive).

    Try this. see if you AOS and BC connector have the similar previleges .

    if not add one after the other and check whether this resolves.. But once done please to remove the BC connector from the admin share previleges.

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
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans