Hi,
Getting error when trying to navigate to send page in the grid view in Enterprise Portal page. I couldn't see any error message on screen. So, i checked the event viewer.
It is working fine in development but not working in production. I don't have any idea. I tried full CIL, incremental CIL, AOS restart, IIS restart, AOD refresh and XPPIL recreated. Please help me to resolve this issue.
Event viewer message:
Dynamics Object Adapter Call failed.
RegisterRequiresControlState can only be called before and during PreRender.
System.Web
at System.Web.UI.Page.RegisterRequiresControlState(Control control)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxBaseGridView.AddedControl(Control control, Int32 index)
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxBaseGridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data)
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxBaseGridView.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxBaseGridView.PerformSelect()
at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound()
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxBaseGridView.set_RequiresDataBinding(Boolean value)
at Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxBaseGridView.DataSet_MetadataChanged(Object sender, DataSetViewMetadataChangedEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at Microsoft.Dynamics.AX.Framework.Services.Client.DataSetMetadata.MetadataChangedEventHandler(Object sender, DataSetViewMetadataChangedEventArgs eventArgs)
at Microsoft.Dynamics.AX.Framework.Services.Client.MetadataBase.OnPropertyChanged[T](MetadataBase changedObject, String propertyName, T propertyValue)
at Microsoft.Dynamics.AX.Framework.Services.Client.MetadataBase.ChangePropertyValue[TPropertyDataType](TPropertyDataType& currentValue, TPropertyDataType newValue, String propertyName)
at Microsoft.Dynamics.AX.Framework.Portal.Data.DataSetView.RuntimeKernelDataSourceFieldPropertyChanged(String addedDataSourceName, Int32 changedFieldId)
at Microsoft.Dynamics.AX.Framework.Portal.Data.DataSetView.RuntimeKernelMetadataChanged(Object sender, Object args)
at Microsoft.Dynamics.AX.ManagedInterop.RuntimeContext.ExecuteHandler(Object handler, Object sender, Object eventArgs)
at Microsoft.Dynamics.AX.ManagedInterop.ClrBridgeImpl.ExecuteHandler(ClrBridgeImpl* , ObjectWrapper* pObjectWrapperHandler, ObjectWrapper* pObjectWrapperSender, ObjectWrapper* pObjectWrapperEventArgs)
at AxEventDelegate.kcInvoke(AxEventDelegate* , interpret* ip)
at cqlClass.callEx(cqlClass* , Char* , interpret* )
at AxCore.AxRuntime.Call(AxRuntime* , IAxObject* axObject, String methodName, Type returnType, Object& result, Object[] paramList)
at Microsoft.Dynamics.AX.ManagedInterop.Object.CallWithReturnType(String methodName, Type returnType, Object[] paramList)
at Microsoft.Dynamics.AX.ManagedInterop.Object.Call(String methodName)
at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsObjectAdapter.Call(String methodName)
Thanks,
Hari