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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...SQL 2005 ConnectionSQL 2005 Connection
Previous
 
Next
New Post
9/13/2006 12:14 AM
 
New to dotnetnuke.  Never heard of it before a friend got a job doing it.  (And she had never heard of it either.)

Anyways, looks great.  Now I'm just trying to get it to run at home (then later on my ISP.)  I have a named instance of SQL 2005 Developer Edition and I can create a data connection through VWD that tests out just fine.  However, when I try to do the same thing in web.config and have dotnetnuke install it bombs with the error:

Error Installing DotNetNuke

Current Assembly Version: 04.03.04

ERROR: Could not connect to database specified in connectionString for SqlDataProvider


I'm following the instructions that come up in VWD, but I'm probably pulling some bonehead.  Would you please look at this and tell me what I might be missing?  (I develop for a living but unfortunately (for now!) on more legacy systems.)
Thanks

    <!-- Connection String for SQL Server 2000/2005-->
    <add
      name="SiteSqlServer"
      connectionString="Server=(MARYKEN\CRESTONE);Database=NamespacesSite;integrated security=True;"
      providerName="System.Data.SqlClient" />
  
  </connectionStrings>
  <appSettings>
    <!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules  
    <add key="SiteSqlServer" value="Data Source=.\SQLExpress;integrated security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>
    -->
    <!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules-->
    <add key="SiteSqlServer" value="Server=(MARYKEN\CRESTONE);Database=NamespacesSite;integrated security=True;"/>

 
New Post
9/13/2006 11:33 AM
 

You may have to modify your windows security and db permissions or you can just use SQL authentication by tellgin the web.config the dbname, userid, pwd.  Take out "integrated security=true" and replace both strings with the format here: 

 

<!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules  -->
    <add key="SiteSqlServer" value="Server=MARYKEN\CRESTONE;Database=[DBNAME];uid=[USERID];pwd=[PASSWORD];" />

 

-Mark

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...SQL 2005 ConnectionSQL 2005 Connection


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