Installation environment: WINXP pro SP2 sql2005 vs2005
Follow the most complete dnn 4.x Installation Guide
The following are the problems and solutions I encountered during installation:
1. Install dotnetnuke4.x for the first time. After the installation is complete, run default. aspx to see cocould not found dotnetnuke_template.mdf?
Solution: download the file from my blog, decompress the file, and put it in the corresponding directory "... \ Website \ providers \ dataproviders \ sqldataprovider"
:/Files/carlwave/dotnetnuke_template.rar
Related: http://forums.asp.net/1114393/ShowPost.aspx
2. After installation, go to the my website homepage and find that the module cannot be displayed?
Solution: this may be a firewall problem. Close the firewall and try again, or open Vs and run default. aspx.
3. Web. config settings
Refer to the installation guide to configure web. config. It is better to directly use vs to open web. config. The comments in it are very detailed. You can find out how to configure the database connection.
This is the configuration I used in this environment
<Connectionstrings>
<! -- Connection string for SQL Server 2005 Express
<Add
Name = "sitesqlserver"
Connectionstring = "Data Source =. \ sqlexpress; Integrated Security = true; user instance = true; attachdbfilename = | datadirectory | database. MDF ;"
Providername = "system. Data. sqlclient"/>
-->
<! -- Connection string for SQL Server 2000/2005 -->
<Add name = "sitesqlserver" connectionstring = "Server = (local); database = dotnetnuke_2; uid = sa; Pwd = sa;" providername = "system. Data. sqlclient"/>
</Connectionstrings>
<Deleetask>
<! -- Connection string for SQL Server 2005 express-kept for backwards compatability-Legacy modules
<Add key = "sitesqlserver" value = "Data Source =. \ sqlexpress; Integrated Security = true; user instance = true; attachdbfilename = | datadirectory | database. MDF;"/>
-->
<! -- Connection string for SQL Server 2000/2005-kept for backwards compatability-Legacy modules -->
<Add key = "sitesqlserver" value = "Server = (local); database = dotnetnuke_2; uid = sa; Pwd = sa;"/>
<Add key = "installtemplate" value = "dotnetnuke. Install. config"/>
<! -- Alternative install templates (embedded in package)
<Add key = "installtemplate" value = "club. Install. config"/>
<Add key = "installtemplate" value = "Personal. Install. config"/>
<Add key = "installtemplate" value = "smallbusiness. Install. config"/>
-->
<Add key = "autoupgrade" value = "true"/>
<Add key = "installmemberrole" value = "true"/>
<Add key = "showmissingkeys" value = "false"/>
<Add key = "enablewebfarmsupport" value = "false"/>
<Add key = "enablecachepersistence" value = "false"/>
<Add key = "installationdate" value = "3/8/2006"/>
</Appsettings>
4. Opening a project with vs may cause a lot of warnings or error messages, so you don't have to worry about it,ProgramIt can run normally.
I have just learned dnn. I hope to have some comments from my friends who like dnn. Please leave a message.