The first problem is that the person in charge did not install the tool that allows you to see the AOT methods from Visual Studio so I can't put a breakpoint from there to debug the code being called from the C# app. The other issue is that I cannot run Visual Studio as Admin so I don't see the AXServ32.exe to attach it for debugging.
Error details:
System.ServiceModel.FaultException was unhandled HResult=-2146233087 Message=Input string was not in a correct format. Source=mscorlib StackTrace: 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 InterOpWSConsumption.hsInterOpIntegration.hsInteropIntegration.sendSalesOrderInfo(hsInteropIntegrationSendSalesOrderInfoRequest request) at InterOpWSConsumption.hsInterOpIntegration.hsInteropIntegrationClient.hsInterOpWSConsumption.InterOpIntegration.InteropIntegration.sendSalesOrderInfo(InteropIntegrationSendSalesOrderInfoRequest request) in c:\Users\user\Documents\Visual Studio 2013\Projects\InterOpWSConsumption\InterOpWSConsumption\Service References\hsInterOpIntegration\Reference.cs:line 651 at InterOpWSConsumption.hsInterOpIntegration.hsInteropIntegrationClient.sendSalesOrderInfo(CallContext CallContext) in c:\Users\user\Documents\Visual Studio 2013\Projects\InterOpWSConsumption\InterOpWSConsumption\Service References\InterOpIntegration\Reference.cs:line 657 at InterOpWSConsumption.Program.Main(String[] args) in c:\Users\user\Documents\Visual Studio 2013\Projects\InterOpWSConsumption\InterOpWSConsumption\Program.cs:line 16 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException:
Code in C# app:
using InterOpWSConsumption.InterOpIntegration; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace hsInterOpWSConsumption { class Program { static void Main(string[] args) { CallContext context = new CallContext(); InterOpIntegration.InteropIntegrationClient client = new InterOpIntegration.InteropIntegrationClient(); System.Data.DataTable dt = client.sendSalesOrderInfo(context); Console.ReadKey(); } } }
Thanks for the help.