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 ...Configuration ErrorsConfiguration Errors
Previous
 
Next
New Post
2/1/2007 3:03 PM
 

HELP! Been 3 days now. What is wrong with my connection strings?

Parser Error Message: The configuration section cannot contain a CDATA or text element.

Source Error:

Line 29:   <appSettings>
Line 30:     <!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules   -->
Line 31:     <add key="SiteSqlServer" value="Data Source=172.23.140.53;Integrated Security=True;User Instance=True;AttachDBFilename=DotNetNuke.mdf" />
Line 32:     -->
Line 33:     <add key="InstallTemplate" value="DotNetNuke.install.config" />

these are the 2. SQLExpress 2005

usernames,passwords,database created (Dotnetnuke) and same as mdb file

connectionString

="Data Source=172.23.140.53;Integrated Security=True;User Instance=True;AttachDBFilename=DotNetNuke.mdf"

<

The others (2000 strings) I deleted

Thanks for any help...

merv

add key="SiteSqlServer" value="Data Source=172.23.140.53;Integrated Security=True;User Instance=True;AttachDBFilename=DotNetNuke.mdf" />
 
New Post
2/1/2007 3:19 PM
 

the problem is your use of the "user instance=true" and "AttachDBFilename=DotNetNuke.mdf" strings. User instances are different from normal sql in that they only operate against a local installation of sql express (e.g. .\sqlexpress). They also don't need usernames and passwords as they open in the context of the administrator. 

http://www.connectionstrings.com/?carrier=sqlserver2005 is a good reference for sql connection strings (check out the SQLConnection(.net) section).

In your case if you're looking to use a remote SQL server via windows authentication, your connection string will look something like (you obviously have to create a database and grant the user permissions as well)

add key="SiteSqlServer" value="Server=172.23.140.53;Database=yourdatabasename;Trusted_Connection=True; 


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/1/2007 3:21 PM
 
just noticed, you also have to delete the extra -->  on line 32

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/1/2007 3:35 PM
 
Xnowman:

The site Cathal recommended is very good, make sure you use the string examples for .Net though.

Also, if you are using the database on the local machine do not use the real IP address. I'm not sure but in SQL2005 it may not work because it takes it as an external connection request, which are not allowed by default. Use ".\SQLExpress" or "localhost\SQLExpress". For SQL2000 in the local machine use "(local)" with the parenthesis but no quotes. This bypasses the overhead of going through the whole TCP/IP stack to talk to the server.

Good luck.

Carlos
 
New Post
2/1/2007 4:02 PM
 

Thanks all. I gave up after I sent the message but I will try the above tomorrow morn. Something so simple and yet stop you dead in the water.

Thanks again

 

merv

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Configuration ErrorsConfiguration Errors


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