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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNN database error:DNN database error:
Previous
 
Next
New Post
2/20/2008 12:50 AM
 

In my pc(m/c 1), local DNN(4.7) website which is working perfectly.I just locally hosted my website in another machine(2nd m/c) without installing the DNN in it(viz.Copy all my dnn file folders except app data in 2nd m/c and taking the back up of db in 1st  m/c and restoring it in db of 2nd m/c  and modyfying web.config in 2nd m/c to access local db.

Now  all static pages are visible and my problem is that in all db related pages i get the following Error:

File Error: Failed to update database "DNN" because the database is read only.

Even when i click the FAQS and ContentLinks, i get the same error.

Anyone who knows solution or suggestion.pls reply.Thanks.

 

 
New Post
2/20/2008 1:15 AM
 

I am not sure if this is the case but it could be that the DNN users are not synced between the database and the SQL Server. If this is the case then run this command in Query Analyzer to sync the user accounts:

 

Use Master

EXEC sp_change_users_login 'update_one', 'DNNusername', 'DNNusername'

 

*Replace DNNUsername with the real username.

 

Make sure that the user exists in SQL Server before you run this command.

 

HTH,

 

John

 
New Post
2/20/2008 1:23 AM
 

Dang it... I was looking at the wrong script. You should run the command on the DNN Database not the Master database.

It should not be "Use Master" but " Use DNN" or whatever the name of your DB is.

John

 
New Post
2/20/2008 5:28 AM
 

Does the user on the second machine that is access in the datqabase have write privileges to the database. i.e. is your system set to use sql authentication or windows authenitication and have you on the second machines environment setup any login into the SQL server that are required?


John Nicholson
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNN database error:DNN database error:


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