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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Web.Config Connection StringsWeb.Config Connection Strings
Previous
 
Next
New Post
8/19/2009 7:25 AM
 

Hi community,

i created a new database from scratch called XMod (its going to be used with Xmod Pro) and i need to add a connection string to the webconfig file, i created the xmod database in the same place where the dot net nuke database is located and added the following code to the web.config file:


 <add name="SiteSqlServer2" connectionString="Data Source=.\SQLExpress;AttachDbFilename=|DataDirectory|Xmod.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />

 

AND

 

   <add key="SiteSqlServer2" value="Data Source=.\SQLExpress;AttachDbFilename=|DataDirectory|Xmod.mdf;Integrated Security=True;User Instance=True" />

 

Please can you help me with this? because it seems when i call the dotnetnuke database from xmod (by refering to the connection string name: SiteSqlServer) it works but when i refer to SiteSqlServer2 it does not work, any help pls?

 

Kind Regards,

Chris Scicluna

 

 
New Post
8/19/2009 7:56 AM
 

I am sure, you need 1st connection string only, the second one (add key ...) is legacy support for old modules only). 

Sorry, haven't used XMod yet.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/19/2009 8:14 AM
 

Hey thanks for the reply, i tried removing the second one but still giving the same error. Basically xmod pro works as follows.

 

You create a database and a form in xmod pro and then use the web.config to make a connection.

In the form you add the following tag:

<submitcommand connectionstring="[[ConnectionString:SiteSqlServer2]] " commandtext="INSERT INTO HWS_News_Test (FieldOne, FieldTwo, FieldThree) VALUES (@FieldOne, @FieldTwo, @FieldThree)" />
 

when i use the SiteSqlServer it works but when i use the SiteSqlServer2 it does not work, dont know why since both of the databases are in the same location :( maybe there are some permisions i need to setup for the database to communicate with other parties? Im lost..

Kind Regards,

Chris Scicluna

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Web.Config Connection StringsWeb.Config Connection Strings


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