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

.Net Connector 2.0 web.config error

76 Views

Hello,

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

hey

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 sdn.forum & 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

<configSections>

<sectionGroup name="SAP">

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

</sectionGroup>

</configSections>

<SAP>

<Connector>

MaxOpenConnections="200"

MaxCapacity="20"

MaxIdleTime="10"

CleanupInterval="20" />

</Connector>

</SAP>

My web.config is like

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

<configuration>

<configSections />

<system.web>

...

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

<assemblies>

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

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

</assemblies>

</compilation>

...

<runtime>

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

</assemblyBinding>

</runtime>

</configuration>

<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.

Manuel.