SAP RFC Connection “Bad Variant Type”

misticadivina

New Member
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;\[quote\] Bad Variant Type\[/quote\]\[code\]if (Connector.StartConnection()) { try { Connector.AddFunction("Z_SCL_SOMETHING"); Connector.AddFunctionInputParameter("WPERNR", "999999"); Connector.CallFunction(); } }\[/code\]I get the error in this line;\[code\]Connector.AddFunction("Z_SCL_SOMETHING");\[/code\]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 ?
 
Back
Top