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)

AX Web API not running properly on web.

(0) ShareShare
ReportReport
Posted on by

Hello,

I am using VS 2010, and MCV-4 to create Web-API that is added to AOT - AX 2012.

I succeed creating web api application, same as instruction from link:

also from : http://learnax.blogspot.co.il/2011/06/net-proxies-alternative-to-net-business.html

When running from Visual Studio (View in browser) - application run properly.

But I need to run it from web (even localhost at the moment).

What shall I do in order my API will run properly outside the Visual Studio.

1. I created new WEB Application (razor2).
2. In IIS, I added a new web site.
3. In Visual Studio: Projects -> Settings -> Web

  • Use Local IIS Server is checked.
  • Project URL is the site I created on step 1 http://<site_name>/MyVirtualDir
  • I press the button create virtual Directory.

4. In Visual Studio: Package/Publish web

  • IIS web site/application name ... destination server: fill MySiteName/MyVirtualDir
  • Physical Path : put the physical path of application (for deployment).

5. Right click on project+deploy

When deploying - I don't see any files that are created on destination folder (they are created on:

C:\Users\...AppData\Local\Temp\9\Microsoft Dynamics AX\Web Application Projects\myproject\bin\

I got a message (Dynamics AX) that is related to improper application pool.
(Could not load file or assembly 'Microsoft.Dynamics.AX.ManagedInterop' or one of its dependencies ... System.BadImageFormatException), because my application shall be 32 bits.


But, how can I know which application pool is the correct one (same as Visual studio).

I want that the above work exactly the same as I do for Visual Studio (From VS 2010 - web application is running properly).

What are all of the steps, so my site can be published as well?

Thanks :)

*This post is locked for comments

I have the same question (0)

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