I am trying to place the following in my web.config
<configSections>
<section name="sqlServerCatalogNameOverwrites" type="System.Configuration.NameValueSectionHandler" />
</configSections>
<sqlServerCatalogNameOverwrites>
<add key="Billingtest" value="Billing" />
<add key="CentralDatatest" value="CentralData" />
</sqlServerCatalogNameOverwrites>
When my code calls the following method....
public static UserPersonEntity GetPersonIdByNetworkId(string networkId)
{
DataAccessAdapter adapter = new DataAccessAdapter();
UserPersonEntity item = new UserPersonEntity();
item.NetworkId = networkId;
adapter.FetchEntity(item);
return item;
}
I get the following error..
An unhandled exception of type 'System.Configuration.ConfigurationException' occurred in system.web.dll (Exception creating section handler)
and the debugger goes here.
protected override IRetrievalQuery CreateSelectDQ(IEntityFields2 fieldsToFetch, IFieldPersistenceInfo[] persistenceInfoObjects,
IPredicateExpression filter, long maxNumberOfItemsToReturn, ISortExpression sortClauses, IRelationCollection relationsToWalk,
bool allowDuplicates, IGroupByCollection groupByClause, int pageNumber, int pageSize)
{
return DynamicQueryEngine.CreateSelectDQ(fieldsToFetch.GetAsEntityFieldCoreArray(),
persistenceInfoObjects, base.GetActiveConnection(), filter, maxNumberOfItemsToReturn, sortClauses, relationsToWalk, allowDuplicates, groupByClause, pageNumber, pageSize);
}
Any help would be appreciated on what I am doing wrong. I woudl assume its something to do with the DataAccessAdapter.
Thanks!
Ren