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 ...web.config changes - not workingweb.config changes - not working
Previous
 
Next
New Post
3/20/2008 9:11 AM
 

I have been transferring the database from a separate shared SQL Server to SQL Server Express on our server.

I have a fresh DNN install to compare the web.config with (but uses mdf file).

My changes look like this:

 

<connectionStrings>
    <!-- Connection String for SQL Server 2005 Express -->
    <add name="SiteSqlServer" connectionString="Data Source=DEDL55\SQLEXPRESS;Initial Catalog=TAC;User ID=user;Password=password" 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=DEDL55\SQLEXPRESS;Initial Catalog=TAC;User ID=user;Password=password" />


Basically I have changed:

  • machinevalidationKey & machinedecryptionKey
  • Data Source from shared server to local SQL Server Express Instance
  • Kept Initial Catalogue as before (fresh DNN install has AttachDbFileName to point to mdf file)
  • Kept user & password (fresh DNN install uses Integrated Security, not setup it seems for the old database I want to use)

Problems I have...

It is either saying

Login failed for user. The user is not associated with a trusted SQL Server connection.

, or if I try to use the Integrated Security for this database it was saying Login failed for user 'NT AUTHORITY\NETWORK SERVICE' , which I have now allowed with sys access... but registered users don't seem able to log in (but the website does display!). I think the user login is preferred but whatever works would be great!

If I am "lucky", some combinations I get says Site is currently unavailable, Check back later.

Any help would be appreciated.

Thanks

 
New Post
3/20/2008 9:35 AM
 

Was the SQL Express database created by the DNN install or you created it and are porting your site to it?

Jeff

 
New Post
3/20/2008 9:40 AM
 

Hi Jeff

The database itself was originally created by DNN, but I have moved it from a separate SQL Server (Shared) to a local SQL Express. It does still work fine on the Shared Server, but I am having these problems on SQL Express (same database though).

I have also tried changing Initial Catalogue to Database in the script, no difference though.

 
New Post
3/20/2008 10:37 AM
 

So far... the best I have managed is to use the Integrated Security. The site appears and everything is there... but no users are able to log in.

The current web.config settings are:

<connectionStrings>
    <!-- Connection String for SQL Server 2005 Express -->
    <add name="SiteSqlServer" connectionString="Data Source=DEDL55\SQLEXPRESS;DATABASE=TAC;Integrated Security=True;User Instance=False" 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=DEDL55\SQLEXPRESS;DATABASE=TAC;Integrated Security=True;User Instance=False" />

Does there seem to be anything wrong with that?

Might the problem lie with SQL Express security/user settings?
   

 
New Post
3/21/2008 12:49 PM
 

Surprised it wasn't spotted in my first post! 

For whatever reason, I assumed the new DNN installation which looked at SQL Express (not the shared SQL Server) had the new machine keys to use for the old DNN installation... but I take it those just link the DNN files to the database, not to the actual "machine" as such which I kinda assumed (database running on different "machine"!)

All working now!  Thanks for the help, I have certainly been learning.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...web.config changes - not workingweb.config changes - not working


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