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 ...Under Construction Page After MigrationUnder Construction Page After Migration
Previous
 
Next
New Post
2/23/2011 5:13 PM
 
Yeah, I pretty much feel it's a DB connection issue. My shared host support can't figure it out and something weird also occurs when I try to connect to the DB via SQL Server Management Studio. I can connect to the SQL server with supplied credentials but it wont show my databases and gives an error saying: ------------------------------ The server principal "xxx" is not able to access the database "xxx_xxx" under the current security context. (Microsoft SQL Server, Error: 916) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.00.1600&EvtSrc=MSSQLServer&EvtID=916&LinkId=20476 ------------------------------ the weird part is that "xxx_xxx" is not my database. It appears to be the first database on the server. I saw a list of all of them in the migration tool and it was indeed the first DB listed. Some type of misconfiguration even tier 3 support guys can't figure out. Does anyone have a clue what this issue could be and if it may have something to do with DNN not being able to connect? My host has a web-based SQL Manager and I can connect and view the DB and work with it just fine with the creds I am using.
 
New Post
2/23/2011 6:21 PM
 
In reference to the error "the server principal "xxx" is not able to access the database "xxx_xxx" under the current security context", a Google search brought up many instances of that issue with the common fix being like the following: http://www.hansrasmussen.com/2010/03/...

I don't, however, think that the above issue is causing DotNetNuke to fail in connecting to the database. Since the database was migrated (backup and restore), it is quite possible that you are encountering the a SQL Server user login to database user login mapping problem often referred to as an orphaned database user. Following the database restore, did you or the hosting provider create a new SQL server login using the same username as that used prior to the migration? If so, the new login (even though it has the same username) is not the same internally as the old login. Here's a MSDN link that explains the orphaned user issue and how to resolve it: http://msdn.microsoft.com/en-us/libra...

Because of the potential for this issue to occur during a database migration, I always create a new SQL server login and matching database user login different from that previously used then grant the new database login db_owner permission on the database. Don't forget to make the change in database username and if necessary password in both connection strings in web.config.

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
2/23/2011 9:43 PM
 
Yes, that's the issue with shared hosting, don't have permissions to modify the default membership of the new Login... I do see the new Login's roles and db_owner is not one of them.  I will submit another ticket. Thanks!
 
New Post
2/23/2011 9:56 PM
 
Another thought... Is there a specific reason why DNN can't just let you know the connection string isn't working? I can't believe DNN relies on a failed connection to determine if it needs to invoke the installer.
 
New Post
2/26/2011 10:53 AM
 
Still haven't gotten this fixed... Because I do not have the ability to save a .bak file from old host, I connected through SSMS and did a database export using the SSMS export utility straight to the new database server. All data copy routines succeeded and I have verified the database is indeed fully transfered to the new DB server. To address your point William, I did create an entirely new DB login, removed the old one that was tranfered along with the DB and had my new host assign db_owner to the new Login and default database is the new database. Still no luck. I really wish there was some detailed information about what problem DNN is facing other than just I cannot connect to the DB. I've done migrations countless times before and not had any issues. Granted, i've had full control over my environment and this is the first time attempting on a shared environment. Could the DB export utility process i outlined have something to do with this?
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Under Construction Page After MigrationUnder Construction Page After Migration


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