DNN 4.02
Win XP Pro
IIS v5.1
SQL Express v9.00.1399.06
ASP.NET v2.0.50727
I've been combing the boards and have been unable to get an install of DNN 4.02 going from the Source Code.
Below are the steps I've taken (if someone can point out my error, I'd be happy to turn this into an install guide). I probably enabled a lot of things I didn't need to in my effort to get the thing working, so if you can point those out as well that'd be very helpful.
- Created a directory and unzipped the DotNetNuke source file there. (Mine was C:\Inetpub\DotNetNuke_2
- Copied Website\Install\DotNetNuke.install.config to Website folder
- Created IIS Virtual Directory:
- Control Panel -> Administrative Tools -> Internet Information Services
- Open Up the tree: Internet Information Services -> MyComputer (local computer) -> Web Sites
- Right-click on the MyComputer (default web site) and select New -> Virtual Directory
- Click "Next"
- Enter "DotNetNuke" for the Alias and click "Next"
- Browse to C:\Inetpub\DotNetNuke_2\Website and click "Next"
- Check all the following boxes: Read, Run scripts, Execute, Write. Click "Next"
- Click Finish
- Finish configuring DotNetNuke Virtual Directory (right click on the Directory in IIS, "Properties")
- Virtual Directory Tab
- Read, Write, Log Visits, Index this Resource.
- Execute Permissions: Scripts and Executables
- Application Protection: Medium (Pooled)
- Documents Tab
- Enable Default Document: Default.aspx
- Directory Security Tab. Left this one alone
- ASP.NET Tab: Confirmed V2.0.5027 is enabled
- Click "Apply" and "OK"
- Set up SQL Server Express
- Run SQL Server Configuration Manager
- Navigate to SQL Server 2005 Network Configuration -> Protocols for SQLExpress
- Enable everything (Shared Memory was enabled, I enabled Named Pipes, TCP/IP and VIA)
- Complete setting up SQL Server Express
- Open MS SQL Server Management Studio Express
- Right click on the server and select “Properties”
- Click “Security”
- Ensure “SQL Server and Windows authentication mode” is selected
- Click “OK”
- Restart the server to enable all the settings just changed
- Right click on the Server and select “Stop”, then “Yes”
- Right click on the Server and select “Start”, then “Yes”
- Create the Database
- Right click on “Databases” and select “New Database…”
- Enter Database name (DotNetNuke) and Click “OK”
- Set up DB login (Windows authentication)
- Expand the Security folder in the tree, right-click on Logins and select “New Login…”
- Leave “Windows Authentication” selected, click “Search” next to Login name.
- Enter “aspnet” in the text box and click “Check Names”; it should fill in with the ASPNET ID.
- Expand database -> security. Right click on Users and and select “New User…”
- Click “…” next to “Login Name”
- Enter “aspnet” in the text box and click “Check Names”;
- Select the checkbox next to the ASPNET ID and click “OK”
- Click “OK”
- For User Name enter “DotNetNuke”
- For “default schema”, enter “dbo”
- For “schemas owned by this user”, check db_owner
- For “Database role membership”, check db_owner
- Click OK
- Set up another DB login (SQL server authentication)
- Expand the Security folder in the tree, right-click on Logins and select “New Login…”
- Select “SQL Server Authentication”
- Enter the login name (MyLogin)
- Enter the password (mypwd)
- Clear the checkbox for “Enforce Password Policy”
- Select the database from the “default database” dropdown (MyDB)
- Click OK
- Make a new copy of resources.config and name it web.config
- Update web.config to use the SQLexpress section. I’m thinking this didn’t work because there is no reference to the userID and PW.
- In <connectionstrings> area,
<add
name=”SiteSqlServer”
connectionString=”Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|DotNetNuke.mdf;”
providerName=”System.Data.SqlClient” />
- In <appsettings> area
<add
name=”SiteSqlServer”
connectionString=”Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|DotNetNuke.mdf;”
providerName=”System.Data.SqlClient” />
- In <providers> area (line 372), added the DNN table prefix
objectQualifier="dnn_"
Result: Could not find file 'C:\Inetpub\DotNetNuke_2\Website\Providers\DataProviders\SqlDataProvider\DotNetNuke_template.mdf'.
Next attempt with web.config
- In <connectionStrings> area
- Comment out the SQL Express section
- Uncomment the SQL Server section
- Update the SQL Server section
<add
name="SiteSqlServer"
connectionString="Server=(local);Database= MyDB;uid= MyLogin;pwd= mypwd;"
providerName="System.Data.SqlClient" />
- In <appSettings> area
- Comment out the SQL Express section
- Uncomment the SQL Server section
- Update the SQL Server section
<add key="SiteSqlServer" value="Server=(local);Database=MyDB;uid= MyLogin;pwd=mypwd;"/>
Result: Huge error, beginning with: ERROR: Could not connect to database specified in connectionString for SqlDataProviderSystem.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions)
Next attempt:
- In <connectionStrings> area
- Comment out the SQL Server section
- Uncomment the SQL Express section
- Update the SQL Express section
<add
name=”SiteSqlServer”
connectionString=”Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|DotNetNuke.mdf;uid=MyLogin;pwd=mypwd;”
providerName=”System.Data.SqlClient” />
- In <appSettings> area
- Comment out the SQL Server section
- Uncomment the SQL Express section
- Update the SQL Express section
<add
name=”SiteSqlServer”
connectionString=”Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|DotNetNuke.mdf;uid=MyLogin;pwd=mypwd;”
providerName=”System.Data.SqlClient” />
Result: Could not find file 'C:\Inetpub\DotNetNuke_2\Website\Providers\DataProviders\SqlDataProvider\DotNetNuke_template.mdf'.
Any other suggestions?
In reading the instructions and the boards, it didn’t look like I needed to do anything with a template; is that incorrect?
KRF