How to: Use a Predefined Proxy for a Web Application Project [AX 2012]
Updated: December 8, 2011
Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
It is common for EP Web Application projects to access some of the required Microsoft Dynamics AX resources through a proxy. Resources like X++ classes, methods, and enumerations are typically accessed in this manner. A separate Visual Studio project is used to define the proxy.
Enterprise Portal has several predefined proxies that are used when you are creating code for User Controls. The EPApplicationProxies project is the most frequently-used proxy project. It contains definitions for several enums, classes, and tables that are used in code for User Controls.
Most EP Web Application projects for User Controls must have a reference to the EPApplicationProxies project, or they will not build correctly.
To use one of the predefined proxies, you must create a reference to the proxy project.
To add a reference to a predefined proxy project
Start Visual Studio.
Open the EP Web Application project you created.
In the Project menu, choose Add EP Proxy Project. A dialog box will be displayed that lists all of the proxy projects that have been added to the AOT.
Select the proxy project that you want to use for your User Control, such as EPApplicationProxies, and then click OK. The proxy project will be added to the solution, and a reference to the proxy project will be created.