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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Excel Import in Ax 2012 Enterprise Portal

(0) ShareShare
ReportReport
Posted on by 527

I am trying to import excel in Enterprise portal in Ax 2012

For that i have done the following

-> created a new webpage and used asp fileupload control in the page to load the excel file.

-> After loading the file i have called the Ax method where i have written code to read the excel

This excel import is working in some machines but in some machines i am getting the following errors

when trying to import the excel

  • COM object of class Excel.Application could not be created.Ensure that object has been properly registered   on computer
  • object 'COM'could not be created
  • Ensure that Microsoft Excel is installed

Does any one have any idea what might be the problem ?

Note : microsoft excel is properly installed in the machine and the version is same in both the

environments where the import is working properly and not working properly

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Adrian Pascari A Profile Picture
    1,683 on at

    1. Change the Ax class to be with property 'Called from server'.

    2. Add your dll 'Excel.Application' under GAC on AOS server.

    3. Restart AOS.

    4. Add reference under AOT->references.

  • Community Member Profile Picture
    on at

    How to "2. Add your dll 'Excel.Application' under GAC on AOS server." ? I don't know what to do

  • Suggested answer
    Adrian Pascari A Profile Picture
    1,683 on at

    Here is described how to add your assembly to GAC: shivasoft.in/.../how-to-add-dll-dynamic-linking-library-in-gac-global-assembly-cache

  • Community Member Profile Picture
    on at

    Thanks! but I can not find the dll  'Excel.Application' ,can you help me?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Basit Profile Picture

Basit 1

#1
GL-01081504-0 Profile Picture

GL-01081504-0 1

#1
Roya Profile Picture

Roya 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans