It gives the classic mscorlib inner exception. This all errors on the line to return the data. returnMessage = proxy.GetLabelData(LabelContext2); Get label data runs just fine when I run it in a job in AX.
Error getLabelInfo - (LabelService) did not run correctly: An error occurred. - 8/11/2016 12:46:02 PM
Inner Exception: mscorlib
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at ServiceTestApp.LoftwareLabelService.LoftwareLabelInfoService.GetLabelData(LoftwareLabelInfoServiceGetLabelDataRequest request)
at ServiceTestApp.LoftwareLabelService.LoftwareLabelInfoServiceClient.ServiceTestApp.LoftwareLabelService.LoftwareLabelInfoService.GetLabelData(LoftwareLabelInfoServiceGetLabelDataRequest request) in c:\Keith_Documents\SolutionFilesDotNet2013\ServiceTestApp\ServiceTestApp\Service References\LoftwareLabelService\Reference.cs:line 3371
at ServiceTestApp.LoftwareLabelService.LoftwareLabelInfoServiceClient.GetLabelData(CallContext CallContext) in c:\Keith_Documents\SolutionFilesDotNet2013\ServiceTestApp\ServiceTestApp\Service References\LoftwareLabelService\Reference.cs:line 3377
at ServiceTestApp.Form1.button1_Click(Object sender, EventArgs e) in c:\Keith_Documents\SolutionFilesDotNet2013\ServiceTestApp\ServiceTestApp\Form1.cs:line 74
Data: System.Collections.ListDictionaryInternal