Lee,
your reply kinda cleared the air. So if I heard correctly, the Default providerType is "MB.THeBeerhouse.DAL.SQLClient.SqlArticlesProvider " ...when I downloaded the code, this was not in the Web.Config. Is it this section? I dont see any providerTypes for forums, polls etc!
<theBeerHouse defaultConnectionStringName="LocalSqlServer">
<contactForm mailTo="
[email protected]"/>
<articles pageSize="10" />
<polls archiveIsPublic="true" votingLockByIP="false" />
<newsletters fromEmail="
[email protected]" fromDisplayName="TheBeerHouse" />
<forums threadsPageSize="8" hotThreadPosts="10" bronzePosterPosts="10" silverPosterPosts="20" goldPosterPosts="50" />
<store sandboxMode="true" businessEmail="
[email protected]" />
</theBeerHouse>
So if im strictly using, say SQL, how could I rewrite the ArticlesProvider to create an instance of ArticlesProvider type? I tried this in the Articles Provider class and it didnt work.
_instance = (ArticlesProvider)Activator.CreateInstance(
Type.GetType(MB.TheBeerHouse.DAL.SQLClient.SqlArti clesProvider));
I get the squiggly line and the error: The best overloaded match for 'System.Activator.CreateInstance' has some invalid arguments.
Thanks