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 ...DNN 4.0 and SQL 2005 Express Install ErrorsDNN 4.0 and SQL 2005 Express Install Errors
Previous
 
Next
New Post
2/14/2006 5:25 PM
 

I am having trouble installing DNN 4.0 with SQL Express. I keep getting erroneous connection string errors.

I have read the Installation Guide about 40 times and still can't figure this one out.

Here is my installation procedure:

Note: My SQL Server Instance is called "CASES", you'll see that a little further down in my connection string.

1) I extracted DotNetNuke_4.0.0_Install.zip to D:\Intranet

2) I renamed the release.config file to web.config

3) I configured IIS with a virtual directory call Intranet pointing to D:\Intranet. I changed the default document to default.aspx and also changed the ASP.NET version the website uses to 2.0.50727

4) I then gave Full Control to <server name>\ASPNET on the D:\Intranet directory

5) I opened SQL 2005 MSE and created a new database called Intranet_DNN in the path D:\Intranet\Providers\DataProviders\SqlDataProviders

6) I made sure my server used both SQL and Windows Autentication and also that it accepts remote connections

7) I created a new Login to my SQL server for <server name>\ASPNET and made his default database Intranet_DNN

8) I then modified my web.config file with the following:

<add name="DotNetNuke" connectionString="Data Source=.\CASES;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Intranet_DNN.mdf;" 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=.\CASES;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Intranet_DNN.mdf;"/>

9) Navigate to http://Intranet and the errors start

Any help would be greatly appreciated. I've searched the forums and then net and just can't get this resolved. It's probably a connection string issue but...I don't know.

 
New Post
2/14/2006 10:44 PM
 
I FIGURED IT OUT!!!!

What the directions are not very clear about is when you create your database using SQL 2005 Express using SQL Server Management Studio Express CTP, it must be located in the \App_Data\ folder.

Also, the directions say nothing about changing ".\SQLExpress" in your connection strings in web.config to ".\<your sql instance name>" which is the ONLY way I was able to get mine to work.

So in my example above, I detached my Intranet_DNN database and moved the files to D:\Intranet\App_Data then attached the database back and opened http://Intranet and the Install started!

If you have any other question about how to get DNN 4.0.0 to work on W2K Server using SQL 2005 Server Express I'd be happy to help.
 
New Post
2/15/2006 7:15 AM
 

I assume you have a Windows XP machine that is hosting DNN and SQL. A virtual directory should be accessed in the form of http://localhost/virtualdirectory. also, the login needs to be setup with dbowner permissions for that db. I am not sure if this is true for SQL 2005, but in SQL 2000 the login must have access to the master database as well; not as dbowner though, just as a normal default user.

 


Do you know the truth when you hear it?
Néstor Sánchez
The Dúnadan Raptor -->Follow Me on Twitter Now!
 
New Post
2/16/2006 10:25 AM
 
No, I have a Windows 2000 Server and I added a Host Header in IIS called "Intranet" and then also added a DNS entry to point "Intranet" to the webserver so I can reference my webpage using http://Intranet

I have been trying to play around with the database security and from what I been messing with, you have to detach the database and the attach it order to get it to work. I wonder if this is because of the version of SQL I am using (2005 Express) and some locking that is going on when the DB is created.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 4.0 and SQL 2005 Express Install ErrorsDNN 4.0 and SQL 2005 Express Install 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