Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10482

Re: NCO 3 An unhandled microsoft .net framework exception occurred in w3wp.exe

$
0
0

Well, you shall avoid calling this section more than once:

 

SAPConfig sapCfg = new SAPConfig();
try
{    try    {        RfcDestinationManager.RegisterDestinationConfiguration(sapCfg);    }    catch { }    SapRfcDestination = RfcDestinationManager.GetDestination(Destination);

 

Rather use the other variant of GetDestination():

 

var par = new RfcConfigParameters();
//config par here
....
var dest = RfcDestinationManager.GetDestination(par);

or call the RfcDestinationManager.RegisterDestinationConfiguration(sapCfg); only once when your application starts. Yet SapRfcDestination = RfcDestinationManager.GetDestination(Destination); can be called as many times you want.


Viewing all articles
Browse latest Browse all 10482

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>