I've looked all over the forumns, and I've read the PDF documents, but I'm unable to install DNN. Here's my setup:
- Win XP Pro (SP2 and ASP.net 2.x)
- SQL Express 2005
- IIS 5 (Comes with XP Pro)
- I'm trying to install DNN 3.02
When trying to connect to localhost/DotNetNuke, I'm redirected to this page:
http://localhost/DotNetNuke/Install/Install.aspx?mode=none
On this page I'm given this error message:
Error Installing DotNetNuke
Current Assembly Version: 03.02.02
ERROR: Could not connect to database specified in connectionString for SqlDataProvider
I've tried all kinds of tweaking with the connection string (web.config). And I've tried tweaking things using MS SQL Studio Manager Express, but I can't figure out what I did wrong.
Here are my steps:
Setup Database
- First I downloaded SQL Studio Manager Express from MS. I'm not sure what the alternative would have been, command line? Yikes.
- Using this tool I created a new database called, DotNetNuke. I left the owner filed as <default>
- Next I created a new login user named nuke. NOTE: This option is under the "Security" menu at the root level. There are multiple "Security" links. Make sure you're at the root level. From there you can right click and select "New Login". I selected "SQL Server Authentication" and entered my password. I also changed the default database to DotNetNuke.
- Finally I added nuke login to the database and set the ownership permissions. I did this by navigating to "Security" under the DotNetNuke database and right clicking to create new user. I set "Owned Schemas" and "Role Members" to db_owner.
Configured The Server
- Placed all of the DNN files into: C:\Inetpub\wwwroot\DotNetNuke
- Using ISS I created a new virtual directory called: DotNetNuke
- I made some changes to my new virtual directory by right clicking and going to properties.
- Virtual Directory (TAB) >> Execute Permissions - I changed this to Scripts and Executables.
- Documents (TAB) >> Enable default documents - I added default.aspx
- Directory Security (TAB) >> Anonymous authentication control >> Edit. I checked the anonymous box and changed the user to MACHINENAME\ASPNET.
- ASP.net (TAB) >> ASP Version - I changed this to version 2.x (NOTE: I installed IIS after ASP.NET 2.x was already on my machine. As a result IIS wasn't recognizing .aspx files. To fix this issue I went to add remove programs and selected ASP.net 2.0 and ran repair. That fixed the problem)
- ASP.net (TAB) >> Edit configuration >> "SiteSqlServer" >> Edit - I updated this string with my SQL information: Server=local;Database=DotNetNuke;uid=***;pwd=*****;
Set Permissions
I'm not sure if I did this correctly. But bascially I found the DotNetNuke directory, right clicked the folder and went to properties and then security. From here I added a new user called
MACHINE\ASPNET. This is the same user that ASP.net uses under IIS (see above). I gave this new user
Full control.
I left the other options under web.config the same. That's pretty much it. It doesn't work and I'm not sure where it's breaking.
I'm new to ASP.net and everything related to it (IIS, SQL, etc.). I'm migrating from apache/php/mysql to .net because I love the features of DNN and there are more opportunities for programmers who know .net. So far it's been an uphill battle getting things configured. The web.config file is really intimidating to a newbie. I've installed many open source projects, but I've never seen an config file with so many options. I guess it will be nice once I understand .net and DNN.
Thank you for your help.