Discussion:
Can't complile AX 2009 EP Web Control
(too old to reply)
Alan Flanders
2009-07-31 15:46:01 UTC
Permalink
Hi,
I have been following the tutorials online am having some difficulty
building web controls in Visual Studio. Here is what I have done:
1) Create a new web page in VS and choose the "Dynamics AX Web Project"
2) Import a control from the AOT (TrvGuests)
3) Try to build the imported control

Get this error message:
"The type or namespace name 'Portal' does not exist in the namespace
'Microsoft.Dynamcis' (are you missing an assembly reference?)"

The error is referring to the following line of code:
using ApplicationProxy = Microsoft.Dynamics.Portal.Application.Proxy;

I have looked up "Microsoft.Dynamics.Portal" and can only this page is
returned:
http://msdn.microsoft.com/en-us/library/cc568275.aspx

I'm really at the end of my rope on this one because in order to debug my
code I need to be able to run the page in VS. In order to run it in VS it
needs to compile. Note that when I make changes to the page, they run as
expected in Enterprise Portal.

I am running VS 2008 on a development server machine with the AOT, DB and EP
installed. I am connected as console. This is the same machine that is
running our development EP. Everything is working fine except when I try to
run from VS.

Any help would be greatly appreciated.

thanks,

Alan
Alan Flanders
2009-07-31 16:18:01 UTC
Permalink
Problem Solved
To fix right click on the App_Code node in your solution explorer and select
"Generate Proxies". The process may run for several moments building all of
the classes from your proxy. Now the build works and I can use intellisense
for functions built in MorphX.
Alan
Monty
2010-07-30 00:25:23 UTC
Permalink
Thanks Allen!
RLP
2010-09-29 22:02:06 UTC
Permalink
Thanks from me, too!!
--
RLP
Loading...