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 ...Making the site public (migrate from VWDS to IIS)Making the site public (migrate from VWDS to IIS)
Previous
 
Next
New Post
9/15/2006 5:50 AM
 

Im new to the DotNetNuke framework and even to the new Visual Web Developer 2005, SQL 2005 Express. Have been working with ASP.Net 1.1, C# in Visual Studio 2003, with the framework (CMS) EPiServer. Now we will give DotNetNUke a try!

This is the scenario:

  • Visual Web Developer 2005 (have installed the DotNetNuke 4.3.4 Starter Kit)
  • Created a new DotNetNuke framework project (File-new-...)
  • Builded it.
  • Preview the site with "View in browser"
  • The installation process starts... http://localhost:3035/TJResor/some query for install
  • The demo site is shown.
  • I've developed a new skin to the site and viewed it with "View in browser" (wiht the ASP.NET Development Server, VWDS). Looks great!

No problem yet...

But here it comes, I want to show the site for X. VWDS does onley respond to 127.0.0.1, so I have to move to the IIS, still on the same machine (Win XP Pro, with ASP.NET 2.0, WORKING). I set up a Virtual directory http://localhost/TJResor to point out my website: C:\Inetpub\WebSites\TJResor. Making it to an applocation.

The DotNetNuke site respond at http://localhost/TJResor but with the error:
Error Installing DotNetNuke
Current Assembly Version: 04.03.04
ERROR: Could not connect to database specified in connectionString for SqlDataProvider

Okay, its a DB problem, since the default installation of DotNetNuke uses a SQL Server File, Database.mdf. I have SQLServer Express 2005 and SQL Server Management Studio Express installed. I know I have to do some attach of the DB-file, maybe rename the db from (C:\inetpub\websites\TJ.Re.......) to DotNetNuke (a simple name).

What do I have to do (have searched for info long time now)? Changes in web.config?
This is my current Web.confog (default):

<connectionStrings>

<!-- Connection String for SQL Server 2005 Express -->

<add

name="SiteSqlServer"

connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"

providerName="System.Data.SqlClient" />

<!-- Connection String for SQL Server 2000/2005

<add

name="SiteSqlServer"

connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;"

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=(local);Database=DotNetNuke;uid=;pwd=;"/>

-->

</appSettings>

Why are there 2 active connectionStrings ? Are bouth of them used? Can I switch between viewing the website in VWDS, SQL-file or IIS, SQL Express 2005?

Thanks for your support and a great framework.

Sam B

 
New Post
9/15/2006 6:20 PM
 
Any one who know?
 
New Post
9/16/2006 4:29 PM
 

Hey samboman - I'm a relative newcomer to dnn but my interpretation of the comment in the web.config is that both strings are necessary because older/legacy modules are looking for the string in one location while the newer ones are looking for it in a different location.  As to the real problem...Copying the dnn site to a new location and locally hosting and utilzing the sql server express database file in that local directory SHOULD have worked - you made sure the database was copied into the app_data directory of the new directory, correct?  Did you ensure the iis asp.net account can access the database?

Bob

 
New Post
9/30/2006 11:21 PM
 

I've just installed it myself and had the same error.  I added ASP.NET to the NTFS permissions on the APP_DATA folder and ensured it had "modify" rights.

-Tim

 
New Post
10/1/2006 2:32 PM
 

hummmm.... I just spent a couple of weeks learning DNN 4.3.5 installation (the hard way).  I came accross this same problem where the site worked great on the laptop but when I moved to the server... it broke.  I got permission errors, db connection string errors and finaly with some help here on the forum, I was able to get my site going.

1.  db connection string.  I found that if you are using SQL Express, there is nothing to change.  Out of the box, the conn string points to the local instance of SQLExpress and the default DNN db, Database.mdf.  So I'd say leave this alone.

2.  When developing on the laptop(or dev workstation) with VWD/SQLExpress combo, your site is hosted by a non IIS web server (it's file system based).  That in itself is not a big deal but it does provide a very convienient way to see your site in a browser.

In your post, you said that you have IIS running on your development machine, thats OK.   here are my
recommendations (from a guy with a flat spot on his forehead).
1.  For permissions, I added the Network Service account and gave read, write and change permissions.
2.  For the database, Network service permissions seemed to fix my problem of the database being read only.
3.  For the redirection problem, i.e.  www.Mysite.com loops back to http://localhost:1234/Mysite.  I had log in on the development machine, as host.  Then go into the portal settings and add an alias that represented the URL that I expected to browse to in production i.e. www.mysite.com (read the help bubble next to the entry for correct format).

HTH,
Vince

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Making the site public (migrate from VWDS to IIS)Making the site public (migrate from VWDS to IIS)


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