System.Configuration.ConfigurationErrorsException

Apr 20, 2008 at 8:32 AM
Hi,

I have generated Business entity classes and repository classes using Repository Factory.
When I call create method on RepositoryFactory class as shown below, I get an error An unhandled exception of type 'System.Configuration.ConfigurationErrorsException' occurred in Microsoft.Practices.Repository.dll

ICountryRepository repository = RepositoryFactory.Create<ICountryRepository>();

repositoryFactory section in the config file is:

<repositoryFactory>
<repositories>
<add interfaceType="DataAccess.ICountryRepository, DataAccess" repositoryType="DataAccess.BusinessEntities.CountryRepositoryArtifacts.CountryRepository, DataAccess" />
</repositories>
</repositoryFactory>

Any help would be appreciated.

cheers
SS