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 StartedNew to DNN Plat...New to DNN Plat...Under ConstructionUnder Construction
Previous
 
Next
New Post
5/9/2012 9:51 PM
 

You need to stop using that sort of connection string ... it is telling the system to try and attach a physical file as the database - as opposed to letting ms sql do what it does best and manage the database as part of its system.

This method is fraught with problems and is something that was only ever designed for simple system testing and definitely not for any form of live services.  One of its bigger issues is that it needs to attach to file open resources directly - and since there are sometimes a limited number of file resource available - this can cause the sort of timeout - cant open database issues you are seeing.

Your connection string should take the form of something like:

Data Source=.\SQLEXPRESS;Initial Catalog=databasename;User ID=xx;Password=xxxxx

Where Initial Catalog is the name of a database attached to your installed ms sql server instance.

Westa

 
New Post
5/10/2012 10:24 AM
 
Starr,

I agree with what Wes has pointed out. The only suggestion I have in this matter ist to use Windows security instead of SQL Server security, so the connection string should look like

Data Source=ServerName[\InstanceName];Initial Catalog=DatabaseName;Integrated Security=True

and therefore, the user who runs the AppPool (in IIS 6 that is NETWORK SERVICE), must have enough permissions on the database as described in an earlier post of this thread.

Best wishes
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
5/11/2012 1:38 PM
 

Hi Everyone,

Based on feedback from all three of you, I've taken the steps below, after which I am now getting the Under Construction message consistently.  Refreshing the page and recycling the app pool no longer fix it (even if temporarily.)  So, we have some progress...just not sure if it's forward or back ;-)  I'm sure I've jsut missed a step.  Hopefully, one of you will know which one.

1) Followed the instructions in the article Sebastian sent to attach the DB in Mgmt Studio, and set up permissions.  The article only mentions giving permissions to the ASP.NET user, but Michael has mentioned that NETWORK SERVICE also needs access, so I repeated the steps given and made NETWORK SERVICE a dbowner as well.

2) Changed my connection string to: <add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=False; Database=<dbName>" />  Note, I tried a few variations based on the article, and on posts here, and that's the last one I tried. 

3) I also noticed that there is a similar connection string in <appSettings> in the web.config file.  Thinking this might need to be updated as well, I've also tried adding: <add key="SiteSqlServer" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=False; Database=<dbName>" /> to that section, but the results were the same, so I changed it back.

Thanks!

 
New Post
5/12/2012 10:51 AM
 
Starr,

you mentioned you are using Windows 2003 Server and SQL Server 2008 R2. Is that correct?

Best wishes
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
5/14/2012 1:48 PM
 
Yes, that's correct.  The OS is 64-bit if that makes a difference. Thx.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Under ConstructionUnder Construction


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