Skip to Content
Former Member
Jul 31, 2007 at 10:17 AM

.Net Connector 2.0 web.config error



we are trying to optimize connections to SAP and we intended to use the parameters from the documentation ( see below ).


When the file web.config is edited to add those parameters, the project won't start stating "verify that there are no error in your web.config file".

I took mainly the example from & VS2003 help but it does not seems to work so I was trying to find out how to change these parameters programatically with config.instance.

Can someone help ?

-- code I tried to add to web.config


<sectionGroup name="SAP">

<section name="Connector" type="SAP.Connector.SectionHandler, SAP.Connector, Version=, Culture=neutral, PublicKeyToken=50436dca5c7f7d23"/>








CleanupInterval="20" />



My web.config is like

<?xml version="1.0" encoding="utf-8"?>


<configSections />



<compilation defaultLanguage="vb" debug="true">


<add assembly="SAP.Connector, Version=, Culture=neutral, PublicKeyToken=50436dca5c7f7d23" />

<add assembly="SAP.Connector.Rfc, Version=, Culture=neutral, PublicKeyToken=50436dca5c7f7d23" />





<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v1.0.3705">




<b>CleanupInterval </b>Controls the time interval (in seconds) that the cleanup thread waits beween clean ups.

<b>MaxCapacity </b>Controls the maximum size of the connection pool.

<b>MaxIdleTime </b>Controls the maximum time (in seconds) that a connection is keept open when it stays in the connection pool.

<b>MaxOpenConnections </b>Allows to controls the maximum number of Connection objects returned from NCo.

<b>UseAutoPooling </b>Used to control if the GetConnection methods will automatically return connection from connection pool.