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
1/7/2009 1:48 PM
 


I did manage to successfully install dotnetnuke 5.0.0. on a windows vista box having moved from version 4.9.
After installation I added the extra database connection string by insert the line indicated in red on my web config

<connectionStrings>
   <add name="SiteSqlServer" connectionString="Data Source=CorpSQLServer;Initial Catalog=CorpPortalDb;User ID=myUSerId;Password=myPasswd" providerName="System.Data.SqlClient" />
   <add name="HumanResourceSqlServer" connectionString="Data Source=CorpSQLServer;Initial Catalog=HumanResourceDb;User ID=myUSerId;Password=myPasswd" providerName="System.Data.SqlClient" />
</connectionStrings>
  .
  .
  .
  .
<data defaultProvider="SqlDataProvider">
      <providers>
        <clear />
        <add name="SqlDataProvider" type="DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider" connectionStringName="SiteSqlServer" upgradeConnectionString="" providerPath="~\Providers\DataProviders\SqlDataProvider\" objectQualifier="CORP_" databaseOwner="dbo" />
       <add name="SqlHumanResourceProvider" type="DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider" connectionStringName="HumanResourceSqlServer" upgradeConnectionString="" providerPath="~\Providers\DataProviders\SqlDataProvider\" objectQualifier="" databaseOwner="dbo" />
      </providers>
</data>

 


Upon adding of the extra lines and visiting the dnn portal, it either
Launch the dotnetnuke installer page as if its prompting the re-installation of the dotnetnuke.
It fails to launch the portal all together indicating a 'page cannot be found' message on IE browser.

Am sure its those lines that are causing this behaviour since when I remove (the second line under data), the portal work fines.

How do I fix this issue? I need this since I have custom modules I implemented whose database are different from the core dnn database 'CorpPortalDb'.

Please note that the above configuration worked well with the dnn version 4.x

 
New Post
1/7/2009 2:11 PM
 

you shouldn't need the custom SQL dataprovider, you might access you custom database directly.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/8/2009 2:02 AM
 

The're reason why I want to maintain the above (see my post above).

  • The dnn visual studio 2005 c# project template that I use to create custom modules assumes the database configuration format set in web config (as indicated in my post) hence it will give me extra work of having to access the database directly using other methods.
  • All the customs module (which are working well with dnn 4.x) that I have implemented make use of the database configuration format (as indicated in my post) and am avoiding having to re-engineer those modules agains - there are many.
  • I find this to be a clean way of defining my connection configuration and hence connecting to the database and I dont feel like dropping it unless dnn 5.0 has decided to drop this method..


Do you think dnn 5.0.0 has dropped this approach of connection to an alternate database altogether or is it just another bug? Please assist

 

 
New Post
1/8/2009 3:51 AM
 

I am not aware, that there has been support for multiple data providers before. Of course you can have multiple connection strings.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/12/2009 11:34 PM
 

I am having the same problem as the original poster and mine worked correctly in DNN4 as well. I also agree with him that the DNN Provider is a more elegant way of obtaining the data connectivity than to have to go back and redo all of the code to obtain connectivity and get the data using none core functionality. Why is it possible to define a data provider other than default by saying...

Dim objProvider As Provider = CType(_providerConfiguration.Providers("my_provider"), Provider)

if there was no intention of there being a way of using an alternative provider nor is there any reason for the "Default" data provider setting in web.config if there is only ever going to be one option.

Surely this was core functionality in DNN4 that is lost if it doesn't work on purpose in DNN5. I also cannot believe that this doesn't break many, many custom development solutions like mine since there was no documentation that said it shouldn't work in DNN4 (and hence don't use it). I am just hoping that it is still there but for some reason the syntax has changed but it is a slim hope.

 
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