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 ...Migrating - Database problemMigrating - Database problem
Previous
 
Next
New Post
2/10/2015 9:34 AM
 
Hi,

I use DNN 5.6.0 on my server: Windows Server 2003, Microsoft-IIS/6.0, ASP.NET 2.0.50727.3649, Microsoft SQL Server 2005.
I want to migrate my DNN portals to new server: Windows Server 2012 R2, IIS 8.5.9600.16384, ASP.NET 4.0, Microsoft SQL Server 2014.
When I successfully migrate, I will update DNN to latest version.

But I have problem at migration. I have been Google-ing for three days, so I decided to ask.
When I try to open my portal by writing down localhost, I get this error: 
Installing DotNetNuke
Upgrade Error: ERROR: Could not connect to database specified in connectionString for SqlDataProvider

I have tried a lot of different connectionStrings, but no one works:
<add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;Initial Catalog=DATABASE;User ID=USERNAME;Password=PASSWORD" providerName="System.Data.SqlClient" />
<add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;Initial Catalog=DATABASE;Integrated Security=True;" providerName="System.Data.SqlClient" />

I restored database from old server to new one. In first case, I created new user in database and made him "db-owner", but does not work, also the second one.
I suppose, there is a problem, because ASP.NET can not access to database, but I do not know, what to do.

If anyone could help me, I will be really thankful!
 
New Post
2/10/2015 10:42 AM
 
is you SQL server on the same machine?
did you attach the database?
you don't need to create a user in the database, but for SQL Server in top level security node of SQL Server Management Studio.
This user needs to be mapped to a user in your database (you may use same name and schema dbo) and granted dbOwner.
If you want to use integrated security, your user needs to be windows account of the ASP.Net service, as configures in the IIS app pool of your website.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/10/2015 11:34 AM
 
Both the connection strings you quote look like they target Sql Server Express edition (.\SQLExpress). You say you have SQL Server 2014 - you didn't mention Express.

So the first hurdle is to get the correct machine and instance name?

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
2/11/2015 2:31 AM
 

Yes, SQL server is on the same machine.
I don't understand what do you mean with attaching my database? I created backup on my old server and I restored database on my new server.
I use Windows Authentication to access to my database - to log in to SQL server.

I think, my problem is here: "If you want to use integrated security, your user needs to be windows account of the ASP.Net service, as configures in the IIS app pool of your website."

I dont't know, how to do that - where to configure this account of ASP.NET service in IIS Application Pool of my website? Thank you!

 
New Post
2/11/2015 2:37 AM
 
Richard Howells wrote:
Both the connection strings you quote look like they target Sql Server Express edition (.\SQLExpress). You say you have SQL Server 2014 - you didn't mention Express.

So the first hurdle is to get the correct machine and instance name?

My server name is: NT-WWW\SQLEXPRESS, so I suggest, my connection string is ok.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Migrating - Database problemMigrating - Database problem


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