The type or namespace name 'Portal' does not exist in the namespace MSD Ax 2009

Getting Error on build EP website in Visual Studio for Axapta 2009.

The type or namespace name 'Portal' does not exist in the namespace 'Microsoft.Dynamics' (are you missing an assembly reference?).

Solution:

Solution for this error due to proxy classes required for this user control because its used in namespace.

You need to take below step for the same.

To fix  this error just go to your project and right click on the App_Code node in your solution explorer then select "Generate Proxies" option .  This process may take time for  building all of the classes from your proxy.  Now check again the build works for your project and its updated with your code.

Proxy objects located on below folder.

C:\inetpub\wwwroot\wss\VirtualDirectories\80\App_Code\Proxies