Visual studio 类型或命名空间名称';门户';命名空间中不存在';微软动态';(是否缺少程序集引用?

Visual studio 类型或命名空间名称';门户';命名空间中不存在';微软动态';(是否缺少程序集引用?,visual-studio,sharepoint,axapta,x++,Visual Studio,Sharepoint,Axapta,X++,从EP创建新时间表时,我遇到以下错误 Message: An unhandled error has occurred. To view details about this error, enable debugging in the web.config file or view the Windows event logs. Source: App_Web_tstimesheetentrypage.ascx.91f2996b.w9xwqj0v 例外情况详情: 对象引用未设置为对象的

从EP创建新时间表时,我遇到以下错误

Message: An unhandled error has occurred. To view details about this error, enable debugging in the web.config file or view the Windows event logs. 

Source: App_Web_tstimesheetentrypage.ascx.91f2996b.w9xwqj0v 
例外情况详情:

对象引用未设置为对象的实例

at TSTimesheetEntryPage.Page_Load(Object sender, EventArgs e) in c:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ep\TSTimesheetEntryPage.ascx.cs:line 120
at System.EventHandler.Invoke(Object sender, EventArgs e)
at AxBaseUserControl.OnLoad(EventArgs e) in c:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ep\AxBaseUserControl.ascx.cs:line 173
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean `enter code here`includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
在尝试按下此按钮时,我执行了以下操作:

1)在VS2013中,我创建了一个新的Ax EP WebApplication项目,并将
\Web\Web Files\Web Controls\TSTimesheetEntryPage
添加到该项目中。这又为该项目添加了4个从属文件 3) 构建解决方案

现在我得到了编译器错误:

Error 1 The type or namespace name 'Portal' does not exist in the namespace 'Microsoft.Dynamics' (are you missing an assembly reference?) 
Error 2 The type or namespace name 'EPFormAction' could not be found (are you missing a using directive or an assembly reference?) 
我试图通过右击我的项目选择Add Ep Proxy project,将
eApplication Proxy
TSTimesheetProxies
添加到项目中来解决这些错误。但是,编译器开始抱怨类型重复

'Microsoft.Dynamics.Portal.Application.Proxy.TSTimesheetLine' exists in both 'c:\Users\lawrence\AppData\Local\Temp\Microsoft Dynamics AX\C Sharp Projects\EPApplicationProxies\bin\Debug\EPApplicationProxies.dll' and 'c:\Users\lawrence\AppData\Local\Temp\Microsoft Dynamics AX\C Sharp Projects\TSTimesheetProxies\bin\Debug\TSTimesheetProxies.dll'    c:\users\lawrence.ntow\documents\visual studio 2013\Projects\debugTimesheet\debugTimesheet\TSTimesheetEntryPage.ascx.cs     22  debugTimesheet
任何帮助都将不胜感激