While execution of smartobject getting an error ""Exception of type 'SourceCode.SmartObjects.Client.SmartObjectException' was thrown.""
I have done following things:
1) Created Service object from SAP method.
2) Depends upon service object created smartobject.
3) This smartobject trying to execute in the asp.net codebehind but giving an error.
string smartObjectName = "ProjectDetails";
string methodName = "Service1_Z_K2_GEN_PROJ_INFO";
SourceCode.SmartObjects.Client.
SmartObject smartObject = smartObjectServer.GetSmartObject(smartObjectName);int projectNumber = 72;
smartObject.ListMethods[0].InputProperties[
"p_PROJ_RESP_NUM"].Value = projectNumber.ToString();smartObject.MethodToExecute = methodName;
SmartObjectList projectList = smartObjectServer.ExecuteList(smartObject); ----------------- At this line getting an error "Exception of type 'SourceCode.SmartObjects.Client.SmartObjectException' was thrown.""
foreach (SmartObject so in projectList.SmartObjectsList)
{
string s = so.Properties[1].Value;
}
Is anybody aware of this issue?