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 ...moving site from home to office (SqlExpress/Win2003) ... Please help.moving site from home to office (SqlExpress/Win2003) ... Please help.
Previous
 
Next
New Post
2/5/2006 3:27 PM
 

 

Having LOTS of trouble over here trying to install DNN on a server for our company.


Steps taken so far:

a) A couple of weeks ago, downloaded the latest DNN 4 Source package onto my home computer (XP Pro).
b) Downloaded the template mdf that was missing from the zip package and installed it where it was expected (providers/data_providers/sql/)
c) Ran the program -- and it hickupped -- but finished by finally creating the database, and was ok.
d) Made changes to the styles, inputted pages texts and layout, and basically made a cute looking website.

Now, ready to install it on the office's win2003 server, I've wasted days getting no where.
Help.

The office is going to be using DNN only as an intranet, so they have NOT invested in the full version of SqlServer, only SqlServer Express there too.

 

What I've done to move it there was:

a) Downloaded NET 2.0 onto the server, and installed it.
b) Downloaded SqlServer Express onto the server and installed that as well, using the generic instance name (sqlexpress) and Windows security and not the SqlServer builtin security (so no 'sa' account, etc.).
c) Changed no rights/roles/anythin on the server, as the SqlServerExpress installation did not make mention of a need for any changes.
a) Zipped up the whole website folder, with mdf within it.
b) Used Microsoft Sql Express Management Studio (Beta) to make a backup of the mdf.
c) Ftp'ed them both over to the office.
d) Unzipped the website,
e) unzipped the mdf backup, and used a second copy of MSEMS to restore the database over the mdf that was in the zip.
f) Rightclicked the folder and webshared it. Made no changes to any settings (ie: script only, not script/exe rights, etc..)
g) Went to IIS, refreshed the tree to see this new virtual directory, and went to security tab, and ensured that anon access was on.
j) DNN instructions  say that the virtual directory needs to have Network Services=Full rights, so I do that.
h) Made an attempt to access the website via a browser -- denied.
i) Added "Everyone" to virtual directory...ok, have access.
j) ...But have an error.

"Could not connect to database specified in connectionString for SqlDataProviderSystem.Data.SqlClient.SqlException:
An attempt to attach an auto-named database for file D:\SITE\D4\database.mdf failed.
A database with the same name exists, or specified file cannot be opened, or is located on UNC share."

Which -- even if written in nice big bold letters -- is not helping find a solution, because:

i) It doesn't matter what I rename database.mdf to, and update the web.config to point to (dnn.mdf, database2.mdf, etc. all fail).
ii) The file is on the same computer, and the path not written in UNC notation. (D:\SITE\etc...) so that's not the problem.
iii) No other programs are open and pointing to this mdf (sqlserver express management studio is closed, etc.)
iv) The virtual folder at this point has rights wide enough to drive a truck through it, so it should be able to get SqlServer instance running under it to open the mdf. Or does it?
v) I also tried connectionStrings that refer to the path directly rather than using the "|DataDirectory|" macro -- that didn't help.
vi) There are no usernames/passwords to use, because its the ASP.NET account that is running the show, plus SqlServer was installed with Windows rights management only.


So. What am I doing wrong?

I've even downloaded DNN again directly to the office server, to install a new DNN site from scratch in a second virtual directory -- same problem. In other words, it not just an upgrade issue..

If its a rights issue, what rights should be assigned to
a) the virtual directory running on Win2003
b) any other place? Anything special has to be done to SqlServer Express?

If else, what else?


So damn frustrated after a long lost weekend. Help.

 
New Post
2/10/2006 9:48 AM
 
I've spent a week doing this and am experiencing the exact same situation and problem as helengrove. Any thoughts on this are greatly appreciated.
 
My Setup
 
Win XP Pro SP2
Microsft SQL Server 2005 Express w/ Sql Server Management Studio Express CTP
IIS 5.1
.Net 2.0
DNN V 4.0.2
 
Thank you!
 
 
New Post
2/19/2006 8:47 AM
 

This problem was resolved for me by my dba writing a script for me to run in query analyser and restoring the database from a back up (device). It my particular senario i was restoring a dnn 3.x site and was using sql server 2000. I do however think a similar approcach would work for your senario.

i am not at work at the moment so don't have access to the exact infomation but if you want email me at chris@captivedesign.co.za during the next week and i'll give you the exact step by step process i followed.

cheers

Chris Morton

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...moving site from home to office (SqlExpress/Win2003) ... Please help.moving site from home to office (SqlExpress/Win2003) ... Please help.


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