Skip to Content
0
Feb 12, 2012 at 02:38 PM

Mobile app connection to SAP

37 Views

Hi all,

I have developed a normal windows application which connect to SAP through the .NET connector in VS2008 and it worked fine. when trying to use the same connection code to write windows mobile application, the connection didn't work and this error appeared:

System.TypeLoadException was unhandled

Message="Could not load type 'SAP.Middleware.Connector.RfcDestination' from assembly 'sapnco, Version=3.0.0.42, Culture=neutral, PublicKeyToken=50436DCA5C7F7D23'."

StackTrace:

at Test.Form1..ctor()

at Test.Program.Main()

InnerException:

I have searched about this error and I understood that mobile applications can not connect to the .NET Connector directly and a web service/server should be found to handle these connections, but these findings were all dated to 2007-2009 (somehow old) so my questions are:

1- Is there a direct way to connect my mobile app to SAP?

2- if no, can you please show me an example of how to connect to SAP indirectly?

Thank you in advance