Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0dnn 5.0.0: extra database connection / data key in web config brings errordnn 5.0.0: extra database connection / data key in web config brings error
Previous
 
Next
New Post
2/13/2009 1:10 AM
 

I believe the problem you're encountering is because you're using the same namespace as the SQLDataProvider. I know that I have multiple connection strings defined in 5.0.0 and it works fine.

Here's my example using Oracle

<connectionStrings>
    <!-- Connection String for Oracle  -->
    <add name="SiteOracle" connectionString="Data Source=DNN5X;User ID=XXXXX;Password=XXXXXX" providerName="System.Data.OracleClient" />
    <!-- Connection String for SQL Server 2000/2005  -->
    <add name="SiteSqlServer" connectionString="Data Source=(local)\SQL2005;Initial Catalog=XXXX;User ID=XXXX;Password=XXXXX" providerName="System.Data.SqlClient" />
  </connectionStrings>

 

 

<data defaultProvider="OracleDataProvider">
      <providers>
        <clear />
        <add name="SqlDataProvider" type="DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider" connectionStringName="SiteSqlServer" upgradeConnectionString="" providerPath="~\Providers\DataProviders\SqlDataProvider\" objectQualifier="" databaseOwner="dbo" />
        <add name="OracleDataProvider" type="DotNetNuke.Data.OracleDataProvider, DotNetNuke.OracleDataProvider" connectionStringName="SiteOracle" upgradeConnectionString="" providerPath="~\Providers\DataProviders\OracleDataProvider\" objectQualifier="DNN_" databaseOwner="" UseEncryption="false" />
      </providers>
    </data>


AcuitiDP - Oracle Data Provider for DotNetNuke
 
New Post
2/13/2009 1:46 AM
 

Thank you for your help Sanjay but surely that is why there is a Name attribute. So that the various SqlDataproviders do not share a name (or namespace) since they are different instances of the same object.

My original concern is still the same. This worked in DNN4 and it was logical (different name hence different instance) and it doesn't work in DNN5. I think DNN5 has broken this functionality and it shouldn't have since the way DNN4 did it is completely consistent with other providers and a logical hierarchy of objects.

Just by way of illustration here is how the Navigation providers look (in part)...

        <add name="DNNMenuNavigationProvider" type="DotNetNuke.NavigationControl.DNNMenuNavigationProvider, DotNetNuke.DNNMenuNavigationProvider" providerPath="~\Providers\NavigationProviders\DNNMenuNavigationProvider\" />
        <add name="DNNTreeNavigationProvider" type="DotNetNuke.NavigationControl.DNNTreeNavigationProvider, DotNetNuke.DNNTreeNavigationProvider" providerPath="~\Providers\NavigationProviders\DNNTreeNavigationProvider\" />

Two instances of the same DNN object with different names and that is how DNN4 handled it (down to module level as you could get access to the alternately named Data Provider in your module). I haven't even begun to find out if the module level code still works because I cannot even fire up my website.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0dnn 5.0.0: extra database connection / data key in web config brings errordnn 5.0.0: extra database connection / data key in web config brings error


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out