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 ...Cannot re-install DotNetNukeCannot re-install DotNetNuke
Previous
 
Next
New Post
2/7/2014 3:00 PM
 

Hi,

I've been trying to re-install DotNetNuke for the past week without success. I installed DNN version 6.02.08 about a year ago and I successfully created 4 sites for my client. Since then, my computer has been re-formatted and I re-installed everything. I have the same OS (Win 7) as before and the database server has not changed (SQL 2005). I copied my existing DNN files from my backup to the same folder structure I had before. In IIS (7.5), I added an Application under the Default Website, created an App Pool for it. I assigned NETWORK SERVICE to the folder security and gave it full control. I also added IIS AppPool\MyAppPool to the folder security and gave it full control. I have verified that there is a SQL account for NT Authority\Network Service.

I navigate to http://localhost/MyDNNSite and I get a "Internet Explorer cannot display the webpage" error message. Can anyone shed some light on this error? I now have to make changes requested by the client and I cannot re-install it in order to work on it.I've wasted about a week on this and it's increasingly getting frustrating.

Thanks

 
New Post
2/7/2014 6:21 PM
 

couple of points 1. recent versions of dnn require .net 4.0 and sql 2008 (sql 2005 is unlikely to work, but your error is coming earlier than that). Also, you seem a little confused as to permissions. The DNN website needs the permissions of the user associated with the apppool - by default this is apppoolidentity (http://blogs.msdn.com/b/webdevelopert...) -note: in many cases people simply edit the application pool and use network service as it's easier to grant permissions for a "real" account rather than a virtualised one generated for application isolation.

As for your sql server, what connection the service itself runs under doesn't usually matter. It depends on what connection type you need that determines the user. If you're using sql security then you don't need any particular user for the sql server to run under (as the connectionstring will have the username and password of a sql server user). If you're using windows security then you need to ensure that the identity the user runs under (as above -either apppoolidentity or networkservice) has permissions on the sql server (i.e. is set as a dbo). Note: there are other permutations with impersonation or getting the website to act under the context of the user using it (e.g. their domain login), but these are the two most common.


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/10/2014 9:31 AM
 

Hi cathal,

Thanks for the reply. I'm using DNN 6.02.08 because my client only has a SQL 2005 license and DNN 7 doesn't work  with SQL 2005. You're right, I think I am a little confused on the permissions...I'm trying to set it up the same way it was last year and it all worked fine then. I'm not sure if it's an IIS issue or a SQL permissions issue. This is what I've done and maybe you can see where I went wrong:

I selected "Add Application" under my default website in IIS 7.5 and pointed my application to the DNN website on my machine (these files reside in a folder that is not in my "inetpub/wwwroot" folder...if this matters). I created an AppPool called CMS which is using NetworkService as the Identity and I've assigned this app pool to my application. The permissions on the folder that holds my DNN files are as follows:

I've added NETWORK SERVICE from my local machine and gave it full Access
I've also added IIS AppPool\CMS and gave it full control as well

My connection string in the web.config uses SQL authentication which references the SQL database server and user/password. This hasn't changed since it worked last year. This database user exists as a user in my database and has datareader and datawriter assigned to it. I also have NT AUTHORITY\NETWORK SERVICE and it has dbo access. This all seems to be the configuration I had last year and it all worked. Do you see anything wrong?

Thanks

 
New Post
2/10/2014 5:29 PM
 
that's mostly find -except that you only need the user that the application pool is running under (which in this case is "network service") and it only needs to be modify . Also, usually the sql user would be a dbo (the account the sql server service runs under doesn't matter for sql authentication). You also need to add the iis_iusrs group to your folder and ensure they "read & execute", "list folder" and "read" permissions (you can take a look at the inetpub/wwwroot folder you have and copy the relevant parts.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/11/2014 1:28 PM
 
I've tried a couple of tests. I don't think there's anything wrong with my configuration. I've set up another website with a fresh copy of DNN 6.2.8 and stepped through creating a new database and I was successful. So my IIS, Folder and SQL settings are good. Then I copied over my original files into this folder while pointing to this new database and it's still good. Then I changed to my other database, made sure my PortalAlias is pointing to the right site and I get a "Internet Explorer cannot display the webpage" error message...so it must have something to do with my original database...although these files and this exact database  work in the production environment. I'm tempted to run a SQL Data Compare on the 2 databases but that seems like a lot of work just do get my DNN site up and running again. Any thoughts as to what it might be?
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Cannot re-install DotNetNukeCannot re-install DotNetNuke


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