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

HomeHomeDevelopment and...Development and...SQL and SQL Ser...SQL and SQL Ser...Specifying another Database in the Web Config file for DNN 5.1.3Specifying another Database in the Web Config file for DNN 5.1.3
Previous
 
Next
New Post
4/26/2010 1:27 PM
 

Hi,

I was working with the DNN 4.9 version all this while. In the Web.config file, I had defined a new section in the <data defaultProvider="sqlDataProvider> like so:

<add name="My_New_DataProvider"
     type="DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider"
     connectionStringName="NewSqlServer"
     upgradeConnectionString=""
     providerPath="~\Providers\DataProviders\SqlDataProvider\"
     objectQualifier=""
     databaseOwner="dbo"/>

And then I could access the database by specifying the connection string in the <connectionStrings> section like so:

<add name="NewSqlServer" connectionString="Data Source=QA;Initial Catalog=NewDB;User ID=DbUser;Password=DbUserpwd" providerName="System.Data.SqlClient" />

However, in the dnn version 5.1.3, when I add the dataprovider info in the <data defaultProvider.. section (the part in red above) the whole dnn site crashes and I cannot even load any page in DNN. In the eventViewer, I get an error entry saying .net runtime 2.0 error, Faulting application w3wp.exe etc...

Please can some one tell me why this happens? If I remove the above red section from the web config file, every thing is fine again.

Any help in this matter will be greatly appreciated,

Thanks.

 
New Post
4/27/2010 12:53 PM
 
Has anyone come across this problem, please respond. I am at a total loss why the data provider node in the web config file causes DNN to crash. Thanks. Abose
 
New Post
4/27/2010 5:19 PM
 
AFAIK you only need the connection string to access your extra data, the provider is reserved for DNN internal use (if you want to switch to oracle, e.g.).

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/28/2010 1:05 AM
 
I just tested this on a DNN 5.4.0 install and it appeared to work fine?

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
4/28/2010 1:07 AM
 
Errr forget that last message, adding that into my web.config also kills the website. Please create an issue on http://support.dotnetnuke.com to see if this can get resolved in a future release.

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
Previous
 
Next
HomeHomeDevelopment and...Development and...SQL and SQL Ser...SQL and SQL Ser...Specifying another Database in the Web Config file for DNN 5.1.3Specifying another Database in the Web Config file for DNN 5.1.3


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