Products

Solutions

Resources

Partners

Community

About

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 ...Site Will No Longer Load After Attaching DB To MSSMS!!!Site Will No Longer Load After Attaching DB To MSSMS!!!
Previous
 
Next
New Post
8/26/2008 8:13 PM
 

I recently attached the Database.mdf located in app_data in Microsoft SQL Server Management Studio. DNN website will not load now! I receive the following error.

Cannot open user default database. Login failed.
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Cannot open user default database. Login failed.
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SqlException (0x80131904): Cannot open user default database. Login failed.
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.]
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +435
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
   System.Data.SqlClient.SqlConnection.Open() +111
   Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.DiscoverSpParameterSet(SqlConnection connection, String spName, Boolean includeReturnValueParameter, Object[] parameterValues) +204
   Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSetInternal(SqlConnection connection, String spName, Boolean includeReturnValueParameter) +303
   Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName, Boolean includeReturnValueParameter) +154
   Microsoft.ApplicationBlocks.Data.SqlHelperParameterCache.GetSpParameterSet(String connectionString, String spName) +36
   Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) +200
   DotNetNuke.Services.Log.EventLog.DBLoggingProvider.Data.SqlDataProvider.GetLogTypeConfigInfo() +68
   DotNetNuke.Services.Log.EventLog.DBLoggingProvider.DBLoggingProvider.GetLogTypeConfigInfo() +108
   DotNetNuke.Services.Log.EventLog.DBLoggingProvider.DBLoggingProvider.GetLogTypeConfigInfoByKey(String LogTypeKey, String LogTypePortalID) +61
   DotNetNuke.Services.Log.EventLog.DBLoggingProvider.DBLoggingProvider.AddLog(LogInfo objLogInfo) +72
   DotNetNuke.Services.Log.EventLog.LogController.AddLog(LogInfo objLogInfo) +208
 

I have detached from the management studio, restore the dotnetnuke directory, and rebooted more then once and the website still will not load.

PLEASE HELP!!!

1. How do I fix this?
2. What causes this?
3. Is there a way to be connected to the management studio and web at the same time. I really need access to the database via ODBC to share information    with another application.

 Thanks in advance!

 
New Post
8/27/2008 7:33 AM
 

Easy fix

You need edit the DB permission on the database and the log file

To do so, select both files in explorer, right-click->properties and under security tab, click add and then assign "network service" for full control.

Click ok and you're done

 
New Post
8/27/2008 12:10 PM
 

I am still having a hard time grasping what is going on.

Permissions read network service has full control. So I reset all child objects in the dotnetnuke folder. Tried restarting WWW service and still receive the same error. Linked Database.MDF back up to MSSMS and then the website loads! But only for a little bit and then I receive the same error again!

What SQL server security should the database have?

How fustrating....

 
New Post
8/27/2008 12:34 PM
 

I am still having a hard time grasping what is going on.

Permissions read network service has full control. So I reset all child objects in the dotnetnuke folder. Tried restarting WWW service and still receive the same error. Linked Database.MDF back up to MSSMS and then the website loads! But only for a little bit and then I receive the same error again!

What SQL server security should the database have?

How fustrating....

 
New Post
8/28/2008 10:52 AM
 

Try to reset "read/write" permission on only the MDF File and the log file in the App_Data Folder

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Site Will No Longer Load After Attaching DB To MSSMS!!!Site Will No Longer Load After Attaching DB To MSSMS!!!


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