Enterprise portal "Error executing code: No system global variables"

Enterprise portal Error

Microsoft Dynamics AX 2009: Error executing code: No system global variables (C)\Classes\WebLink\menufunction

I am getting this error on Enterprise portal as No global variables though I didn't change any code in AOT.
The enterprise portal stopped working after server restart.
 

The complete error is as below,



An unexpected error has occurred.

Microsoft.SharePoint.WebPartPages.WebPartException: Dynamics Object Adapter Call failed. ---> Microsoft.Dynamics.Framework.BusinessConnector.Session.Exceptions.XppSessionException: Dynamics Object Adapter Call failed. ---> Microsoft.Dynamics.BusinessConnectorNet.XppException: Error executing code: No system global variables.

(C)\Classes\WebLink\menufunction

Error executing code: No system global variables.

(C)\Classes\WebLink\menufunction

at Microsoft.Dynamics.BusinessConnectorNet.AxaptaObject.Call(String methodName, Object[] paramList)
at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsObjectAdapter.Call(String methodName, Object param1)
--- End of inner exception stack trace ---
at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsSession.HandleException(String message, Exception exception, HandleExceptionCallback callback)
at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsObjectAdapter.Call(String methodName, Object param1)
at Microsoft.Dynamics.Framework.BusinessConnector.Proxy.WebLink.menufunction(WebMenuFunction mf)
at Microsoft.Dynamics.Framework.Portal.UI.AxWeblink.GetWebLinkUrl()
at Microsoft.Dynamics.Framework.Portal.UI.AxWeblink.CreateActionLink()
at Microsoft.Dynamics.Framework.Portal.UI.AxWeblink.get_Link()
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxWebMenuItem.get_Url()
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.ActionMenuItemControl.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at Microsoft.SharePoint.WebControls.MenuTemplate.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxToolBar.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer)
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxContentPanel.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.WebParts.AxBaseWebPart.Render(HtmlTextWriter writer)
at Microsoft.SharePoint.WebPartPages.SPChrome.RenderPartContents(HtmlTextWriter output, WebPart part)
--- End of inner exception stack trace ---
at Microsoft.SharePoint.WebPartPages.SPChrome.RenderPartContents(HtmlTextWriter output, WebPart part)
at Microsoft.SharePoint.WebPartPages.SPChrome.RenderWebPart(HtmlTextWriter output, WebPart part)
at Microsoft.SharePoint.WebPartPages.WebPartZone.RenderZoneCell(HtmlTextWriter output, Boolean bMoreParts, WebPart part)
at Microsoft.SharePoint.WebPartPages.WebPartZone.RenderWebParts(HtmlTextWriter output, ArrayList webParts)
at Microsoft.SharePoint.WebPartPages.WebPartZone.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer)
at ASP.DEFAULTAX_MASTER_1993109385.__Renderhtml(HtmlTextWriter __w, Control parameterContainer) in server/.../defaultax.master:line 115
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Please check the event log or contact your administrator.

Troubleshoot issues with Windows SharePoint Services.

Please help to resolve this issue

Thanks
sana khanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sana khanAuthor Commented:
Can anyone help me solve this issue, I tried with clearing the client cache but enterprise portal is giving same error
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Dynamics

From novice to tech pro — start learning today.