SAP RFC Connection “Bad Variant Type”

核能气质少年 提交于 2019-12-25 07:23:50

问题


Well, 'm using SapConnector dll to make RFC from .Net to SAP. When I use dll in a Windows form application, everything is fine, but when I try to make connection in ASP.Net Web Site or Web Applcation a get an error;

Bad Variant Type

if (Connector.StartConnection())
    {
        try
        {
            Connector.AddFunction("Z_SCL_SOMETHING");
            Connector.AddFunctionInputParameter("WPERNR", "999999");
            Connector.CallFunction();
        }
   }

I get the error in this line;

Connector.AddFunction("Z_SCL_SOMETHING");

Another weird case is that, in Windows Forms Application when I make this call in backgroundWorker I get the same error again.

Any idea about this error ?

来源:https://stackoverflow.com/questions/14454574/sap-rfc-connection-bad-variant-type

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!